:root{
  --header-bg: #ffffff;
  --header-border: rgba(0,0,0,.08);
  --text: #0f172a;
  --muted: rgba(15,23,42,.72);

  --cta-bg: #0f172a;
  --cta-text: #ffffff;

  --hero-bg: #ffffff;
  --hero-text: #0f172a;
  --hero-muted: rgba(15,23,42,.72);

  --btn-bg: #0f172a;
  --btn-text: #ffffff;

  --section-bg: #ffffff;
  --card-bg: rgba(15,23,42,.03);
  --border: rgba(0,0,0,.08);

  --footer-bg: #0f172a;
  --footer-text: rgba(255,255,255,.90);
  --footer-muted: rgba(255,255,255,.70);
  --footer-border: rgba(255,255,255,.12);

  --chip-bg: rgba(255,255,255,.10);
  --chip-bg-hover: rgba(255,255,255,.16);

  --radius: 14px;
  --shadow: 0 10px 28px rgba(0,0,0,.10);
  --surface: var(--header-bg);
  --cta: var(--cta-bg);
  --cta-hover: rgba(15, 23, 42, .92);
  --link: #0f172a;
  --link-hover: rgba(15, 23, 42, .85);
}

html{
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* altura del header */
}

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
}

/* Header wrapper */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

/* Header inner layout */
.header-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* =========================
   LOGO
   ========================= */
.header-logo{
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img{
  height: 40px;
  width: auto;
  display: block;
}

.logo-text{
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .2px;
  color: var(--text);
  line-height: 1;
}


/* Opcional: en móvil, reducir un poco el texto */
@media (max-width: 600px){
  .logo-text{
    font-size: 16px;
  }
}


/* =========================
   NAVIGATION
   ========================= */
.header-nav{
  display: flex;
  align-items: center;
}

.nav-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link{
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-link:hover{
  color: var(--text);
  background: rgba(233, 238, 245, 0.08);
}

.nav-link:active{
  transform: translateY(1px);
}

/* CTA button */
.nav-link--cta{
  background: var(--cta);
  color: #ffffff;
  padding: 11px 14px;
  border-radius: var(--radius);
  box-shadow: 0 10px 22px rgba(45, 108, 255, 0.25);
}

.nav-link--cta:hover{
  background: var(--cta-hover);
  color: #ffffff;
}

/* Focus states (accesibilidad) */
.nav-link:focus-visible,
.logo-link:focus-visible{
  outline: 2px solid rgba(45, 108, 255, 0.75);
  outline-offset: 3px;
  border-radius: 14px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 920px){
  .header-inner{
    padding: 12px 14px;
  }

  .nav-list{
    gap: 4px;
  }

  .nav-link{
    padding: 10px 10px;
    font-size: 13px;
  }

  .logo-img{
    height: 36px;
  }
}

@media (max-width: 720px){
  /* En móvil: menú horizontal con scroll */
  .header-nav{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-list{
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .nav-link{
    white-space: nowrap;
  }
}
/* Hero section */
.hero{
  background: var(--hero-bg);
  padding: 56px 20px; /* espacio arriba/abajo */
}


/* Contenido */
.hero-content{
  max-width: 580px;
}

.hero-content h1{
  margin: 0 0 14px;
  color: var(--hero-text);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.6px;
}

.hero-content p{
  margin: 0 0 26px;
  color: var(--hero-muted);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.6;
}

/* Acciones */
.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== HERO LAYOUT MEJORADO ===== */

.hero-inner{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.hero-media{
  display: flex;
  justify-content: center;
  align-items: center;

}

.hero-card{
  width: 100%;
  max-width: 360px; /* antes 420px */
  padding: 14px;
}

.hero-img{
  max-height: 560px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius) - 6px);
  object-fit: contain;
}

/* HERO responsive: texto arriba, imagen abajo */
@media (max-width: 900px){
  .hero-inner{
    grid-template-columns: 1fr;   /* 1 columna */
    gap: 18px;                    /* separación */
  }

  .hero-content{ order: 1; }
  .hero-media{ order: 2; }

  .hero-card{ max-width: 420px; } /* o 360px si lo quieres más pequeño */
  .hero-img{
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
  }
}


/* Botones (CTA) */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2px;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary{
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: var(--shadow);
}

.btn-primary:hover{
  background: rgba(15, 23, 42, .92);
}

.btn-primary:active{
  transform: translateY(1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
}

/* Focus accesible */
.btn:focus-visible{
  outline: 3px solid rgba(59,130,246,.55);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 700px){
  .hero{
    padding: 56px 16px;
  }

  .hero-content{
    max-width: 100%;
  }

  .btn{
    width: auto;
  }
}
/* Sección */
.two-col{
  background: var(--section-bg);
  padding: 72px 20px;
}

.btn-secondary{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-secondary:hover{
  background: rgba(15,23,42,.04);
}

.two-col-inner{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr; /* 2 columnas */
  gap: 28px;
  align-items: center;
}

/* Columna imagen */
.two-col-media{
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-box{
  width: 100%;
  max-width: 520px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.media-img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius) - 6px);
  object-fit: cover;
}

/* Columna contenido */
.two-col-content{
  max-width: 640px;
}

.two-col-content h2{
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.4px;
}

.two-col-content p{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

/* Enlace a servicios */
.link-servicios{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--link);
  font-weight: 800;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15,23,42,.06);
  transition: background .2s ease, transform .12s ease, color .2s ease;
}

.link-servicios:hover{
  background: rgba(15,23,42,.10);
  color: var(--link-hover);
}

.link-servicios:active{
  transform: translateY(1px);
}

.link-servicios:focus-visible{
  outline: 3px solid rgba(59,130,246,.55);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 900px){
  .two-col{
    padding: 56px 16px;
  }

  .two-col-inner{
    grid-template-columns: 1fr; /* 1 columna */
    gap: 22px;
  }

  .two-col-content{
    max-width: 100%;
  }

  .media-box{
    max-width: 680px;
  }
}
/* Sección */
.gallery{
  background: var(--section-bg);
  padding: 72px 20px;
}

.gallery-inner{
  max-width: 1200px;
  margin: 0 auto;
}

/* Título y descripción */
.gallery-title{
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.4px;
}

.gallery-desc{
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 820px;
}

/* Grid */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Item */
.gallery-item{
  margin: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;      /* vuelve a hidden */
  transition: transform .15s ease, box-shadow .2s ease;
}

.gallery-img{
  width: 100%;
  aspect-ratio: 9 / 16;  /* clave */
  height: auto;          /* no forces height */
  display: block;
  object-fit: contain;     /* se ve pro tipo “poster” */
}

/* Responsive */
@media (max-width: 900px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px){
  .gallery-grid{ grid-template-columns: 1fr; }
}

/* Footer base */
.site-footer{
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 56px 20px 18px;
}

/* Contenedor principal */
.footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr; /* 4 columnas */
  gap: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--footer-border);
}

/* Columnas */
.footer-col{
  min-width: 0;
}

/* Columna logo */
.footer-brand .footer-desc{
  margin: 12px 0 0;
  color: var(--footer-muted);
  line-height: 1.7;
  font-size: 14px;
  max-width: 360px;
}

.footer-logo-link{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo{
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Títulos */
.footer-title{
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--footer-text);
}

/* Listas */
.footer-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-link{
  color: var(--footer-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  transition: color .2s ease, transform .12s ease;
}

.footer-link:hover{
  color: var(--footer-text);
}

.footer-link:active{
  transform: translateY(1px);
}

.footer-link:focus-visible,
.footer-logo-link:focus-visible{
  outline: 3px solid rgba(59,130,246,.55);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Redes */
.footer-social{
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2x2 para 4 botones */
  gap: 10px;
}

.social-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--chip-bg);
  color: var(--footer-text);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  transition: background .2s ease, transform .12s ease;
  user-select: none;
}

.social-btn:hover{
  background: var(--chip-bg-hover);
}

.social-btn:active{
  transform: translateY(1px);
}

.social-btn:focus-visible{
  outline: 3px solid rgba(59,130,246,.55);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Parte inferior */
.footer-bottom{
  max-width: 1200px;
  margin: 14px auto 0;
  padding-top: 14px;
}

.footer-copy{
  margin: 0;
  color: var(--footer-muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

/* Responsive */
@media (max-width: 950px){
  .footer-inner{
    grid-template-columns: 1fr 1fr; /* 2 columnas */
    gap: 18px;
  }

  .footer-brand .footer-desc{
    max-width: 100%;
  }
}

@media (max-width: 560px){
  .site-footer{
    padding: 46px 16px 16px;
  }

  .footer-inner{
    grid-template-columns: 1fr; /* 1 columna */
  }

  .footer-social{
    grid-template-columns: 1fr; /* botones en 1 columna */
  }

  .footer-copy{
    text-align: left;
  }
}
.section{
  background: var(--section-bg);
  padding: 72px 20px;
  border-top: 1px solid var(--border);
}
.section-alt{
  background: rgba(15,23,42,.03);
}

.section-inner{
  max-width: 1200px;
  margin: 0 auto;
}

.section-title{
  margin: 0 0 10px;
  font-size: clamp(22px, 2.6vw, 34px);
  color: var(--text);
  letter-spacing: -0.4px;
}

.section-desc{
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 860px;
}

/* Cards */
.cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card{
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card h3{
  margin: 0 0 8px;
  color: var(--text);
  font-size: 16px;
}

.card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

/* Steps */
.steps{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
}

.step h3{
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--text);
}

.step p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

/* Chips */
.chips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip{
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(15,23,42,.06);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
}

/* Bullets */
.bullets{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.bullet{
  background: rgba(15,23,42,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 14px;
  color: var(--text);
  font-weight: 650;
  line-height: 1.5;
}

/* Form */
/* ====== FORM (diagnóstico) - versión final ====== */
.form{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,.10);
  padding: 22px;
  max-width: 860px;
}

.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.input, .textarea{
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.textarea{
  min-height: 130px;
  resize: vertical;
}

.input:focus, .textarea:focus{
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 0 0 3px rgba(59,130,246,.18);
}

.form-note{
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

/* En móvil: 1 columna */
@media (max-width: 720px){
  .form-row{ grid-template-columns: 1fr; }
  .form .btn{ width: 100%; }
}

/* Evita que padding/border agranden elementos y se salgan */
*, *::before, *::after{ box-sizing: border-box; }

/* Inputs/textarea: nunca más anchos que el contenedor */
.input, .textarea{
  width: 100%;
  max-width: 100%;
  display: block;
}

/* El grid en filas: columnas que sí pueden encoger */
.form-row{
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* En móvil: 1 columna */
@media (max-width: 700px){
  .form-row{ grid-template-columns: 1fr; }
}