/* ==========================================================================
   MAIN.CSS - Estilos base del sitio Ariel Galletti
   Sprint 2: layout general, componentes, tipografía
   ========================================================================== */

:root {
  --color-azul-francia: #0000a3;
  --color-azul-francia-hover: #000082;
  --color-gris-acento: #6f6f6f;
  --color-verde-suave: #10b981;
  --color-fondo: #f8f9fa;
  --color-fondo-alt: #f0f2f5;
  --font-principal: 'Roboto', sans-serif;
  --max-width: 1200px;
  --radius: 8px;
  --transition: 0.3s ease;
}

/* ----- Reset básico ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-principal);
  color: #222;
  background-color: #ffffff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3 {
  line-height: 1.2;
  color: #1a1a1a;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* Contenedor genérico */
.container,
main > section:not(.hero) {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}

/* ----- Botones ----- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 500;
  min-height: 44px;
  transition: background-color var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-azul-francia);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--color-azul-francia-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-azul-francia);
  border: 2px solid var(--color-azul-francia);
}

.btn-secondary:hover {
  background-color: var(--color-azul-francia);
  color: #fff;
}

.btn-cta {
  background-color: var(--color-azul-francia);
  color: #fff;
  padding: 10px 20px;
}

.btn-cta:hover {
  background-color: var(--color-azul-francia-hover);
}

/* ==========================================================================
   1. HEADER / NAVEGACIÓN
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fbfbfd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 76px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 52px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: #3d3d3a;
  font-weight: 400;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--color-azul-francia);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #3d3d3a;
  cursor: pointer;
}

/* ==========================================================================
   2. HERO
   ========================================================================== */

.hero {
  display: flex;
  align-items: stretch;
  min-height: 560px;
  padding: 0;
  overflow: hidden;
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(90deg, #050510 0%, #0a0a25 55%, #0f1a5c 100%);
  padding: 60px 48px;
}

.hero-text h1 {
  font-size: 2.4rem;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 36px;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #a8a8c8;
  line-height: 1.55;
  max-width: 460px;
}

.hero-image {
  flex: 1;
  position: relative;
  background-color: #1a1a3a;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* Fundido con el bloque de texto: arranca en el MISMO color donde termina
   el gradiente de .hero-text (#0f1a5c) para que la costura sea invisible.
   Franja angosta para no tapar demasiado la foto. */
.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    #0f1a5c 0%,
    rgba(15, 26, 92, 0.85) 6%,
    rgba(15, 26, 92, 0.6) 13%,
    rgba(15, 26, 92, 0.35) 20%,
    rgba(15, 26, 92, 0.15) 28%,
    rgba(15, 26, 92, 0) 38%
  );
  pointer-events: none;
}

/* Velo azulado muy sutil sobre toda la foto para acercarla a la paleta del sitio */
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 37, 0.06) 0%, rgba(15, 26, 92, 0.04) 100%);
  pointer-events: none;
}

/* ==========================================================================
   3. QUIÉN SOY + STATS
   ========================================================================== */

.about-bio {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: left;
}

.about-bio h2 {
  text-align: left;
}

.about-bio p {
  color: var(--color-gris-acento);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-lead {
  font-size: 1.35rem;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.5;
  margin-bottom: 24px !important;
}

.about-highlight {
  border-left: 3px solid var(--color-azul-francia);
  padding: 4px 0 4px 20px;
  margin: 24px 0;
}

.about-highlight p {
  color: #1a1a1a;
  margin-bottom: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0000bd 0%, #0000a3 50%, #000075 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-card > * {
  position: relative;
  z-index: 1;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ==========================================================================
   4. SERVICIOS
   ========================================================================== */

.services {
  background-color: var(--color-fondo);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background-color: #eaf2fc;
  border-left: 3px solid var(--color-azul-francia);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  color: #0a2540;
}

.service-card p {
  color: #2c4a68;
}

.service-card ul {
  color: #3d5875;
  font-size: 0.95rem;
}

.service-card ul li::before {
  content: "• ";
  color: var(--color-verde-suave);
}

.service-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ==========================================================================
   5. EN LOS MEDIOS (Letra Chica + Columna Canal 10 + Columna Radio Nacional)
   ========================================================================== */

.press {
  background-color: var(--color-fondo);
  text-align: center;
}

.press > h2 {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.press-subsection {
  text-align: center;
}

.press-subsection + .press-subsection {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.press-subsection-title {
  font-size: 2rem;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.press-subsection-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.15em;
  white-space: nowrap;
}

.press-subsection-logo {
  display: inline-block;
  height: 1em;
  width: auto;
  border-radius: 50%;
  vertical-align: middle;
}

.press-subsection-desc {
  color: var(--color-gris-acento);
  max-width: 700px;
  margin: 0 auto 32px;
}

.playlist-embed {
  position: relative;
  aspect-ratio: 16 / 8.1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 32px;
}

.playlist-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.playlist-link {
  margin: 12px 0 0;
  text-align: center;
}

/* ----- Playlist: reproductor grande + listado ----- */
.playlist-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
  margin-bottom: 8px;
}

.playlist-main {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.playlist-main-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.playlist-items {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.playlist-item {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 6px;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  align-items: flex-start;
  transition: background-color var(--transition);
}

.playlist-item:hover {
  background-color: var(--color-fondo-alt);
}

.playlist-item.is-active {
  background-color: rgba(0, 0, 163, 0.08);
}

.playlist-item-thumb {
  position: relative;
  flex: 0 0 120px;
  width: 120px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #e5e7eb;
}

.playlist-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-item-dur {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 3px;
}

.playlist-item-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.playlist-item.is-active .playlist-item-title {
  color: var(--color-azul-francia);
  font-weight: 700;
}

.playlist-note {
  padding: 12px 8px;
  font-size: 0.88rem;
  color: var(--color-gris-acento);
  line-height: 1.4;
}

@media (max-width: 860px) {
  .playlist-player {
    grid-template-columns: 1fr;
  }

  .playlist-items {
    max-height: 320px;
  }
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: left;
}

.press-card {
  background-color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.press-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.press-card h4 {
  color: #1a1a1a;
  font-size: 1.15rem;
}

.press-date {
  color: var(--color-gris-acento);
  font-size: 0.85rem;
}

.press-excerpt {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}

.press-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ==========================================================================
   6. TESTIMONIOS
   ========================================================================== */

.testimonials {
  background-color: var(--color-fondo);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background-color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.testimonial-logo {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 1.5px var(--color-azul-francia);
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 16px;
  color: #333;
}

.testimonial-card cite {
  font-style: normal;
  color: var(--color-azul-francia);
  font-weight: 500;
}

/* ==========================================================================
   6B. TRABAJAN CON NOSOTROS / CLIENTES
   ========================================================================== */

.clients {
  padding-top: 96px;
  padding-bottom: 96px;
}

.clients-marquee {
  display: flex;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-shrink: 0;
  padding-right: 48px;
  animation: clients-scroll 40s linear infinite;
}

.clients-marquee:hover .clients-track {
  animation-play-state: paused;
}

.client-logo {
  flex: 0 0 auto;
  width: 170px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Río Cuarto: logo muy claro, necesita fondo oscuro para tener contraste */
.client-logo--dark {
  background-color: #1a1a2e;
  border-radius: var(--radius);
  padding: 10px 14px;
}

@keyframes clients-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients-track {
    animation: none;
  }

  .clients-marquee {
    overflow-x: auto;
  }
}

/* ==========================================================================
   7. CTA SECUNDARIO
   ========================================================================== */

.cta-secondary {
  background-color: var(--color-azul-francia);
  color: #fff;
  text-align: center;
  padding: 60px 24px;
}

.cta-secondary h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta-secondary p {
  margin-bottom: 28px;
  opacity: 0.9;
}

.cta-secondary .btn-primary {
  background-color: #fff;
  color: var(--color-azul-francia);
}

.cta-secondary .btn-primary:hover {
  background-color: #f0f0f0;
}

/* ==========================================================================
   8. FAQ
   ========================================================================== */

.faq {
  background-color: var(--color-fondo);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: #fff;
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--color-azul-francia);
}

.faq-item p {
  margin-top: 12px;
  color: var(--color-gris-acento);
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */

.site-footer {
  background-color: #000070;
  color: #fff;
}

.footer-inner {
  text-align: center;
  padding: 60px 24px 24px;
  max-width: 400px;
  margin: 0 auto;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.site-footer a {
  display: block;
  color: #cfd3e0;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.site-footer a:hover {
  color: #fff;
}

.footer-social-icons {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  justify-content: center;
}

.footer-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: #cfd3e0;
}

.footer-social-icons a:hover {
  background-color: var(--color-azul-francia);
  color: #fff;
}

.footer-social-icons svg {
  width: 26px;
  height: 26px;
}

.footer-credit {
  text-align: center;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9aa0b4;
  font-size: 0.85rem;
}

.footer-credit a {
  display: inline;
  color: #cfd3e0;
  text-decoration: underline;
  margin-bottom: 0;
}

.footer-credit a:hover {
  color: #fff;
}

.footer-copyright {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #6b7086;
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  color: #9aa0b4;
  font-size: 0.85rem;
}

/* ==========================================================================
   10. BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1500;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition), background-color var(--transition);
}

.whatsapp-float:hover {
  background-color: #1ebe5a;
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}
