/* ==========================================================================
   COLLADODELCONTE - SISTEMA DE DISEÑO PROFESIONAL
   HIGIENE Y SEGURIDAD LABORAL
   ========================================================================== */

/* 1. Reset y Variables Globales */
:root {
  --bg-light: #FFFFFF;
  --bg-offset: #F8FAFC;
  --bg-dark: #0F172A;          /* Azul petróleo profundo (Fondo principal) */
  --bg-dark-sec: #081120;      /* Azul industrial (Fondo secundario) */
  
  --text-dark: #0F172A;
  --text-dark-sec: #475569;
  --text-light: #F5F7FA;       /* Texto principal */
  --text-light-sec: #C7CED6;   /* Texto secundario */
  --text-technical: #A6AFB8;   /* Gris técnico */
  
  /* Paleta Corporativa Oficial */
  --accent-primary: #2E8B57;     /* Verde corporativo (botones, interactivos) */
  --accent-secondary: #3AA76D;   /* Verde destacado (títulos destacados, detalles premium) */
  --accent-border: #A6AFB8;      /* Gris técnico para bordes */
  --whatsapp-green: #2E8B57;     /* Usar verde corporativo oficial */
  
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.25s ease-in-out;
  --transition-fast: all 0.15s ease;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 16px;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

/* 2. Tipografía y Estructuras */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 600; /* Montserrat SemiBold */
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw + 0.5rem, 4rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw + 0.5rem, 2.6rem);
  margin-bottom: 1.25rem;
  color: var(--text-light); /* En fondo oscuro predeterminado */
}

h3 {
  font-size: clamp(1.2rem, 2vw + 0.3rem, 1.6rem);
  font-weight: 600;
}

p {
  font-size: 1rem;
  color: var(--text-light-sec);
}

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

.text-gradient {
  color: var(--accent-secondary); /* Verde destacado para títulos destacados */
}

.dark-section .text-gradient {
  color: var(--accent-secondary);
}

/* 3. Estilos de Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

.dark-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.dark-section p {
  color: var(--text-light-sec);
}

/* Navbar */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(15, 23, 42, 0.95); /* Fondo oscuro #0F172A con opacidad */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
}

.logo-brand {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800; /* Montserrat SemiBold/Bold */
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-family: var(--font-title);
  font-weight: 600; /* Montserrat SemiBold */
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #C7CED6; /* Texto secundario */
  padding: 0.5rem 0.25rem;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-secondary); /* Verde destacado */
}

/* Botones de navegación */
.btn-whatsapp-nav {
  padding: 0.6rem 1rem;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 800; /* Montserrat Bold */
  background-color: var(--accent-primary); /* #2E8B57 */
  color: #fff;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: var(--transition-fast);
}

.btn-whatsapp-nav:hover {
  background-color: var(--accent-secondary); /* #3AA76D */
  transform: translateY(-1px);
}

.btn-primary-nav {
  padding: 0.6rem 1.25rem;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 800; /* Montserrat Bold */
  border: 1px solid var(--accent-border); /* #A6AFB8 */
  color: var(--text-light); /* #F5F7FA */
  background-color: transparent;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.btn-primary-nav:hover {
  border-color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.05);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Menú Drawer Móvil */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: var(--bg-dark-sec);
  z-index: 1005;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  padding: 5rem 2rem;
  gap: 1.25rem;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer .nav-link {
  color: var(--text-light);
  font-size: 1.15rem;
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.btn-whatsapp-drawer {
  background-color: var(--whatsapp-green);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
}

.btn-primary-drawer {
  border: 1px solid var(--text-light);
  color: var(--text-light);
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
}

/* 4. Botones */
.btn-impact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 800; /* Montserrat Bold */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  border: none;
  background-color: var(--accent-primary); /* #2E8B57 */
  border-radius: 6px; /* bordes suaves */
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* sombra sutil */
}

.btn-impact:hover {
  background-color: var(--accent-secondary); /* #3AA76D */
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-whatsapp-hero {
  background-color: var(--accent-primary);
  font-weight: 800; /* Montserrat Bold */
}

.btn-whatsapp-hero:hover {
  background-color: var(--accent-secondary);
}

.btn-impact-sec {
  background-color: transparent;
  border: 1px solid var(--accent-border); /* #A6AFB8 */
  color: var(--text-light); /* #F5F7FA */
  font-weight: 800; /* Montserrat Bold */
  box-shadow: none;
}

.btn-impact-sec:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  border-color: var(--text-light);
}

.btn-dark-theme {
  background-color: var(--bg-dark-sec);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-dark-theme:hover {
  background-color: var(--accent-secondary);
}

/* 5. Desactivar Animaciones Reveal Molestas */
.reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* 6. Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 550px;
  display: flex;
  align-items: center;
  background-image: url('imagen.jpg'); /* Imagen industrial nocturna de fondo */
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  overflow: hidden;
  padding-top: 5rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 40%, rgba(15, 23, 42, 0.5) 100%); /* Degradado horizontal de oscuro a translúcido */
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-title-main {
  font-size: clamp(2.2rem, 5.5vw + 0.5rem, 3.8rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 600;
  color: var(--text-light-sec);
  margin-bottom: 1.25rem;
}

.hero-desc {
  max-width: 580px;
  font-size: 1rem;
  color: var(--text-light-sec);
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
}

@media (max-width: 1024px) {
  .hero-cta-group {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* 7. Logros */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (max-width: 768px) {
  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.achievement-card {
  padding: 2rem 1.5rem;
  border-top: 3px solid var(--accent-secondary);
  background: var(--bg-dark-offset);
  border-radius: 4px;
}

.achievement-num {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.achievement-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-light-sec);
}

/* 8. Quiénes Somos */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .about-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 2.5rem;
  }
  .about-slideshow-container {
    height: 250px;
  }
}

.about-header-tag {
  color: var(--accent-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
}

.about-slideshow-container {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--accent-border);
}

.about-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  z-index: 1;
}

.about-slide.active {
  opacity: 1;
  z-index: 2;
}

.about-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 9. Servicios Grid */
.services-section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}

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

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.services-section {
  background-color: var(--bg-dark-sec); /* Fondo azul industrial */
  color: var(--text-light);
}

.service-card-impact {
  background-color: var(--bg-dark); /* Fondo azul petróleo profundo */
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0; /* padding 0 para permitir que la imagen ocupe todo el ancho */
  border-radius: 6px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.service-card-image-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  border-bottom: 2px solid var(--accent-primary);
}

.service-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.service-card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-impact:hover {
  transform: translateY(-4px);
  border-color: rgba(58, 167, 109, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.service-icon-box {
  font-size: 1.5rem;
  color: #3AA76D; /* Verde destacado para iconos */
  margin-bottom: 0.75rem;
}

.service-title-impact {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600; /* Montserrat SemiBold */
  margin-bottom: 0.75rem;
  color: #FFFFFF;
}

.service-desc-impact {
  font-size: 0.85rem;
  color: #C7CED6; /* Texto secundario */
  margin-bottom: 1.5rem;
  line-height: 1.5;
  flex-grow: 1;
}

.service-link-impact {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700; /* Montserrat Bold */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3AA76D; /* Verde destacado */
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  transition: var(--transition-fast);
}

.service-link-impact:hover {
  color: #FFFFFF;
}

/* 10. MODAL DETALLES */
.details-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  padding: 1.5rem;
}

.details-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.details-modal-box {
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  border-radius: 6px;
  padding: 2.5rem 2rem;
  position: relative;
  transform: translateY(15px);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.details-modal-overlay.active .details-modal-box {
  transform: translateY(0);
}

.details-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.35rem;
  color: var(--text-light-sec);
  cursor: pointer;
  padding: 0.25rem;
}

.details-modal-close:hover {
  color: var(--accent-primary);
}

.modal-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-dark-sec);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-secondary);
  margin-bottom: 1.25rem;
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

.modal-body-content {
  font-size: 0.95rem;
  color: var(--text-light-sec);
  line-height: 1.55;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.modal-body-content ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
}

.modal-body-content li {
  margin-bottom: 0.4rem;
}

/* 11. Sección de Consejos */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .tips-grid {
    grid-template-columns: 1fr;
  }
}

.tip-card {
  background: var(--bg-dark-sec);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.tip-card:hover {
  border-color: var(--accent-secondary);
}

.tip-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
}

.tip-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--accent-primary);
}

/* 12. Slider Testimonios */
.testimonials-slider-wrapper {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-slider {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-slide {
  min-width: 100%;
}

.testimonial-card-impact {
  background: var(--bg-dark-offset);
  padding: 2.5rem 2rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-text-impact {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-user-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent-secondary);
}

.testimonial-user-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
}

.testimonial-user-role {
  font-size: 0.8rem;
  color: var(--text-light-sec);
}

.slider-nav-container {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.slider-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-nav-btn:hover {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
}

/* 13. Equipo Humano */
.team-grid-impact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .team-grid-impact {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }
}

.team-card-impact {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--accent-border);
  background: var(--bg-light);
}

.team-img-wrapper {
  width: 100%;
  height: 320px;
  overflow: hidden;
  position: relative;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-overlay-impact {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.team-card-impact:hover .team-overlay-impact {
  opacity: 1;
}

.team-quote-text {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-light);
}

.team-info-box {
  padding: 1.25rem;
  text-align: center;
}

.team-name-impact {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--accent-primary);
}

.team-role-impact {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-dark-sec);
}

/* 14. Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card-impact {
  background-color: var(--bg-dark-offset);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-smooth);
}

.blog-card-impact:hover {
  border-color: var(--accent-secondary);
}

.blog-img-box {
  height: 180px;
  overflow: hidden;
}

.blog-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content-box {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-date-box {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light-sec);
  margin-bottom: 0.5rem;
}

.blog-title-impact {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.blog-excerpt-impact {
  font-size: 0.85rem;
  color: var(--text-light-sec);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.blog-btn-impact {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* 15. Contacto */
.contact-section-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}

@media (max-width: 1024px) {
  .contact-section-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.whatsapp-giant-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--whatsapp-green);
  color: #fff;
  padding: 1rem 1.5rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  transition: var(--transition-fast);
}

.whatsapp-giant-btn:hover {
  background-color: #128C7E;
}

.whatsapp-giant-btn i {
  font-size: 1.5rem;
}

.form-impact-clean {
  background: var(--bg-dark-sec);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.5rem 1.75rem;
  border-radius: 4px;
}

.form-group-impact {
  margin-bottom: 1.25rem;
}

.form-group-impact label {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--text-light-sec);
}

.form-input-impact {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.03);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-light);
  transition: var(--transition-fast);
}

.form-input-impact:focus {
  outline: none;
  border-color: var(--accent-secondary);
}

.textarea-impact {
  min-height: 100px;
}

/* Toast de confirmación */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10001;
  pointer-events: none;
}

.toast-box {
  background: var(--bg-dark);
  color: #fff;
  border-left: 4px solid var(--accent-secondary);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(80px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.toast-box.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.toast-icon-box {
  font-size: 1.5rem;
  color: var(--accent-secondary);
}

/* Footer */
.footer-main {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0 2rem;
}

.footer-grid-box {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .footer-grid-box {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #FFFFFF;
}

.footer-desc {
  max-width: 320px;
  font-size: 0.85rem;
  color: var(--text-light-sec);
}

.footer-title-list {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.footer-list-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-list-items a, .footer-list-items li {
  font-size: 0.85rem;
  color: var(--text-light-sec);
}

.footer-list-items a:hover {
  color: var(--accent-secondary);
}

.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-copy-text {
  font-size: 0.75rem;
  color: var(--text-light-sec);
}

.footer-social-row {
  display: flex;
  gap: 0.5rem;
}

.footer-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light-sec);
  transition: var(--transition-fast);
}

.footer-social-btn:hover {
  background-color: var(--accent-secondary);
  border-color: var(--accent-secondary);
  color: #fff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

@media (max-width: 1024px) {
  .nav-header {
    background-color: rgba(15, 23, 42, 0.98) !important;
  }
  
  .hero-section {
    padding-top: 6rem !important;
    height: auto !important;
    min-height: calc(100vh - 6rem) !important;
  }
}

/* ==========================================================================
   Nueva Sección Editorial Premium de Autoridad Profesional
   ========================================================================== */
.authority-section {
  background-color: var(--bg-dark-sec); /* Fondo secundario: #081120 */
  color: var(--text-light);             /* Texto principal: #F5F7FA */
}

.authority-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4.5rem;
  align-items: center;
}

/* Contenedor de Imagen Premium */
.authority-img-container {
  position: relative;
  border-radius: 8px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(58, 167, 109, 0.2) 0%, rgba(46, 139, 87, 0.05) 100%);
  border: 1px solid rgba(58, 167, 109, 0.3); /* Borde fino verde */
  box-shadow: 0 0 25px rgba(58, 167, 109, 0.1); /* Iluminación sutil */
  overflow: hidden;
  transition: var(--transition-smooth);
}

.authority-img-container:hover {
  box-shadow: 0 0 35px rgba(58, 167, 109, 0.2);
  border-color: rgba(58, 167, 109, 0.5);
}

.authority-img-wrapper {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  width: 100%;
}

.authority-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.authority-img-container:hover .authority-img {
  transform: scale(1.02);
}

/* Bloque de Contenido / Autoridad (Derecha) */
.authority-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.authority-tagline {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 600; /* Montserrat SemiBold */
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.authority-tagline-white {
  color: #F5F7FA;
  display: block;
}

.authority-tagline-green {
  color: #3AA76D; /* Verde destacado */
  display: block;
  margin-top: 0.25rem;
}

.authority-divider {
  width: 60px;
  height: 3px;
  background-color: #3AA76D; /* Separador elegante verde destacado */
  margin: 0.5rem 0;
  border-radius: 2px;
}

.authority-subtitle {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.25rem;
  color: #F5F7FA;
}

.authority-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #C7CED6; /* Texto secundario */
}

/* Grid de Indicadores Minimalistas */
.indicators-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.indicator-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(166, 175, 184, 0.1); /* Borde sutil gris técnico */
  border-radius: 6px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: var(--transition-fast);
}

.indicator-card:hover {
  border-color: rgba(58, 167, 109, 0.3);
  background: rgba(15, 23, 42, 0.6);
}

.indicator-icon {
  font-size: 1.35rem;
  color: #3AA76D; /* Verde destacado */
}

.indicator-info {
  display: flex;
  flex-direction: column;
}

.indicator-value {
  font-family: var(--font-title);
  font-weight: 800; /* Montserrat Bold */
  font-size: 1.15rem;
  color: #F5F7FA;
}

.indicator-label {
  font-size: 0.8rem;
  color: #A6AFB8; /* Gris técnico */
  font-weight: 500;
}

/* Adaptación responsive */
@media (max-width: 1024px) {
  .authority-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  /* En móviles se requiere orden estricto: Imagen, Título, Texto, Indicadores */
  .authority-grid-mobile-order {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  .authority-grid-mobile-order .authority-img-container {
    order: 1; /* 1. Imagen */
  }
  
  .authority-grid-mobile-order .authority-content {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  
  .authority-grid-mobile-order .authority-tagline {
    order: 1; /* 2. Título */
  }
  
  .authority-grid-mobile-order .authority-divider {
    order: 2;
  }
  
  .authority-grid-mobile-order .authority-subtitle {
    order: 3;
  }
  
  .authority-grid-mobile-order .authority-text-block {
    order: 4; /* 3. Texto */
  }
  
  .authority-grid-mobile-order .indicators-grid {
    order: 5; /* 4. Indicadores */
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
  }
}

.section-header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
  text-align: left;
  max-width: 100%;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .section-header-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
    margin-bottom: 2.5rem;
  }
}

.bottom-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: left;
  font-size: 0.85rem;
  color: #C7CED6;
}

@media (max-width: 992px) {
  .bottom-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .footer-credit-text-container {
    align-items: center;
    text-align: center;
  }
}

.footer-credit-link {
  transition: opacity 0.25s ease-in-out;
}
.footer-credit-link:hover {
  opacity: 0.8;
}


