/* ==========================================================================
   Estilos Oficiales - Calero & Rivera Consultores
   Diseño Premium: Executive Navy & Warm Gold (Sans-Serif)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@500;600;700;800;900&display=swap');

:root {
  /* Paleta de Colores Corporativos Reales de CYR Consultores */
  --color-navy: #0064a0; /* Azul Corporativo Oficial del Logo */
  --color-navy-light: #0d466d; /* Azul Profundo para contrastes */
  --color-brand-blue: #0064a0; /* Azul de la Marca */
  --color-gold: #24b6e8; /* Celeste de Acento de la Marca (Reemplaza el Oro) */
  --color-gold-hover: #1ba0cf; /* Celeste en Hover */
  --color-cream: #F7F9FC; /* Gris Nieve limpio para fondo (Reemplaza el Crema/Café) */
  --color-white: #FFFFFF; /* Blanco Puro */
  --color-charcoal: #2D3748; /* Gris Oscuro para texto de alta legibilidad */
  --color-gray: #718096; /* Gris Medio para texto secundario */
  --color-border: rgba(0, 100, 160, 0.15); /* Bordes basados en el azul de marca */
  
  /* Fuentes */
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Animación */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Clases de animación por scroll (Intersection Observer) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Reset y Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-charcoal);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* Header */
.site-header {
  background-color: rgba(248, 246, 242, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 1.3rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(10, 25, 47, 0.02);
}

.header-container, .content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 48px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-navy);
  position: relative;
  padding: 0.2rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--color-gold);
}

.nav-cta {
  background-color: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  padding: 0.65rem 1.4rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-title);
  cursor: pointer;
  letter-spacing: 0.5px;
}

.nav-cta:hover {
  background-color: var(--color-gold);
  color: var(--color-navy);
  box-shadow: 0 4px 15px rgba(197, 168, 128, 0.3);
}

/* Ocultar CTA móvil en escritorio */
.nav-cta-mobile {
  display: none;
}

/* Hero Section (Editorial Style) */
.hero-editorial {
  padding: 7rem 0 6rem;
  background-color: var(--color-cream);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 6rem;
}

.hero-editorial-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.hero-editorial-content h1 {
  font-size: 3.8rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-editorial-content h1 span {
  color: var(--color-gold);
}

.hero-editorial-content p {
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--color-gray);
  max-width: 600px;
  border-left: 2px solid var(--color-gold);
  padding-left: 1.5rem;
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-navy);
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-family: var(--font-title);
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(197, 168, 128, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 168, 128, 0.35);
}

.hero-abstract-art {
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-img-mask {
  width: 260px;
  height: 260px;
  transform: rotate(45deg);
  overflow: hidden;
  border-radius: 8px;
  border: 4px solid var(--color-white);
  box-shadow: 0 15px 35px rgba(10, 25, 47, 0.15);
  z-index: 10;
  position: relative;
}

.hero-featured-image {
  width: 140%;
  height: 140%;
  object-fit: cover;
  transform: rotate(-45deg) translate(-15%, -15%);
  transition: var(--transition-smooth);
}

.hero-img-mask:hover .hero-featured-image {
  transform: rotate(-45deg) translate(-15%, -15%) scale(1.08);
}

.abstract-shapes {
  width: 260px;
  height: 260px;
  border: 2px solid var(--color-gold);
  position: absolute;
  transform: rotate(45deg);
  z-index: 1;
}

.abstract-shapes::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 260px;
  height: 260px;
  border: 1px solid var(--color-navy);
  background-color: rgba(10, 25, 47, 0.02);
}

.abstract-shapes::before {
  content: '';
  position: absolute;
  bottom: -45px;
  right: -45px;
  width: 22px;
  height: 22px;
  background-color: var(--color-gold);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(197, 168, 128, 0.5);
  z-index: 20;
}

/* Franja de Aliados */
.aliados-ticker {
  background-color: var(--color-white);
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 2px solid var(--color-gold);
}

.ticker-title {
  color: var(--color-gold);
  text-align: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2.2rem;
  font-weight: 700;
  opacity: 1;
}

.ticker-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4.5rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.ticker-logo {
  max-height: 58px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition-smooth);
}

.ticker-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Especialidades Consultivas */
.services-section {
  padding: 7rem 0;
  background-color: var(--color-white);
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 4.5rem;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: inline-block;
  position: relative;
  padding-bottom: 1.2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--color-gold);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background-color: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0 0 3.5rem 0; /* Padding inferior para el contenido */
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-card-image-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  border-bottom: 2px solid var(--color-gold);
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.service-card:hover .service-card-img {
  transform: scale(1.05);
}

.service-card h3, .service-card p, .service-card .service-link {
  padding: 0 2.5rem;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(10, 25, 47, 0.05);
  border-color: var(--color-gold);
}

.service-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-navy);
  color: var(--color-gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(10, 25, 47, 0.1);
  margin-top: -40px; /* Eleva el icono para que flote sobre la imagen */
  margin-left: 2.5rem;
  position: relative;
  z-index: 5;
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-gray);
  line-height: 1.7;
  flex-grow: 1;
}

.service-link {
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  width: fit-content;
}

.service-link:hover {
  color: var(--color-gold);
}

/* Sección Dividida (Magazine Style) */
.magazine-section {
  padding: 7rem 0;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-cream);
}

.magazine-grid {
  display: grid;
  grid-template-columns: 1.7fr 1.3fr;
  gap: 6rem;
}

.magazine-column-title {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 2px solid var(--color-navy);
  padding-bottom: 0.8rem;
  margin-bottom: 3rem;
  font-weight: 800;
}

.article-item {
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.article-item:last-child {
  margin-bottom: 0;
}

.article-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-gold);
  font-weight: 700;
}

.article-title h3 {
  font-size: 1.75rem;
  line-height: 1.3;
  font-weight: 700;
}

.article-title:hover h3 {
  color: var(--color-gold);
}

.article-excerpt {
  color: var(--color-gray);
  font-size: 1rem;
  line-height: 1.7;
}

.editorial-service-item {
  background-color: var(--color-cream);
  border-left: 4px solid var(--color-gold);
  padding: 2.2rem;
  margin-bottom: 1.8rem;
  transition: var(--transition-smooth);
  border-radius: 0 6px 6px 0;
}

.editorial-service-item:hover {
  background-color: var(--color-navy);
  color: var(--color-cream);
  transform: translateX(5px);
}

.editorial-service-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.editorial-service-item:hover h4 {
  color: var(--color-gold);
}

.editorial-service-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-gray);
  transition: var(--transition-smooth);
}

.editorial-service-item:hover p {
  color: #cbd5e0;
}

/* Lead Magnet Banner */
.download-banner {
  background-color: var(--color-navy);
  color: var(--color-cream);
  padding: 6.5rem 0;
  border-top: 1px solid var(--color-border);
}

.download-container {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 5rem;
  align-items: center;
}

.download-content {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  align-items: flex-start;
}

.download-tag {
  color: var(--color-gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.download-content h2 {
  color: var(--color-white);
  font-size: 2.6rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.download-content p {
  color: #a0aec0;
  font-size: 1.1rem;
  line-height: 1.7;
}

.download-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-mockup {
  width: 250px;
  height: 340px;
  background-color: var(--color-navy-light);
  border-radius: 4px 14px 14px 4px;
  border: 2.5px solid var(--color-gold);
  box-shadow: 20px 25px 50px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.2rem;
  position: relative;
}

.book-mockup::after {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.08);
}

.book-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-cream);
  line-height: 1.35;
}

.book-subtitle {
  font-size: 0.75rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 8px;
  font-weight: 700;
}

.book-footer {
  font-size: 0.7rem;
  color: #718096;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
  text-align: right;
}

/* Pie de Página */
.site-footer {
  background-color: var(--color-navy);
  color: var(--color-cream);
  padding: 5rem 0 2.5rem;
  border-top: 3px solid var(--color-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3.5rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.footer-brand h4 {
  color: var(--color-white);
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.footer-brand p {
  color: #a0aec0;
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.footer-col h5 {
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.9rem;
}

.footer-links a {
  color: #a0aec0;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-gold);
  padding-left: 6px;
}

.footer-contact-info {
  list-style: none;
}

.footer-contact-info li {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #a0aec0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-info svg {
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom a {
  color: var(--color-gold);
  font-weight: 700;
}

.footer-bottom a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-editorial {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding-top: 5rem;
    text-align: center;
  }
  
  .hero-editorial-content {
    align-items: center;
  }
  
  .hero-editorial-content h1 {
    font-size: 2.8rem;
  }
  
  .hero-editorial-content p {
    border-left: none;
    padding-left: 0;
  }
  
  .magazine-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .download-banner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }
  
  .download-content {
    align-items: center;
  }
  
  .download-content h2 {
    font-size: 2.2rem;
  }
}

/* Hamburguesa Móvil */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-navy);
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 1200;
  transition: var(--transition-smooth);
}

.mobile-menu-toggle svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.mobile-menu-toggle.open svg {
  transform: rotate(90deg);
}

body.no-scroll {
  overflow: hidden;
}

@media (max-width: 992px) {
  .site-header {
    padding: 1rem 5%;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .site-header nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -10px 0 30px rgba(10, 25, 47, 0.15);
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    z-index: 1050;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .site-header nav.mobile-active {
    right: 0;
  }

  .nav-menu {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }

  .nav-link {
    font-size: 1.15rem;
  }

  /* Ocultar CTA original en cabecera de móviles */
  .header-container > .nav-cta {
    display: none;
  }

  /* Estilos específicos para el CTA del menú desplegable móvil */
  .nav-cta-mobile {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: auto;
    background-color: var(--color-navy);
    color: var(--color-white);
    border: none;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 100, 160, 0.2);
  }

  .nav-cta-mobile:hover {
    background-color: var(--color-gold);
    color: var(--color-navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(36, 182, 232, 0.35);
  }
  
  .hero-editorial {
    padding-top: 5rem;
    text-align: center;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-editorial-content {
    align-items: center;
  }
  
  .hero-editorial-content h1 {
    font-size: 2.8rem;
  }
  
  .hero-editorial-content p {
    border-left: none;
    padding-left: 0;
  }
  
  .magazine-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .download-banner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }
  
  .download-content {
    align-items: center;
  }
  
  .download-content h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
