/* ============================================================
    1. VARIABLES Y RESET
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-dark: #001D3D;
  --blue-mid: #1565A8;
  --blue-light: #00A3E0;
  --yellow: #F39C12;
  --yellow-pale: #FEF9E7;
  --white: #FFFFFF;
  --off-white: #F9FAFB;
  --dark: #000000;
  --blue-pale: #EAF3FB;
  --blue-tint: #D6E8F7;
  --text-body: #000000;
  --text-muted: #000000;
  --border: #E2E8F0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--white);
  color: var(--text-body);
  overflow-x: hidden;
  line-height: 1.65;
}

/* ============================================================
   2. ESTILOS COMPARTIDOS
============================================================ */
.section-eyebrow {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-mid);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.section-eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
}


.section-h {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(2rem, 3vw, 2.20rem);
  color: var(--blue-dark);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.25rem;
  max-width: 650px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}


/* ============================================================
   3. HEADER
============================================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 75px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
  justify-content: space-between;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-wrap img {
  width: 55px;
  height: 65px;
  object-fit: contain;
  margin-left: 10px;
}

.logo-name {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--blue-dark);
  letter-spacing: -0.01em;
  margin-left: -5px;
  line-height: 1;
}

.logo-name span {
  color: var(--yellow);
}

.brand-lockup,
.footer-brand {
  display: flex;
  flex-direction: column;
}

.logo-tagline {
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: var(--text-muted);
}

nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--blue-mid);
}

.btn-nav {
  background: var(--blue-mid);
  color: white !important;
  padding: 0.55rem 1.5rem;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 0.99rem !important;
  transition: background 0.2s, transform 0.15s !important;
}

.btn-nav:hover {
  background: var(--blue-dark) !important;
  transform: translateY(-1px);
}



/* ============================================================
   4. HERO
============================================================ */
.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: stretch;
  min-height: 380px;
  overflow: hidden;
}


.hero-left {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  background: var(--blue-dark);
}

.hero-left::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 2;
  right: -40px;
  width: 80px;
  height: 100%;
  background: var(--blue-dark);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.page-hero h1 {
  max-width: 520px;
  margin-top: 50px;
  color: var(--white);
  font-family: "Fraunces", serif;
  font-size: clamp(2.1rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.page-hero h1 em {
  color: var(--blue-light);
  font-style: italic;
}

.hero-right {
  margin-top: 70px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem 3rem;
  background: var(--off-white);
}

.hero-media-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border: 2px dashed var(--blue-tint);
  border-radius: 20px;
  background: var(--blue-pale);
  transition: border-color 0.2s, background 0.2s;
}

.hero-media-main:hover {
  border-color: var(--blue-light);
  background: #ddeef8;
}

.hero-media-slot {
  border-style: dashed;
  background: linear-gradient(180deg, #f4f9fd 0%, #e8f2f9 100%);
}

.hero-media-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media-main svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--blue-tint);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}


/* ============================================================
   5. CONTEXTO
============================================================ */
.contexto {
  padding: 2rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--off-white);
}

.contexto-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.contexto-header {
  margin-bottom: 1.5rem;
}

.contexto-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contexto-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.contexto-card:hover {
  border-color: var(--blue-tint);
  box-shadow: 0 8px 24px rgba(21, 101, 168, 0.08);
}

.contexto-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border: 1px solid var(--blue-tint);
  border-radius: 11px;
  background: var(--blue-pale);
  flex-shrink: 0;
}

.contexto-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--blue-mid);
}

.contexto-card-body h3 {
  margin-bottom: 0.4rem;
  color: var(--blue-dark);
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.contexto-card-body p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.contexto-card-body p strong,
.contexto-nota p strong {
  color: var(--blue-dark);
}

.contexto-nota {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--blue-tint);
  border-radius: 12px;
  background: var(--blue-pale);
  flex-wrap: wrap;
}

.contexto-nota svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--blue-mid);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  flex-shrink: 0;
}

.contexto-nota p {
  flex: 1;
  color: var(--blue-dark);
  font-size: 1rem;
  line-height: 1.5;
}

.contexto-nota a {
  background: var(--blue-pale);
  color: var(--yellow);
  padding: 0.55rem 1.5rem;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 1.2rem !important;
  transition: background 0.2s, transform 0.15s !important;
}

.contexto-nota a:hover {
  background: var(--blue-dark) !important;
  transform: translateY(-1px);
}


/* ============================================================
   6. CASOS REALES
============================================================ */
.ventajas {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--blue-mid);
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9fc 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 16px 36px rgba(21, 101, 168, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 20px 42px rgba(21, 101, 168, 0.12);
  border-color: rgba(21, 101, 168, 0.22);
}

.service-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(21, 101, 168, 0.15);
  background: #f4f9fc;
}

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

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

.service-card h3 {
  color: var(--blue-dark);
  font-family: "Fraunces", serif;
  font-size: 1.8rem;
  line-height: 1.2;
}

.service-card>p {
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
}

.service-list {
  display: grid;
  gap: 0.6rem;
  list-style: none;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.45;
}

.service-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}


/* ============================================================
   8. FOOTER
============================================================ */
footer {
  background: var(--blue-dark);
  padding: 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner .logo-name {
  color: white;
  font-size: 2rem;
  text-decoration: none;
}

.footer-brand {
  text-decoration: none;
}

.footer-logo .logo-tagline {
  color: rgba(255, 255, 255, 0.72);
  font-size: .70rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.90rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 1rem auto 0;
  text-align: center;
  font-size: 0.90rem;
  color: rgba(255, 255, 255, 0.3);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.social-links a:hover {
  background: var(--blue-mid);
  transform: translateY(-3px);
}

.social-links img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.footer-copy {
  font-size: 0.90rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   9. RESPONSIVE
============================================================ */

/* ==========================
   TABLET
========================== */
@media (max-width:1024px) {

  header {
    padding: 0 1.5rem;
  }

  nav {
    gap: 1.2rem;
  }

  nav a {
    font-size: .95rem;
  }

  .page-hero {
    grid-template-columns: 1fr;
  }

  .hero-left {
    padding: 7rem 2rem 3rem;
    text-align: center;
  }

  .hero-left::after {
    display: none;
  }

  .hero-right {
    margin-top: 0;
    padding: 2rem;
  }

  .page-hero h1 {
    max-width: 900px;
    margin: 0 auto;
  }

  .contexto {
    padding: 2rem;
  }

  .ventajas {
    padding: 2.5rem 2rem;
  }

  .contexto-cards {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-media {
    min-height: 260px;
  }

}


/* ==========================
   MÓVIL
========================== */
@media (max-width:768px) {

  /* HEADER */

  header {
    position: relative;
    height: auto;
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .logo-wrap {
    justify-content: center;
    text-align: center;
  }

  .logo-wrap img {
    width: 48px;
    height: 58px;
    margin-left: 0;
  }

  .logo-name {
    font-size: 1.8rem;
    margin-left: 0;
  }

  .logo-tagline {
    font-size: .60rem;
    white-space: normal;
    text-align: center;
  }

  nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: .8rem 1rem;
  }

  nav a {
    font-size: .95rem;
  }


  /* HERO */

  .page-hero {
    grid-template-columns: 1fr;
  }

  .hero-left {
    padding: 2rem 1.5rem;
  }

  .page-hero h1 {
    margin-top: 0;
    text-align: center;
    font-size: 2.2rem;
  }

  .hero-right {
    margin-top: 0;
    padding: 1.5rem;
  }

  .hero-media-main {
    aspect-ratio: 16/10;
  }


  /* CONTEXTO */

  .contexto {
    padding: 2rem 1.25rem;
  }

  .contexto-header {
    text-align: center;
  }

  .section-eyebrow {
    justify-content: center;
  }

  .section-h {
    text-align: center;
  }

  .section-sub {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .contexto-cards {
    grid-template-columns: 1fr;
  }

  .contexto-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contexto-nota {
    flex-direction: column;
    text-align: center;
  }

  .contexto-nota a {
    width: 100%;
    text-align: center;
  }


  /* SERVICIOS */

  .ventajas {
    padding: 2rem 1.25rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 1.3rem;
  }

  .service-media {
    min-height: 220px;
  }

  .service-card h3 {
    font-size: 1.5rem;
    text-align: center;
  }

  .service-card>p {
    font-size: 1rem;
    text-align: center;
  }

  .service-list li {
    font-size: .95rem;
  }


  /* FOOTER */

  footer {
    padding: 1.5rem 1.25rem;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .social-links {
    justify-content: center;
    width: 100%;
  }

}


/* ==========================
   CELULARES PEQUEÑOS
========================== */
@media (max-width:480px) {

  header {
    padding: .9rem;
  }

  .logo-name {
    font-size: 1.55rem;
  }

  .logo-tagline {
    font-size: .55rem;
  }

  nav {
    gap: .7rem;
  }

  nav a {
    font-size: .88rem;
  }

  .hero-left {
    padding: 1.8rem 1rem;
  }

  .page-hero h1 {
    font-size: 1.85rem;
  }

  .hero-right {
    padding: 1rem;
  }

  .contexto {
    padding: 1.6rem 1rem;
  }

  .ventajas {
    padding: 1.8rem 1rem;
  }

  .section-h {
    font-size: 1.8rem;
  }

  .section-sub {
    font-size: 1rem;
  }

  .service-media {
    min-height: 180px;
  }

  .service-card {
    border-radius: 18px;
  }

  .service-card h3 {
    font-size: 1.35rem;
  }

  .footer-copy {
    font-size: .8rem;
    line-height: 1.6;
  }

}
