/* ==================================================
   FUENTE PERSONALIZADA – TEKO (SMART DOOR)
   ================================================== */

@font-face{
  font-family: 'Teko';
  src: url('fonts/Teko-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Teko';
  src: url('fonts/Teko-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Teko';
  src: url('fonts/Teko-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Teko';
  src: url('fonts/Teko-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Teko';
  src: url('fonts/Teko-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==================================================
   SMART DOOR – CSS OFICIAL
   Fondo negro · Letras blancas · Resaltos amarillos (Pantone)
   ================================================== */

:root{
  --white:#ffffff;
  --muted:#c7c7c7;
  --line:rgba(255,255,255,.15);

  --brand-yellow:#FFC700;   /* PMS 7548 C */
  --brand-black:#101820;    /* PMS Black 6 C */

  --shadow:0 10px 30px rgba(0,0,0,.45);
  --radius:16px;
  --container:1120px;

  /* FIX – altura única para TODOS los items del menú */
  --nav-item-h: 44px;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:'Teko', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background:var(--brand-black);
  color:var(--white);
  line-height:1.6;
  letter-spacing:.4px;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 18px;
}

/* ==================================================
   TIPOGRAFÍA GLOBAL
   ================================================== */

h1{
  font-size:54px;
  line-height:1.1;
  letter-spacing:1px;
  margin:0;
}
h2{
  font-size:44px;
  line-height:1.15;
  letter-spacing:.9px;
  margin:0;
}
h3{
  font-size:30px;
  line-height:1.2;
  letter-spacing:.8px;
  margin:0;
}
p{
  font-size:20px;
  line-height:1.7;
  margin:0;
}

/* Responsive global */
@media (max-width: 768px){
  h1{ font-size:38px; }
  h2{ font-size:32px; }
  h3{ font-size:24px; }
  p{  font-size:18px; }
}

/* ==================================================
   BOTONES
   ================================================== */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:13px 22px;
  border-radius:14px;
  font-weight:700;
  font-size:15px;
  letter-spacing:1px;
  text-transform:uppercase;
  border:1px solid transparent;
  transition:transform .15s ease, filter .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

.btn.primary{
  background:var(--brand-yellow);
  color:var(--brand-black);
}
.btn.primary:hover{ filter:brightness(.95); }

.btn.ghost{
  background:transparent;
  color:var(--white);
  border:1px solid rgba(255,255,255,.35);
}
.btn.ghost:hover{ background:rgba(255,255,255,.08); }

/* ==================================================
   HEADER / NAV – AMARILLO (LIMPIO)
   ================================================== */

.header{
  position:sticky;
  top:0;
  z-index:50;
  background:var(--brand-yellow);
  border-bottom:1px solid rgba(16,24,32,.22); /* línea sutil negra */
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 0;
  gap:14px;
}

/* Marca */
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  letter-spacing:1px;
  font-size:22px;
  color:var(--brand-black);
}

.brand-badge{
  width:36px;
  height:36px;
  border-radius:10px;
  background:var(--brand-black);
}

/* ==================================================
   FIX – ALINEACIÓN VERTICAL PERFECTA EN TODO EL MENÚ
   + DROPDOWNS COMO LINKS + SUBMENÚ EN HOVER
   ================================================== */

/* Contenedor */
.nav-links{
  display:flex;
  align-items:center;
  gap:18px;
}

/* Cada item del menú (links y dropdown) ocupa el mismo alto */
.nav-links > a,
.nav-links .dropdown{
  display:inline-flex;
  align-items:center;
  height:var(--nav-item-h);
}

/* Links (Empresa / Contacto) */
.nav-links > a{
  line-height:1;      /* evita desalineación */
  padding:0;
  font-family:inherit;
  font-weight:700;
  font-size:18px;
  letter-spacing:.6px;
  color:var(--brand-black);
  margin:0;
  transition:transform .15s ease, color .15s ease;
}

/* Hover igual */
.nav-links > a:hover{
  color:var(--white);
  transform:scale(1.07);
}

/* Botones del menú (Productos/Políticas/Soporte) -> apariencia de link */
.nav-links .dropdown > button{
  all:unset;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;

  display:inline-flex;
  align-items:center;
  height:var(--nav-item-h);
  line-height:1;     /* evita que “suba/baje” */
  gap:6px;

  font-family:inherit;
  font-weight:700;
  font-size:18px;
  letter-spacing:.6px;

  color:var(--brand-black);
  cursor:pointer;

  background:transparent;
  border:0;
  padding:0;
  margin:0;

  transition:transform .15s ease, color .15s ease;
}

/* Hover igual a un link */
.nav-links .dropdown > button:hover{
  color:var(--white);
  transform:scale(1.07);
}

/* Quita el borde de focus */
.nav-links .dropdown > button:focus,
.nav-links .dropdown > button:focus-visible{
  outline:none;
  box-shadow:none;
}

/* Flecha (si usas ::after en algún momento) */
.nav-links .dropdown > button::after{
  line-height:1;
  transform:translateY(0);
}

/* Submenú: abrir al pasar el mouse */
.nav-links .dropdown:hover .menu{
  display:block;
}

/* ==================================================
   CTA en header (ajustado a amarillo)
   ================================================== */

.cta{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Botón “Ver catálogo” */
.cta .btn.ghost{
  border-color:rgba(16,24,32,.35);
  color:var(--brand-black);
  background:transparent;
}
.cta .btn.ghost:hover{
  background:rgba(255,255,255,.18);
}

/* Botón “Hablar con un asesor” */
.cta .btn.primary{
  background:var(--brand-black);
  color:var(--white);
}
.cta .btn.primary:hover{
  filter:brightness(1.05);
}

/* ==================================================
   DROPDOWN – AMARILLO + LETRA NEGRA
   ================================================== */

.dropdown{position:relative}

/* “puente” invisible para que no se cierre el hover al bajar al menú
   (NO altera la altura ni la alineación del menú) */
.dropdown::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height:10px;
}

.menu{
  position:absolute;
  top:calc(var(--nav-item-h) + 6px);
  left:0;
  width:280px;
  background:var(--brand-yellow);
  border:0;
  border-radius:16px;
  box-shadow:0 16px 40px rgba(0,0,0,.25);
  padding:10px;
  display:none;
}

.menu a{
  display:flex;
  padding:10px 12px;
  border-radius:12px;
  font-size:18px;
  font-weight:700;
  letter-spacing:.5px;
  color:var(--brand-black);
  background:transparent;
  transition:transform .15s ease, background .15s ease, color .15s ease;
}

.menu a:hover{
  background:var(--white);
  color:var(--brand-black);
  transform:scale(1.05);
}

.dropdown.open .menu{display:block}

/* ==================================================
   MOBILE MENU – AMARILLO LIMPIO
   ================================================== */

.burger{display:none}

.burger.btn.ghost{
  border-color:rgba(16,24,32,.35);
  color:var(--brand-black);
}
.burger.btn.ghost:hover{
  background:rgba(255,255,255,.18);
}

.mobile{
  display:none;
  background:var(--brand-yellow);
  border-top:1px solid rgba(16,24,32,.18);
  padding:10px 0;
}

.mobile a{
  display:block;
  padding:12px 10px;
  border-radius:12px;
  font-weight:700;
  font-size:20px;
  letter-spacing:.6px;
  color:var(--brand-black);
  transition:transform .15s ease, background .15s ease, color .15s ease;
}

.mobile a:hover{
  background:rgba(255,255,255,.35);
  color:var(--brand-black);
  transform:scale(1.02);
}

@media (max-width:960px){
  .nav-links,.cta{display:none}
  .burger{display:inline-flex}
  .mobile.show{display:block}
}

/* ==================================================
   BANNER 2 – CENTRADO (ANCHO CONTAINER) / SIN RECORTE
   ================================================== */

.banner-contained{
  padding:24px 0;
}

.banner-contained .banner-media__picture{
  display:block;
  width:100%;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--brand-black);
}

.banner-contained .banner-media__img{
  width:100%;
  height:auto;
  display:block;
  object-fit:contain; /* NO recorta */
  object-position:center;
}

/* ==================================================
   SECTIONS
   ================================================== */

section{ padding:56px 0; }

.section-title h2{
  margin:0 0 10px;
  font-size:44px;
  font-weight:700;
  letter-spacing:1px;
}

.section-title p{
  margin:0;
  color:var(--muted);
  max-width:70ch;
  font-size:20px;
}

/* ==================================================
   GRID
   ================================================== */

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:24px;
}

@media (max-width:1024px){
  .grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:520px){
  .grid{ grid-template-columns:1fr; }
}

/* ==================================================
   CARDS – IMPACTANTES
   ================================================== */

.card{
  background:#0e1621;
  border:1px solid rgba(255,255,255,.18);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:0 10px 26px rgba(0,0,0,.28);
  transform:translateY(0);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 38px rgba(0,0,0,.38);
  border-color:rgba(255,199,0,.35);
}

.card .top{ display:none; }

.card .pad{
  padding:10px;
}

.card h3{
  font-size:30px;
  font-weight:700;
  letter-spacing:1.2px;
  line-height:1.1;
  margin:0 0 15px;
  text-transform:uppercase;
  color:var(--white);
}

.card p{
  font-size:20px;
  line-height:1.55;
  color:rgba(255,255,255,.82);
}

/* Ajuste en móvil/tablet */
@media (max-width: 1024px){
  .card h3{ font-size:28px; }
  .card p{  font-size:19px; }
}

@media (max-width: 640px){
  .card .pad{ padding:18px; }
  .card h3{ font-size:26px; }
  .card p{  font-size:18px; }
}

/* Cards con imagen */
.card--image{ overflow:hidden; }

/*.card-image{
  position:relative;
  width:100%;
  aspect-ratio: 6 / 3;
  overflow:hidden;
  background:#000;
}

.card-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  transform:scale(1);
  transition:transform .35s ease;
}*/

.card-image{
  position:relative;
  width:100%;
  aspect-ratio:6 / 3.5;   /* AQUÍ ajustas el tamaño visual */
  overflow:hidden;
  background:#000;
  display:flex;           /* 🔥 clave */
  align-items:center;
  justify-content:center;
}

.card-image img{
  width:100%;
  height:100%;
  object-fit:cover;       /* llena sin deformar */
  object-position:center;
  display:block;
}

.card--image:hover .card-image img{
  transform:scale(1.06);
}

/* Overlay solo al hover */
.card-overlay{
  position:absolute;
  inset:0;
  background:rgba(16,24,32,.18);
  opacity:0;
  transition:opacity .25s ease;
}
.card--image:hover .card-overlay{ opacity:1; }

@media (max-width: 1024px){
  .card-image{ aspect-ratio: 16 / 11; }
}

/* ==================================================
   FORMS
   ================================================== */

.form{
  background:#0e1621;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
}

label{
  font-size:18px;
  font-weight:600;
  margin-bottom:6px;
  display:block;
}

input,select,textarea{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--brand-black);
  color:var(--white);
  font-family:inherit;
  font-size:18px;
}

input:focus,
select:focus,
textarea:focus{
  border-color:var(--brand-yellow);
  outline:none;
}

textarea{ min-height:120px; }

.help{
  color:var(--muted);
  font-size:18px;
}

/* ==================================================
   FOOTER – TEXTO FINO + LINKS A LA DERECHA
   ================================================== */

footer{
  border-top:1px solid var(--line);
  padding:32px 0;
  color:var(--muted);
}

footer .foot{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}

footer,
footer a,
footer .foot div{
  font-weight:400;
}

footer a{
  color:var(--muted);
  font-size:18px;
  letter-spacing:.4px;
}

footer a:hover{
  color:var(--brand-yellow);
  font-weight:400;
}

footer .foot > div:last-child{
  margin-left:auto;
  text-align:right;
}

@media (max-width: 768px){
  footer .foot{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }
  footer .foot > div:last-child{
    margin-left:0;
    text-align:left;
  }
}

/* ==================================================
   WHATSAPP FLOAT
   ================================================== */

.wa-float{
  position:fixed;
  right:18px;
  bottom:18px;
  height:56px;
  padding:0 16px;
  border-radius:18px;
  background:#25D366;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 12px 26px rgba(0,0,0,.35);
}

.wa-float span{
  font-weight:700;
  color:#fff;
  font-size:18px;
  letter-spacing:.6px;
}

/* ==================================================
   EXTRAS
   ================================================== */

::selection{
  background:var(--brand-yellow);
  color:var(--brand-black);
}

/* ==================================================
   CONTAINER MÁS AMPLIO EN PANTALLAS GRANDES
   ================================================== */

@media (min-width: 1280px){
  :root{ --container:1280px; }
}
@media (min-width: 1600px){
  :root{ --container:1440px; }
}


/* ==================================================
   SECCIÓN ASESORÍA – CENTRADA
   ================================================== */

.section-center{
  text-align:center;
}

.section-center .section-title{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.section-center .section-title p{
  max-width:640px; /* evita textos demasiado largos */
}

.section-center .btn{
  margin-top:12px;
}