/* =========================================================
   CORDERO Y ASOCIADOS — Sistema de Diseño Premium
   ========================================================= */

/* ---- Fuentes ---- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}
html { 
  scroll-behavior: smooth; 
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-light);
}
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Variables de Diseño (Tokens) ---- */
:root {
  /* Paleta HSL y HEX de Alta Gama */
  --primary-color: #1C4A96;       /* Primary Blue */
  --primary-hover: #0C3A85;       /* Accent Blue */
  --primary-light: #eff6ff;       /* Soft Blue Tint */
  --accent-dark: #000E45;         /* Deep Text */
  --accent-medium: #000E45;       /* Deep Text */
  
  --bg-light: #f8fafc;            /* Clean Off-White */
  --bg-card: #ffffff;             /* Crisp White */
  --bg-alt: #0C3A85;              /* Por Qué Elegirnos Background */
  --border-light: #E2E8F0;        /* Fine Border Line */
  --border-focus: #1C4A96;        /* Focus Blue */

  --text-dark: #000E45;           /* Strong Text */
  --text-muted: #334155;          /* Medium Text */
  --text-light: #64748b;          /* Secondary Soft Text */
  --text-white: #ffffff;          /* White Text */

  /* Sombras Multicapa Premium */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.08), 0 2px 8px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 32px 64px -12px rgba(15, 23, 42, 0.16);

  /* Radios de Borde */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Tipografía */
  --font-head: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Layout */
  --container-w: 1240px;
  --header-h: 88px;
}

/* ---- Tipografía Base ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  position: relative;
}
h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}
p {
  color: var(--text-muted);
  font-size: 1.025rem;
}
a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* ---- Estructura & Secciones ---- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}
.section {
  padding: 100px 0;
}
.section-tight {
  padding: 60px 0;
}
.surface-tint {
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--primary-color);
  border-radius: var(--radius-pill);
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head.center .eyebrow::before {
  display: none;
}
.section-head p {
  margin-top: 16px;
  font-size: 1.125rem;
}

/* ---- Botones Premium ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn-primary {
  background: var(--primary-color);
  color: var(--text-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--border-light);
}
.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: var(--primary-light);
  transform: translateY(-2px);
}
.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--text-white);
  transform: translateY(-2px);
}
.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* =========================================================
   HEADER / NAVBAR (Glassmorphism)
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  height: calc(var(--header-h) - 12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.brand-logo {
  height: 74px;
  width: auto;
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--accent-dark);
}
.brand-amp {
  color: var(--primary-color);
}
.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-top: 3px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-link {
  position: relative;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.25s ease;
  border-radius: var(--radius-pill);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* ---- Dropdown Servicios ---- */
.has-dropdown {
  position: relative;
}
.dropdown {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 10px);
  background: var(--bg-card);
  min-width: 340px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  z-index: 250;
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 8px;
  background: transparent;
}
.has-dropdown:hover > .dropdown,
.has-dropdown.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 4px);
}
.dropdown li a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}
.dropdown li a:hover {
  background: var(--primary-light);
  color: var(--primary-color);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.03);
  padding: 12px;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  border-radius: var(--radius-pill);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 300;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
  }
  .main-nav.is-open {
    transform: translateX(0);
  }
  .main-nav > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }
  .nav-link {
    font-size: 1.25rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  }
  .has-dropdown {
    width: 100%;
  }
  .has-dropdown > .nav-link::after {
    content: "↓";
    font-size: 0.9rem;
    color: var(--text-light);
    transition: transform 0.2s ease;
  }
  .has-dropdown.is-open > .nav-link::after {
    transform: rotate(-180deg);
  }
  .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    display: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    width: 100%;
    padding-left: 16px;
    border-left: 2px solid var(--border-light);
  }
  .has-dropdown.is-open > .dropdown {
    display: block;
  }
  .nav-cta {
    width: 100%;
  }
}

/* =========================================================
   HERO CARRUSEL FULL-WIDTH
   ========================================================= */
.hero-carousel-full {
  position: relative;
  width: 100%;
  height: 88vh;        /* antes 80vh */
  min-height: 620px;   /* antes 500px */
  max-height: 780px;   /* antes 700px */
  overflow: hidden;
}
.hero-carousel-full-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-carousel-full-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease-in-out, transform 6s ease-out;
  pointer-events: none;
}
.hero-carousel-full-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.hero-carousel-full-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Flechas de navegación */
.hero-carousel-full-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-carousel-full-arrow svg {
  width: 22px;
  height: 22px;
}
.hero-carousel-full-arrow:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-50%) scale(1.08);
}
.hero-carousel-full-arrow:focus-visible {
  outline: 2px solid var(--text-white);
  outline-offset: 2px;
}
.hero-carousel-full-arrow.prev { left: 24px; }
.hero-carousel-full-arrow.next { right: 24px; }


/* Entrada escalonada del contenido de texto */
.hero-overlay-content .hero-eyebrow,
.hero-overlay-content h1,
.hero-overlay-content .hero-lead,
.hero-overlay-content .hero-actions,
.hero-overlay-content .hero-stats {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.7s ease-out forwards;
}
.hero-overlay-content .hero-eyebrow { animation-delay: 0.1s; }

.hero-overlay-content h1 {
  color: var(--text-white);
  max-width: 820px;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 12px;
}

.hero-overlay-content .hero-lead {
  color: #cbd5e1;
  max-width: 620px;
  font-size: 1.1rem;
  line-height: 1.6;      /* antes 1.7, un poco más compacto */
  margin-bottom: 24px;   /* antes 28px */
}

.hero-overlay-content .hero-actions {
  margin-bottom: 32px;   /* antes 40px */
}
.hero-overlay-content .hero-stats { animation-delay: 0.58s; }

.hero-overlay-content h1,
.hero-overlay-content .hero-lead,
.hero-overlay-content .hero-eyebrow {
  text-shadow: 0 2px 14px rgba(0, 14, 69, 0.55);
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-full-slide,
  .hero-overlay-content .hero-eyebrow,
  .hero-overlay-content h1,
  .hero-overlay-content .hero-lead,
  .hero-overlay-content .hero-actions,
  .hero-overlay-content .hero-stats {
    animation: none !important;
    transition: opacity 0.4s ease !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 900px) {
  .hero-carousel-full {
    height: 60vh;
    min-height: 340px;
  }
  .hero-carousel-full-arrow {
    width: 40px;
    height: 40px;
  }
  .hero-carousel-full-arrow.prev { left: 12px; }
  .hero-carousel-full-arrow.next { right: 12px; }
}

@media (max-width: 600px) {
  .hero-carousel-full-arrow { display: none; } /* en móvil se navega por swipe */
}
/* ---- Hero Páginas Internas ---- */
.hero-page {
  position: relative;
  overflow: hidden;
  background-color: var(--accent-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-white);
  padding: 96px 0 72px;
}
.hero-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 14, 69, 0.85) 0%, rgba(12, 58, 133, 0.75) 100%);
  z-index: 1;
}
.hero-page .container {
  position: relative;
  z-index: 2;
}
.hero-page .hero-eyebrow {
  color: #93c5fd;
}
.hero-page h1 {
  color: var(--text-white);
  max-width: 720px;
}
.hero-page .hero-lead {
  color: #cbd5e1;
  max-width: 620px;
  margin-top: 16px;
  margin-bottom: 0;
}
.hero-page-visual {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.hero-page .container {
  position: relative;
  z-index: 2;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 24px;
}
.breadcrumb a {
  color: #93c5fd;
}
.breadcrumb a:hover {
  color: var(--text-white);
}

@media (max-width: 760px) {
  .hero-page-visual { display: none; }
  .hero-page { padding: 72px 0 56px; }
}

/* =========================================================
   HERO OVERLAY (Encima del Carrusel)
   ========================================================= */
.hero-overlay-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: rgba(12, 58, 133, 0.55);
  backdrop-filter: blur(3px);
    padding: clamp(56px, 9vh, 100px) 0;
}

.hero-overlay-content .container {
  position: relative;
  z-index: 2;
}
.hero-overlay-content .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 20px;
}
.hero-overlay-content .hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: #93c5fd;
  border-radius: var(--radius-pill);
}
.hero-overlay-content h1 {
  color: var(--text-white);
  max-width: 720px;
  margin-bottom: 16px;
}
.hero-overlay-content .hero-lead {
  color: #cbd5e1;
  max-width: 620px;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}
.hero-overlay-content .hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-overlay-content .hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.1;
}
.hero-stat-label {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 760px) {
  .hero-overlay-content {
    padding: 48px 0;
    align-items: center;
    background: linear-gradient(to top, rgba(0, 14, 69, 0.95) 0%, rgba(12, 58, 133, 0.6) 50%, rgba(12, 58, 133, 0.2) 100%);
  }
  .hero-overlay-content .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-overlay-content .hero-actions .btn {
    width: 100%;
  }
  .hero-overlay-content .hero-stats {
    gap: 16px;
    width: 100%;
    justify-content: center;
  }
  .hero-overlay-content .hero-stats > div {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    flex: 1 1 calc(50% - 16px);
    text-align: center;
    box-shadow: var(--shadow-md);
  }
  .hero-stat-num {
    font-size: 2rem;
  }
  .hero-stat-label {
    font-size: 0.75rem;
  }
}

/* =========================================================
   SISTEMA DE TARJETAS Y GRID (Cards)
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary-color);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
  border-color: rgba(15, 23, 42, 0.08);
}
.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary-color);
  margin-bottom: 24px;
  transition: all 0.3s ease;
}
.service-card:hover .service-icon {
  background: var(--primary-color);
  color: var(--text-white);
  transform: scale(1.05);
}
.service-icon svg {
  width: 26px;
  height: 26px;
}
.service-card h3 {
  margin-bottom: 12px;
}
.service-card p {
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}
.service-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.service-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.service-link:hover svg {
  transform: translateX(4px);
}

/* ---- Cards en Landing de Servicios ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.service-link-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-link-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
  border-color: rgba(15, 23, 42, 0.08);
}
.service-link-img {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light), var(--bg-light));
  background-size: cover;
  background-position: center;
  position: relative;
}
.service-link-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-link-card:hover .service-link-img img {
  transform: scale(1.06);
}
.service-link-body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-link-body h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}
.service-link-body p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.service-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-color);
}
.service-link-card:hover .service-link-cta {
  text-decoration: underline;
}
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   DETALLE DE SERVICIO
   ========================================================= */
.service-detail-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 1.1rem;
}
.service-detail-list {
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
  margin-block: 32px;
}
.service-detail-list li {
  position: relative;
  padding-left: 28px;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.service-detail-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
}
@media (max-width: 640px) {
  .service-detail-list {
    grid-template-columns: 1fr;
  }
}

.service-detail-section {
  margin-top: 56px;
}
.service-detail-section h3 {
  margin-bottom: 16px;
  font-size: 1.5rem;
}
.service-detail-section p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.service-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}
.service-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.service-nav a:hover {
  color: var(--primary-hover);
}

/* =========================================================
   PROPUESTA DE VALOR
   ========================================================= */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } }

.value-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.value-item:hover .value-icon {
  background: var(--primary-color);
  color: var(--text-white);
  transform: rotate(10deg);
}
.value-icon svg {
  width: 24px;
  height: 24px;
}
.value-item h3 {
  font-size: 1.15rem;
  color: var(--accent-dark);
}
.value-item p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =========================================================
   RESPALDO RED GLOBAL (UC&CS Global)
   ========================================================= */
.backing-section {
  background: var(--accent-dark);
  color: var(--text-white);
  border-radius: var(--radius-lg);
  padding: 72px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.backing-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.backing-section h2 {
  color: var(--text-white);
  font-size: 2rem;
}
.backing-section p {
  color: #cbd5e1;
  line-height: 1.8;
}
.backing-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.backing-stat {
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  padding-left: 20px;
}
.backing-stat-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-white);
}
.backing-stat-label {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .backing-section {
    grid-template-columns: 1fr;
    padding: 48px 32px;
    gap: 40px;
  }
  .backing-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================
   BROCHURE SECTION
   ========================================================= */
.brochure-section {
  display: flex;
  align-items: center;
  gap: 64px;
  background: var(--bg-card);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  padding: 56px 64px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
.brochure-left {
  flex-shrink: 0;
}
.brochure-doc {
  width: 180px;
  height: 230px;
  background: linear-gradient(145deg, #f0f7ff 0%, #dbeafe 100%);
  border-radius: 12px;
  border: 2px solid rgba(28, 74, 150, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 32px rgba(28, 74, 150, 0.1);
}
.brochure-doc svg {
  width: 64px;
  height: 64px;
  color: var(--primary-color);
  opacity: 0.6;
}
.brochure-doc-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}
.brochure-right {
  flex: 1;
}
.brochure-title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 8px 0 16px;
}
.brochure-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 28px;
}
.brochure-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}
.brochure-stat {
  display: flex;
  flex-direction: column;
}
.brochure-stat strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-color);
}
.brochure-stat span {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 2px;
}
.brochure-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.3s ease;
}
.brochure-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28, 74, 150, 0.3);
}
@media (max-width: 768px) {
  .brochure-section {
    flex-direction: column;
    text-align: center;
    padding: 40px 28px;
    gap: 32px;
  }
  .brochure-stats {
    justify-content: center;
  }
}

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
  border-radius: var(--radius-lg);
  padding: 56px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: var(--text-white);
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 {
  color: var(--text-white);
  margin-bottom: 8px;
}
.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}
@media (max-width: 760px) {
  .cta-banner {
    padding: 40px 32px;
    text-align: center;
    justify-content: center;
  }
}

/* =========================================================
   SECCIÓN DE ACTUALIDAD & ARTÍCULOS
   ========================================================= */
.article-card {
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}
.article-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light), var(--bg-light));
}
.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .article-thumb img {
  transform: scale(1.06);
}
.article-body {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.article-body h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--accent-dark);
}
.article-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: auto;
}

.featured-article {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 64px;
}
.featured-article .article-thumb {
  aspect-ratio: auto;
  height: 100%;
  min-height: 380px;
}
.featured-article .article-body {
  padding: 48px 48px 48px 0;
}
@media (max-width: 860px) {
  .featured-article {
    grid-template-columns: 1fr;
  }
  .featured-article .article-body {
    padding: 32px;
  }
  .featured-article .article-thumb {
    min-height: 240px;
  }
}

/* =========================================================
   EQUIPO INSTITUCIONAL
   ========================================================= */
/* Team Carousel */
.team-carousel {
  position: relative;
  overflow: hidden;
}
.team-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.team-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding: 0 4px;
}
.team-slide:last-child {
  grid-template-columns: repeat(2, 1fr);
}
.team-slide:last-child .team-card {
  visibility: hidden;
}
.team-slide:last-child .team-card:first-child {
  grid-column: 1 / 2;
  visibility: visible;
}
.team-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.team-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.team-nav-btn:hover {
  background: var(--primary-color);
  color: #fff;
}
.team-nav-btn svg {
  width: 20px;
  height: 20px;
}
.team-dots {
  display: flex;
  gap: 10px;
}
.team-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.team-dot.active {
  background: var(--primary-color);
}

.team-card {
  background: var(--bg-card);
  border: 1px solid rgba(15, 23, 42, 0.04);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(15, 23, 42, 0.08);
}
.team-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--bg-light));
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.team-card:hover .team-photo img {
  transform: scale(1.05);
}

/* Fallback SVG / Icon profile */
.team-photo .team-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: var(--primary-color);
}
.team-photo .team-avatar-fallback svg {
  width: 50%;
  height: 50%;
  opacity: 0.75;
}

.team-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent-dark);
  text-align: center;
}
.team-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}
.team-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: 12px;
  line-height: 1.5;
}
.team-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: 12px;
  line-height: 1.6;
}
@media (max-width: 640px) {
  .team-slide {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }
  .team-slide:last-child .team-card {
    visibility: visible;
  }
  .team-photo {
    width: 150px;
    height: 150px;
  }
}

/* =========================================================
   PREGUNTAS FRECUENTES (FAQ)
   ========================================================= */
.faq-list {
  max-width: 800px;
  margin-inline: auto;
}
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--bg-card);
  transition: all 0.25s ease;
}
.faq-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(15, 23, 42, 0.12);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  background: var(--bg-card);
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  gap: 20px;
  transition: color 0.2s ease;
}
.faq-question:hover {
  color: var(--primary-color);
}
.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--text-light);
  line-height: 1;
  transition: transform 0.3s ease;
}
.faq-item.is-open .faq-question {
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-light);
}
.faq-item.is-open .faq-question::after {
  content: "−";
  transform: rotate(180deg);
  color: var(--primary-color);
}
.faq-answer {
  display: none;
  padding: 20px 28px 24px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.01);
}
.faq-item.is-open .faq-answer {
  display: block;
}

/* =========================================================
   FORMULARIOS Y CAMPOS
   ========================================================= */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}
.form-field input, 
.form-field textarea, 
.form-field select {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.96rem;
  background: var(--bg-card);
  color: var(--text-dark);
  transition: all 0.2s ease;
}
.form-field input::placeholder, 
.form-field textarea::placeholder {
  color: #94a3b8;
}
.form-field input:focus, 
.form-field textarea:focus, 
.form-field select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
  outline: none;
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* =========================================================
   PÁGINA CONTACTO
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.info-card {
  background: var(--accent-dark);
  color: var(--text-white);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-shadow: var(--shadow-lg);
}
.info-card h3 {
  color: var(--text-white);
  font-size: 1.35rem;
}
.info-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-row .icon-wrap {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.info-row .icon-wrap svg {
  width: 20px;
  height: 20px;
}
.info-row p, .info-row a {
  color: #cbd5e1;
  font-size: 0.96rem;
  line-height: 1.6;
}
.info-row a:hover {
  color: var(--text-white);
  text-decoration: underline;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 560px) {
  .form-card {
    padding: 32px 24px;
  }
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 56px;
}
.map-wrap iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
}
@media (max-width: 760px) {
  .map-wrap {
    aspect-ratio: 16 / 9;
  }
  .map-wrap iframe {
    height: 100%;
  }
}

/* =========================================================
   FOOTER (Premium Slate Dark)
   ========================================================= */
.site-footer {
  background: var(--accent-dark);
  color: #cbd5e1;
  padding-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1.1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand .brand-name {
  color: var(--text-white);
}
.footer-brand .brand-tagline {
  color: #94a3b8;
}
.footer-desc {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 300px;
}
.footer-col h4 {
  color: var(--text-white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}
.footer-col a {
  font-size: 0.92rem;
  color: #94a3b8;
}
.footer-col a:hover {
  color: var(--text-white);
  transform: translateX(4px);
}
.footer-col address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.8;
  color: #94a3b8;
}
.footer-col address a {
  display: block;
  margin-top: 8px;
  color: #93c5fd;
}
.footer-col address a:hover {
  color: var(--text-white);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.82rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PANEL DE COTIZACIÓN (Side drawer)
   ========================================================= */
.quote-trigger {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 290;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-color);
  color: var(--text-white);
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.quote-trigger:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}
.quote-trigger svg {
  width: 20px;
  height: 20px;
}

.quote-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 350;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.quote-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.quote-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(460px, 100%);
  background: var(--bg-card);
  z-index: 400;
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}
.quote-panel.is-open {
  transform: translateX(0);
}
.quote-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--border-light);
}
.quote-panel-header h3 {
  font-size: 1.35rem;
}
.quote-close {
  width: 36px;
  height: 36px;
  font-size: 1.8rem;
  color: var(--text-light);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}
.quote-close:hover {
  color: var(--text-dark);
  background: rgba(15, 23, 42, 0.08);
}
.quote-panel-body {
  padding: 32px;
}
.quote-panel-body p {
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* =========================================================
   SISTEMA DE NOTIFICACIONES TOAST (Premium Alert)
   ========================================================= */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast-notification {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  color: var(--text-white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary-color);
  min-width: 300px;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(120%);
  animation: slideInToast 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transition: all 0.3s ease;
}
.toast-notification.success {
  border-left-color: #10b981; /* Green */
}
.toast-notification.info {
  border-left-color: #3b82f6; /* Blue */
}
.toast-notification.close {
  transform: translateX(120%);
  opacity: 0;
}
.toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toast-icon svg {
  width: 24px;
  height: 24px;
}
.toast-content {
  flex: 1;
}
.toast-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
}
.toast-message {
  font-size: 0.84rem;
  color: #94a3b8;
  margin-top: 2px;
}

@keyframes slideInToast {
  to {
    transform: translateX(0);
  }
}

/* =========================================================
   UTILIDADES Y ANIMACIONES DE SCROLL (reveal)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Deshabilitar animaciones si se prefiere movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Card Overlay Hover */
.card-overlay {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.card-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-overlay-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  text-align: center;
  transition: background 0.3s ease;
}

.card-overlay h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  transition: transform 0.3s ease;
}

.card-overlay:hover .card-overlay-bg {
  background: linear-gradient(transparent, rgba(12, 58, 133, 0.85));
}

.card-overlay:hover h3 {
  transform: scale(1.05);
}

/* =========================================================
   DESCARGAR BROCHURE
   ========================================================= */
.brochure-banner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 48px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.brochure-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brochure-icon svg {
  width: 34px;
  height: 34px;
}
.brochure-text {
  flex: 1;
}
.brochure-text .eyebrow {
  display: block;
  margin-bottom: 8px;
}
.brochure-text h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.brochure-text p {
  max-width: 560px;
}
.brochure-banner .btn-lg {
  flex-shrink: 0;
  padding: 16px 32px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .brochure-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  .brochure-text p {
    max-width: none;
  }
}

/* =========================================================
   GARANTÍA RESPONSIVE (Ajustes Adicionales de Seguridad)
   ========================================================= */
html, body {
  overflow-x: hidden;
  width: 100%;
}
p, h1, h2, h3, h4, h5, h6, a, span {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ---- Tablet (≤760px) ---- */
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
  .brand-logo { height: 56px; }
  .hero-overlay-content h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
  .hero-overlay-content .hero-lead { font-size: 1rem; }
  .cta-banner { padding: 40px 32px; }
  .brochure-section { padding: 40px 28px; }
  .backing-section { padding: 40px 24px; }
  .backing-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .backing-stat-num { font-size: 1.8rem; }
  .card-overlay-bg { padding: 20px; }
  .footer-desc { max-width: none; }
  .team-photo { width: 170px; height: 170px; }
}

/* ---- Móvil (≤480px) ---- */
@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .section { padding: 48px 0; }
  .section-tight { padding: 32px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 1rem; }
  .hero-overlay-content { padding: 24px 0; }
  .hero-overlay-content h1 { font-size: clamp(1.3rem, 5vw, 1.8rem); max-width: none; }
  .hero-overlay-content .hero-lead { font-size: 0.92rem; margin-bottom: 16px; }
  .hero-overlay-content .hero-actions { margin-bottom: 20px; }
  .hero-carousel-full { height: 55vh; min-height: 280px; }
  .btn { padding: 12px 20px; font-size: 0.85rem; white-space: normal; text-align: center; }
  .brand-logo { height: 48px; }
  .backing-section { padding: 32px 20px; border-radius: var(--radius-md); gap: 28px; }
  .backing-stats { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .backing-stat-num { font-size: 1.5rem; }
  .backing-stat-label { font-size: 0.72rem; }
  .service-card { padding: 28px 20px; }
  .service-link-body { padding: 24px 20px; }
  .cta-banner { padding: 32px 20px; border-radius: var(--radius-md); }
  .brochure-section { padding: 28px 20px; gap: 24px; border-radius: var(--radius-md); }
  .brochure-doc { width: 140px; height: 180px; }
  .brochure-doc svg { width: 48px; height: 48px; }
  .brochure-title { font-size: 1.4rem; }
  .brochure-stats { gap: 20px; flex-wrap: wrap; }
  .card-grid { gap: 20px; }
  .card-overlay-bg { padding: 16px; }
  .card-overlay h3 { font-size: 1.1rem; }
  .map-wrap iframe { height: 280px; }
  .quote-trigger { right: 16px; bottom: 16px; padding: 12px 20px; font-size: 0.82rem; gap: 8px; }
  .quote-trigger svg { width: 18px; height: 18px; }
  .quote-panel-header { padding: 24px 20px 16px; }
  .quote-panel-body { padding: 24px 20px; }
  .toast-container { right: 12px; top: 12px; }
  .toast-notification { min-width: auto; max-width: calc(100vw - 24px); padding: 12px 16px; }
  .form-card { padding: 24px 20px; }
  .info-card { padding: 32px 20px; }
  .featured-article .article-body { padding: 24px 20px; }
  .featured-article .article-thumb { min-height: 200px; }
}

/* ---- Extra small (≤360px) ---- */
@media (max-width: 360px) {
  .hero-carousel-full { min-height: 280px; }
  .hero-stat-num { font-size: 1.4rem; }
  .hero-stat-label { font-size: 0.68rem; }
  .backing-stats { grid-template-columns: 1fr; }
  .backing-stat { border-left: none; border-top: 2px solid rgba(255,255,255,0.15); padding-left: 0; padding-top: 12px; }
}
