:root {
--primary: #1034A6;
--bg: #0b0e14;
--text: #0d0d0d;
--surface: #fff;
--radius: 12px;
}
body {
margin: 0;
font-family: sans-serif;
color: var(--text);
background: var(--surface);
}

html {
  scroll-behavior: smooth;
}

.container {
max-width: 1600px;
margin: 0 auto;
padding: 0 1rem;
}
header {
background: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(10px);
position: sticky;
top: 0;
z-index: 100;
}
.nav {
display: flex;
justify-content: space-between;
align-items: center;
}

.btn {
padding: 0.8rem 1rem;
border-radius: 999px;
border: none;
cursor: pointer;
font-weight: 600;
}
.btn-primary {
background: var(--primary);
color: #fff;
}
.btn-outline {
background: transparent;
border: 1px solid var(--primary);
color: var(--primary);
}

/* ===== NAV LINKS ===== */
.nav-links { display: flex; gap: 1.4rem; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 1.2rem;font-weight: 500; position: relative; padding-right: 1rem;transition: color .2s ease; text-shadow: 0 0 1px rgba(59, 55, 55, 0.6);}
.nav-links a::after { content: ""; position: absolute; bottom: -3px; left: 0; width: 0%; height: 2px; background: var(--primary); transition: width .3s ease; }
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }


/* ===== Botón Hamburguesa (mobile) ===== */
.menu-toggle { display:none; background:transparent; border:0; padding:.35rem; cursor:pointer; border-radius:8px; }
.menu-toggle:focus-visible{ outline:2px solid var(--primary); outline-offset:2px; }
.menu-toggle .bar{ display:block; width:26px; height:2px; background:#111; margin:6px 1rem; transition:transform .25s ease, opacity .25s ease; }


/* Estado abierto (animación X) */
.nav-open .menu-toggle .bar:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.nav-open .menu-toggle .bar:nth-child(2){ opacity:0; }
.nav-open .menu-toggle .bar:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }




/* ===== Drawer Mobile ===== */
.nav-drawer { position: fixed; top: var(--header-h, 64px); /* bajo el header dinámico */ left: 0; right: 0; background:#fff; border-bottom:1px solid #e6e9ee; display:flex; flex-direction:column; gap: .75rem; padding: 1rem; box-shadow: 0 14px 30px rgba(0,0,0,.1); transform: translateY(-8px); opacity:0; pointer-events:none; transition: transform .2s ease, opacity .2s ease; z-index: 350; }
.nav-drawer a { padding:.6rem .25rem; color:#111; font-weight:600; }
.nav-drawer .wapp{ align-self:flex-start; }


.nav-open #nav-drawer{ transform: translateY(0); opacity:1; pointer-events:auto; }

.nav .brand img {  
  width: 205px; 
  height: 150px;
  padding: 1rem;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.3));
}


.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  text-align: left;  
  padding: 4rem 1rem;
  background: url("herodonjose.png") center center/cover no-repeat fixed;
  margin-bottom: clamp(32px, 5vw, 172px);
}


.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.089); 
}

/* --- HERO: posicionamiento del bloque --- */
.hero .inner{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* ← alinea a la izquierda */
  text-align: left;
  max-width: 1100px;
  margin-left: clamp(16px, 6vw, 80px); /* margen desde el borde izquierdo */
  gap: 1rem;
}

/* --- Título en dos líneas --- */
.hero-title{
  font-size: clamp(2.8rem, 6vw, 3.8rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 1px;
  line-height: 0.8;       /* ← más cerrado entre líneas */
  margin: 0;
  text-shadow:
    0 4px 12px rgba(0,0,0,.6),
    0 0 20px rgba(0,0,0,.4);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp .9s ease-out forwards;

  /* IMPORTANTE: deja pasar el click al botón que está debajo */
  pointer-events: none;
}

/* Cada línea del título */
.hero-title .line1,
.hero-title .line2{
  display: block;
}

/* un pelín de separación entre líneas (muy chico) */
.hero-title .line1{ margin-bottom: .08em; }

.hero-name.v3 {
  color: #fff;
  position: relative;
  z-index: 1;
  padding: .05em .25em;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .55);
}

.hero-name.v3::before {
  content: "";
  position: absolute;
  inset: -2px -10px;
  border-radius: 8px;
  background: linear-gradient(90deg, #25416da2 0%, #4e298185 45%, #6f318e63 100%);
  box-shadow:
    0 8px 22px rgba(31, 70, 196, 0.26),
    0 0 18px rgba(0, 0, 0, 0.219);
  z-index: -1;
}


/* Botonera por encima de cualquier overlay o caja del H1 */
.hero-cta{
  position: relative;
  z-index: 5;           /* ← asegura clic + hover */
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 10rem;     /* menos separación con el título */
}



.hero-cta .btn {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1rem 2.4rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
}


/* Principal */
.btn-primary {
  background: transparent;
  color: #fff;
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
}
.btn-primary:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.7);
  transform: translateY(-3px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
padding: 6rem 1rem;
}
.grid {
display: grid;
gap: 1rem;
}
.grid-3 {
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
background: #fff;
padding: 1.5rem;
border-radius: var(--radius);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.center {
text-align: center;
}
footer {
background: #0f1322;
color: #cfd6ff;
text-align: center;
padding: 1.5rem 0;
}

h2 {
  font-size: 2rem;
  text-shadow:
    0 3px 4px rgba(0, 0, 0, 0.295),
    0 0 20px rgba(255, 255, 255, 0.15);
}


/*SERVICIOS PRINCIPALES*/

/* ===== Servicios: tarjetas modernas ===== */
.services-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 1.25rem;
}

.service-card{
  background: #fff;
  border-radius: 14px;
  padding: 18px 18px 16px;
  border: 1px solid #e9eef6;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.service-card .icon{
  width: 52px; height: 52px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #1f46c4;                 /* azul identidad */
  background: rgba(31,70,196,.10); /* pill suave */
  margin-bottom: .35rem;
}
.service-card .icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
  transition: transform 0.25s ease;
}

.service-card:hover .icon img {
  transform: scale(1.1);
}

.container h2{
  color: var(--primary);
}
.service-card h3{
  font-size: 1.05rem;
  margin: 0;
  font-weight: 800;
}
.service-card p{
  margin: 0;
  color: #4a5568;
  font-size: .92rem;
  line-height: 1.35;
}
.service-card:hover{
  transform: translateY(-6px);
  border-color: rgba(31,70,196,.35);
  box-shadow: 0 18px 34px rgba(0,0,0,.12);
}


/*TRABAJOS DESTACADOS*/

.stack {
  --gap: 24px;          /* separación entre tarjetas apiladas */
  --top: 120px;       /* distancia al top cuando “pegan” */
  --card-h: 44vh;       /* alto de cada tarjeta */
  position: relative;
  display: grid;
  gap: var(--gap);
  margin-top: 2rem;
  padding-bottom: 5vh; /* aire al final para el último sticky */
    max-width: 1200px; 
  margin: 2rem auto;  /* centra */
  padding: 0 1rem;    /* respiración lateral */
}

.stack-card {
  position: sticky;
  top: var(--top);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.15);
  height: var(--card-h);
  display: grid;
  grid-template-rows: 1fr auto;
  transform-origin: center top;
  will-change: transform, box-shadow;
}

.stack-card img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  display: block;
}

.stack-card .stack-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  margin-top: 0;                    /* quitamos el “truco” del negativo */
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.70) 60%);
  color: #fff;
  z-index: 2;
}

.stack-card h3,
.stack-card p { margin: 0; }         /* compacta el texto */

.stack-card + .stack-card { margin-top: calc(var(--gap) * -1); }

/* efecto sutil de escala/traslado según su orden */
.stack-card { counter-increment: card; }
.stack-card:nth-child(1) { z-index: 1; }
.stack-card:nth-child(2) { z-index: 2; }
.stack-card:nth-child(3) { z-index: 3; }
.stack-card:nth-child(4) { z-index: 4; }


/* ===== Sección Quiénes Somos ===== */
.about { background: #f9f9f9; }

/* El grid: el H2 ocupa toda la fila superior */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

/* H2 en fila completa */
.about-grid > h2 {
  grid-column: 1 / -1;
  margin: 0 0 .5rem;
  text-align: left;      /* o center si preferís */
}

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-text {
    grid-column: 1;
    grid-row: 2;         /* debajo del H2 */
  }
  .about-img {
    grid-column: 2;
    grid-row: 2;         /* debajo del H2 */
  }
  .about-img img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 560px;        /* limita altura grande de desktop */
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
/* Tipografía/espaciado del texto */
.about-text p { margin: 0 0 1rem; line-height: 1.65; }
/* Lista con íconos de ✓ */
.about-list {
  margin: .5rem 0 0;
  padding-left: 1.8rem; /* deja espacio para los íconos */
  list-style: none;     /* quita los puntos */
}

.about-list li {
  position: relative;   /* referencia para el ::before */
  margin: .5rem 0;
  line-height: 1.6;
  font-size: 1rem;
}

/* Icono personalizado */
.about-list li::before {
  content: '✓';
  position: absolute;
  left: -1.4rem; /* ajusta el espaciado lateral */
  color: #25416d; /* o usa var(--accent) si tenés definido */
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1;
}


/*SECCION CARRUSEL ASEGURADORAS*/

.logo-slider {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  margin-top: 1.25rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

.logo-track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  padding: 1.25rem 2rem;
  will-change: transform;
}

.logo-track img {
  height: 182px;
  filter: grayscale(1) opacity(.85);
  transition: filter .3s ease, transform .3s ease;
}

.logo-track img:hover {
  filter: grayscale(0) opacity(1);
  transform: translateY(-2px);
}



/* =============================================== */
/* FAQS con look & feel de la sección 2 (links)   */
/* =============================================== */

.faqs{
  --faq-bg: url('faqs.png');
  border-radius: 20px;
  padding: clamp(2.5rem, 4vw, 4rem) 1rem;
  color: #000000;
  font-family: sans-serif;
}
.faqs-inner{
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

/* Full-bleed por pseudo-elemento SIN 100vw ni transform (no genera overflow) */
.faqs, .contact-cta, footer { position: relative; z-index: 0; }

.faqs::before,
.contact-cta::before,
footer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  /* Empuja el fondo hasta los bordes del viewport sin sumar 1px fantasma */
  left:  calc(50% - 50vw);
  right: calc(50% - 50vw);
  z-index: -1;
}

/* Fondos */
.faqs::before {
  background-image: var(--faq-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.contact-cta::before {
  background: radial-gradient(1200px 400px at 20% 20%, rgba(16,52,166,.08), transparent), #0f1322;
}
footer::before { background: #0f1322; }


/* Padding lateral SOLO en el contenido interno, no en la sección full-bleed */
.faqs { padding: clamp(2.5rem, 4vw, 4rem) 0; }  /* solo vertical */
.faqs .faqs-inner,
.contact-cta .container,
footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;   /* el “aire” lateral va acá */
}
/* Anti-overflow del documento (no rompe sticky porque es solo eje X) */
body { overflow-x: hidden; } /* fallback */


/* título */
.faqs-title{
  text-align:left;
  max-width: 800px;
  font-family: sans-serif;
}
.faqs-title h2{
  margin:0 0 .35rem;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--primary);
  font-family: "Aldrich", sans-serif;

}
.faqs-title p{
  margin:0;
  color: #000;
  opacity: .9;
}

/* lista en columna */
.faqs-list{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

/* ===== Ítem FAQ (mismo gesto que .item-link) ===== */
.faq{
  border: 0;
  background: transparent;
  border-radius: 12px;
}

/* sacamos el marcador nativo */
.faq-q::-webkit-details-marker{ display:none; }

.faq-q{
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 14px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  color: #000000;

  /* transiciones como en sección 2 */
  transition:
    background .22s ease,
    transform  .14s ease,
    box-shadow .22s ease,
    color      .22s ease;
  will-change: background, transform;
  background: transparent; /* sin subrayados */
}

/* hover: highlight + saltito a la derecha */
.faq:hover .faq-q{
  background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,.28));
  transform: translateX(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

/* activo/abierto: igual que .item-link.active */
.faq[open] .faq-q{
  background: rgba(0,0,0,.26);
}

/* flecha con pequeño empujón en hover y giro al abrir */
.faq .flecha{
  width: 20px; height: 20px; flex: 0 0 20px;
  color: var(--primary);
  transition: transform .18s ease;
}
.faq:hover .flecha{ transform: translateX(3px); }
.faq[open] .flecha{ transform: rotate(90deg); }

/* respuesta */
.faq .faq-a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 16px;
  margin-top: 0;
}
.faq-a ul{ margin: .25rem 0 0 1rem; }

.faq[open] .faq-a {
  max-height: 500px;   /* suficiente para textos largos */
  opacity: 1;
  margin-top: .35rem;
  padding-bottom: 14px;
}

/* accesibilidad: foco lindo como en sección 2 */
.faq-q:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,166,0,.25);
  border-radius: 10px;
}

#trabajos,
#trabajos .container,
.stack {
  overflow: visible !important;
}


/* ===== CONTACTO / CTA (estilo tipo Taller Moreto) ===== */
.contact-cta {
  background: radial-gradient(1200px 400px at 20% 20%, rgba(16,52,166,.08), transparent), #0f1322;
  color: #f6f7ff;
}
.contact-cta .container { padding-top: 2rem; padding-bottom: 2rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.contact-left { color: #f6f7ff; }
.contact-logo {
  width: 180px; height: auto; margin-bottom: 1.25rem;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.3));
}
.contact-data { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.contact-data li { margin: .35rem 0; }
.contact-data a { color: #cfd6ff; text-decoration: none; }
.btn-cta {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #fff;
  font-weight: 600;
  letter-spacing: .5px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.btn-cta:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.btn-cta.outline {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #f6f7ff;
}

.socials {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: left; /* o left si preferís */
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 8px;
  padding: 4px;
  width: 44px;  /* tamaño uniforme del botón */
  height: 44px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.socials a:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.233);
}

.socials img {
  width: 44px;     /* tamaño del ícono dentro del botón */
  height: 44px;
  object-fit: contain;
  display: block;
}


.contact-map { padding: 0; overflow: hidden; border-radius: 12px; }
.contact-map iframe { width: 100%; height: 480px; border: 0; display: block; }

footer a {
  color: var(--surface);
  text-decoration: none;
  font-weight: 700;
  transition: color .3s ease;
}

footer a:hover {
  color: #ff6a00; /* o el naranja de tu paleta */
}



/* ===== BOTÓN FLOTANTE WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px; /* 👉 lo movemos a la derecha */
  z-index: 999;
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.whatsapp-float img {
  width: 60px;
  height: 60px;
  border-radius: 20%;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  transition: transform .2s ease;
}


/* contenedor del ícono separado para el pulso */
.whatsapp-icon {
  position: relative;
  display: inline-block;
}

.whatsapp-float:hover img {
  transform: scale(1.1);
}
/* efecto pulsante solo detrás del ícono */
.whatsapp-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.5;
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: pulseWp 2s infinite ease-out;
}
/* Mensaje emergente */
.whatsapp-msg {
  opacity: 0;
    order: -1;                 /* ← pone el texto antes del ícono */
  visibility: hidden;
  background: #0000009f;
  color: #ffffff;
  font-weight: 600;
  border-radius: 20px;
  padding: .6rem 1rem;
  font-size: 1.1rem;
  box-shadow: 2px 4px 12px rgba(41, 40, 40, 0.897);
  transform: translateY(10px);
  transition: all .4s ease;
  white-space: nowrap;
  position: relative;
  right: 5px;
}

/* Animación */
/* animación */
@keyframes pulseWp {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

/* Animación */
@keyframes floatMessage {
  0% { opacity: 0; transform: translateY(10px); }
  20%,80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

.whatsapp-float.show-msg .whatsapp-msg {
  visibility: visible;
  animation: floatMessage 3.5s ease forwards;
}

/* Responsive */
/* === MOBILE (≤768px) === */
@media (max-width: 768px) {
  /* Navbar */
  .nav-links, .nav-buttons { display: none; }
  .nav .brand { padding-left: 1rem; }
  .nav .brand img {
    width: 150px;
    height: 110px;
  }
  .menu-toggle { display: block; padding-right: 1rem;}
  .nav-drawer { top: var(--header-h, 64px); }

  /* Hero */
   /* Evita glitches de iOS con background fixed */
  .hero{ background-attachment: scroll; }
  .hero .inner{ margin-left: 20px; gap:.35rem; }
  .hero h1{
    font-size: clamp(1.8rem, 6.2vw, 2.6rem);
    letter-spacing:.3px; line-height:1.05;
  }
  .hero .line1{
    font-size: clamp(2.6rem, 6.6vw, 3.2rem);
    letter-spacing:.2px; line-height:1.5;
  }

  .hero .line1::after{ display:none; }

  .hero .line2{
    font-size: clamp(2.6rem, 6.6vw, 3.2rem);
    letter-spacing:.2px; line-height:0.1;
  }

  .hero .line2::after{ display:none; }
  
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;  /* 🔹 también los botones alineados a la izquierda */
  }

  /* Servicios */
  .services-grid { grid-template-columns: 1fr; }

  /*Servicios destacados*/
    .stack {
    --card-h: 60vh;     /* 🔹 más altura por tarjeta */
    --gap: 16px;        /* 🔹 menor separación entre tarjetas */
    --top: 80px;        /* 🔹 ajusta el sticky más cerca del top */
  }

  .stack-card {
    height: var(--card-h);
  }

  .stack-card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center; /* 🔹 centra la foto sin recortes raros */
  }

  /* Opcional: redondeo más suave en pantallas pequeñas */
  .stack-card {
    border-radius: 12px;
  }


  /* About */
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-img, .about-text {
    grid-column: 1;
    grid-row: auto;
  }
  .about-img img {
    max-height: none;
    aspect-ratio: 4 / 3;    /* mantiene proporción agradable */
    height: auto;
  }

  /* Contacto */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map iframe { height: 320px; }

  /* WhatsApp flotante */
  .whatsapp-float img { width: 50px; height: 50px; }
  .whatsapp-msg { font-size: 0.85rem; }
}


/* === DESKTOP MEDIO (769px–1440px) === */
@media (min-width: 769px) and (max-width: 1440px) {
  /* Navbar */
  .menu-toggle { display: none; }
  .nav-links { gap: 1.2rem;  padding-right: 1rem;}
.nav .brand img {
    width: 150px;
    height: 110px;
  }

  /* Hero */
  .hero h1 .line1 { font-size: 3rem; }
  .hero h1 .line2 { font-size: 3rem; }
  .hero .inner { margin-left: 5%; }
  .hero .line1{
    font-size: clamp(2.6rem, 6.6vw, 3.2rem);
    letter-spacing:.2px; line-height:1.5;
  }
  .hero .line1::after{ display:none; }
  .hero .line2{
    font-size: clamp(2.6rem, 6.6vw, 3.2rem);
    letter-spacing:.2px; line-height:0.7;
  }

  .hero .line2::after{ display:none; }

  /* Servicios */
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  /* Trabajos destacados */
  .stack { --top: 72px; --card-h: 48vh; --gap: 18px; }
  .stack-card .stack-info { margin-top: -2.75rem; }

  /* About */
  .about-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  /* Contacto */
  .contact-grid { grid-template-columns: 1.1fr 1fr; }
}



