/* DOVELI: estilos del sitio. Los valores de marca viven en :root. */
:root {
  /* Color */
  --azul: #2A63B5;
  --azul-fuerte: #1E4F9C;
  --azul-profundo: #0D2350;
  --tinte: #EDF3FB;
  --tinte-2: #DCE9F7;
  --texto: #27344F;
  --texto-suave: #4A5A78;
  --linea: #D5E0EE;
  --blanco: #FFFFFF;
  --verde-wa: #25D366;
  --verde-wa-texto: #0F7A3E;
  --foco: #0B57D0;
  --velo: 13, 35, 80;

  /* Tipografía */
  --fuente: "Manrope", "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, sans-serif;
  --t-h1: clamp(2.05rem, 1.5rem + 2.3vw, 3.5rem);
  --t-h2: clamp(1.55rem, 1.3rem + 1.1vw, 2.25rem);
  --t-h3: 1.25rem;
  --t-entrada: clamp(1.06rem, 1rem + .3vw, 1.25rem);
  --t-base: 1.0625rem;
  --t-nota: .9rem;

  /* Espacio */
  --gutter: clamp(24px, 4vw, 48px);
  --sim: 32px;
  --sec: clamp(48px, 5.5vw, 80px);
  --bloque: clamp(36px, 4vw, 52px);
  --radio: 6px;
  --alto-btn: 52px;
  --alto-cabecera: 84px;
  --seguro-abajo: env(safe-area-inset-bottom, 0px);
  --seguro-der: env(safe-area-inset-right, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--alto-cabecera) + 16px); }
html.sin-scroll { overflow: hidden; }
body { margin: 0; background: var(--blanco); color: var(--texto); font: 400 var(--t-base)/1.6 var(--fuente); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { color: var(--azul-profundo); letter-spacing: -.015em; }
h1 { font-size: var(--t-h1); font-weight: 700; line-height: 1.12; text-wrap: balance; }
h2 { font-size: var(--t-h2); font-weight: 600; line-height: 1.2; text-wrap: balance; }
p { text-wrap: pretty; }
h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; border-radius: 2px; }

.contenedor { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar { position: fixed; left: 16px; top: -100px; z-index: 100; background: var(--azul-profundo); color: #fff; padding: 12px 20px; border-radius: var(--radio); }
.saltar:focus { top: 12px; }
.icono { width: 20px; height: 20px; flex: none; }

/* Botones y enlaces */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--alto-btn); padding: 12px 28px; border-radius: 8px; border: 1.5px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center; transition: background-color .2s, color .2s, border-color .2s; }
.btn--primario { background: var(--azul); color: #fff; }
.btn--primario:hover { background: var(--azul-fuerte); }
.btn--claro { background: #fff; color: var(--azul-fuerte); }
.btn--claro:hover { background: var(--tinte); }
.btn--contorno { background: #fff; color: var(--azul-profundo); border-color: var(--azul-profundo); }
.btn--contorno:hover { background: var(--tinte); }
.btn--whatsapp { background: var(--verde-wa-texto); color: #fff; }
.btn--whatsapp:hover { background: #0C6532; }
.btn--bloque { display: flex; width: 100%; }
.btn[aria-disabled="true"] { background: #EEF1F5; color: #5B6880; border-color: transparent; cursor: not-allowed; }
.btn:disabled { background: #E6EAF0; color: #5B6880; cursor: not-allowed; }
.enlace { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--azul-fuerte); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.enlace .icono { transition: transform .2s; }
.enlace:hover .icono { transform: translateX(4px); }
.enlace-simple { min-height: 44px; padding: 0 16px; color: var(--azul-fuerte); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--linea); }
.cabecera__fila { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); min-height: var(--alto-cabecera); }
.cabecera__logo { flex: none; display: block; }
.cabecera__logo img { width: auto; height: 60px; }
.cabecera__divisor { width: 1px; height: 36px; background: var(--linea); flex: none; }
.nav { flex: 1; }
.nav > ul { display: flex; align-items: center; gap: clamp(14px, 2vw, 34px); list-style: none; }
.nav a { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; font-weight: 500; font-size: 1rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--azul); }
.nav a[aria-current="page"] { color: var(--azul-profundo); font-weight: 700; border-bottom-color: var(--azul); }
.nav__con-sub { position: relative; display: flex; align-items: center; }
.nav__flecha { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 48px; }
.nav__flecha .icono { width: 16px; height: 16px; transition: transform .2s; }
.nav__flecha[aria-expanded="true"] .icono { transform: rotate(180deg); }
.nav__sub { position: absolute; top: 100%; left: -18px; min-width: 240px; padding: 8px; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: 0 10px 24px rgba(13, 35, 80, .08); list-style: none; display: none; }
.nav__con-sub:hover .nav__sub, .nav__con-sub.is-abierto .nav__sub { display: block; }
.nav__sub a { display: flex; padding: 0 12px; border: 0; font-weight: 500; }
.nav__sub a:hover { background: var(--tinte); border-radius: 4px; }
.cabecera__cta { flex: none; min-height: 48px; padding: 10px 22px; }
.cabecera__menu { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; flex: none; }
.cabecera__menu .icono { width: 28px; height: 28px; }

@media (max-width: 1099px) {
  :root { --alto-cabecera: 72px; }
  .cabecera__logo img { height: 46px; }
  .cabecera__divisor { display: none; }
  .cabecera__fila { justify-content: space-between; gap: 10px; }
  .cabecera__cta { margin-left: auto; padding-inline: 18px; }
  .cabecera__menu { display: inline-flex; }
  .solo-amplio { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--linea); box-shadow: 0 16px 24px rgba(13, 35, 80, .08); padding: 8px var(--gutter) 20px; max-height: calc(100dvh - var(--alto-cabecera)); overflow-y: auto; }
  .nav.is-abierto { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--linea); }
  .nav > ul > li:last-child { border-bottom: 0; }
  .nav a { min-height: 52px; font-size: 1.0625rem; border-bottom: 0; }
  .nav a[aria-current="page"] { color: var(--azul); }
  .nav__con-sub { display: block; }
  .nav__flecha { display: none; }
  .nav__sub, .nav__con-sub:hover .nav__sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 8px 16px; min-width: 0; }
  .nav__sub a { padding: 0; min-height: 48px; color: var(--texto-suave); }
}
@media (min-width: 1100px) { .solo-amplio { display: inline; } }

/* Migas */
.migas { padding-block: 20px 0; font-size: .95rem; }
.migas ol { display: flex; flex-wrap: wrap; align-items: center; }
.migas li { display: inline-flex; align-items: center; }
.migas li + li::before { content: "/"; margin-inline: 10px; color: var(--texto-suave); }
.migas a { display: inline-flex; align-items: center; min-height: 32px; color: var(--azul-fuerte); text-underline-offset: 3px; }

/* Carrusel: fondo blanco o azul claro, texto a la izquierda y fotografía a la derecha */
.carrusel { position: relative; background: #fff; overflow: hidden; touch-action: pan-y; border-bottom: 1px solid var(--linea); }
.carrusel__pista { display: grid; }
.slide { grid-area: 1 / 1; display: flex; align-items: center; background: #fff; visibility: hidden; opacity: 0; transition: opacity .6s ease, visibility 0s linear .6s; }
.slide--azul { background: var(--tinte); }
.slide:nth-child(3) { background: linear-gradient(115deg, #F4F8FD 0%, var(--tinte) 100%); }
.slide.is-activa { visibility: visible; opacity: 1; transition: opacity .6s ease; z-index: 1; }
.carrusel.movido .slide.is-activa .slide__texto { animation: aparece .45s ease both; }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
.slide__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(28px, 4vw, 64px); padding-block: clamp(32px, 4vw, 56px) 72px; }
.slide__texto { display: flex; flex-direction: column; align-items: flex-start; }
.slide__id { color: var(--azul); font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.slide__titulo { color: var(--azul-profundo); font-size: clamp(1.75rem, 1.1rem + 2vw, 3rem); font-weight: 700; line-height: 1.12; }
.enfasis { color: var(--azul); }
.slide__desc { margin-top: 16px; font-size: var(--t-entrada); line-height: 1.5; max-width: 34em; }
.slide__texto .btn { margin-top: 26px; }
.slide__media { height: clamp(300px, 32vw, 440px); border-radius: 10px; overflow: hidden; }
.slide__foto { width: 100%; height: 100%; object-fit: cover; }
.foto-ventana { object-position: 32% 55%; }
.slide__media--vitrina { background: #fff; border: 1px solid var(--linea); display: flex; align-items: center; justify-content: center; padding: clamp(14px, 2.4vw, 32px); }
.vitrina { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 1.4vw, 20px); width: 100%; height: 100%; }
.vitrina__v { flex: none; display: flex; align-items: flex-end; justify-content: center; height: 100%; }
.vitrina__v img { width: 100%; height: auto; max-height: 100%; object-fit: contain; object-position: bottom; }
.vitrina__v--grande { width: 46%; }
.vitrina__v--media { width: 31%; height: 72%; }
.vitrina__v--chica { width: 21%; height: 40%; }

.carrusel__control { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 4px; color: var(--azul-profundo); pointer-events: none; }
.carrusel__control > * { pointer-events: auto; }
.carrusel__flecha, .carrusel__pausa { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--azul-profundo); }
.carrusel__flecha:hover, .carrusel__pausa:hover { background: rgba(var(--velo), .08); }
.carrusel__flecha .icono { width: 24px; height: 24px; }
.carrusel__pausa .icono { width: 18px; height: 18px; }
.carrusel__puntos { display: flex; }
.carrusel__puntos button { width: 28px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.carrusel__puntos button::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .3; transition: opacity .2s, transform .2s; }
.carrusel__puntos button[aria-current="true"]::after { opacity: 1; background: var(--azul); transform: scale(1.2); }

@media (max-width: 899px) {
  .slide { align-items: stretch; }
  .slide__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 28px 68px; align-content: start; }
  .slide__media { height: clamp(210px, 52vw, 340px); }
  .slide__titulo { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.4rem); }
  .slide__desc { margin-top: 12px; font-size: 1.05rem; }
  .slide__texto .btn { margin-top: 20px; }
}

/* Secciones */
.seccion { padding-block: var(--sec) 0; }
.seccion > h2 { margin-bottom: 24px; }
.bloque { padding-block: var(--bloque) 0; }
.bloque > h2 { margin-bottom: 24px; }
.antetitulo { color: var(--azul); font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.entrada { font-size: var(--t-entrada); line-height: 1.5; color: var(--texto); }
.regla { border: 0; border-top: 1px solid var(--linea); margin: 0 0 48px; }
.titulo-grande { margin-bottom: 14px; }
.nota { font-size: var(--t-nota); color: var(--texto-suave); margin-top: 16px; }
.nota--centro { text-align: center; margin-top: 24px; font-style: italic; }
.nota-linea { margin-top: 18px; padding-left: 14px; border-left: 2px solid var(--azul); font-style: italic; }
.espacio-pie { height: clamp(48px, 6vw, 80px); }

.dupla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.dupla--invertida .dupla__foto { order: 2; }
.dupla--ligera { grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); }
.dupla__foto img { width: 100%; border-radius: var(--radio); aspect-ratio: 3 / 2; object-fit: cover; }
.dupla__foto--vertical img { aspect-ratio: 4 / 3; object-position: 50% 45%; }
.dupla__texto h2 { margin-bottom: 16px; }
.dupla__texto p { margin-bottom: 18px; }


.lineas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.linea { display: block; text-decoration: none; }
.linea img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radio); }
.linea span { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 10px; font-size: 1.3rem; font-weight: 500; color: var(--azul-profundo); }
.linea .icono { transition: transform .2s; }
.linea:hover .icono { transform: translateX(4px); }

.destacados { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 28px); }
.destacados img { width: 100%; height: clamp(210px, 22vw, 310px); object-fit: cover; border-radius: var(--radio); }
.destacados figcaption { margin-top: 8px; }
.destacados figcaption strong { display: block; color: var(--azul-profundo); font-weight: 600; font-size: 1.02rem; }
.titulo-enlace { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 32px; margin-bottom: 28px; }
.foto-centro { object-position: 50% 52%; }
.foto-conjunto { object-position: 50% 56%; }
.foto-cocina { object-position: 35% 47%; }
/* Acercamiento a la ventana: el recorte ya viene encuadrado, se muestra completo */
.ficha-hero__foto picture { display: block; }
.ficha-hero__foto img.foto-cerca { aspect-ratio: 16 / 9; object-position: 50% 50%; }
@media (max-width: 899px) {
  .ficha-hero__foto img.foto-cerca { aspect-ratio: 4 / 3; max-height: none; }
}

.cierre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; padding-bottom: clamp(48px, 6vw, 80px); }
.cierre > h2 { margin: 0; }
.cierre p { margin-top: 6px; }
.cierre--regla { position: relative; }

/* DOVELI y ALCORE */
.historia { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding-top: 28px; align-items: center; }
.historia__texto h1 { margin-bottom: 16px; font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); }
.historia__foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radio); }
.fabricante { display: flex; align-items: center; gap: 14px; margin-top: 18px; margin-bottom: 18px; padding-top: 14px; border-top: 1px solid var(--linea); font-size: .95rem; font-weight: 500; }
.fabricante img { width: 88px; flex: none; }

/* Bandas y titulos de seccion */
.t-sec { display: flex; align-items: flex-start; gap: 12px; color: var(--azul); font-weight: 700; line-height: 1.2; }
.simbolo { width: var(--sim); height: var(--sim); flex: none; color: var(--azul); }
/* El símbolo se centra con el primer renglón del título, sin comprimirse */
.t-sec > .simbolo { margin-top: calc((1.2em - var(--sim)) / 2); }
.t-sec { text-wrap: balance; }
.banda { background: var(--tinte); padding-block: var(--sec); margin-top: var(--sec); }
.banda--compacta { padding-block: clamp(26px, 3vw, 40px); margin-top: var(--bloque); }
.banda--sin-margen { margin-top: 0; }
.banda .contenedor > .t-sec { margin-bottom: 24px; }
.banda--marino { background: var(--azul-profundo); color: #fff; padding-block: clamp(26px, 3.2vw, 40px); margin-top: clamp(28px, 3.5vw, 48px); }
.cifras { display: grid; grid-template-columns: .8fr 1.75fr .95fr; gap: 20px clamp(24px, 4vw, 56px); }
.cifras > div + div { border-left: 1px solid rgba(255, 255, 255, .22); padding-left: clamp(24px, 4vw, 56px); }
.cifras dt { color: #A9CCF3; font-size: clamp(1.7rem, 1.35rem + 1.3vw, 2.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; }
.cifras dd { margin-top: 2px; font-weight: 400; }
.procesos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px) clamp(16px, 2.4vw, 32px); }
.procesos img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radio); }
.procesos li > p { margin-top: 8px; font-size: .95rem; font-weight: 600; color: var(--azul-profundo); }
.procesos__intro { align-self: center; }
.procesos__intro h2 { margin-bottom: 12px; }
.procesos .procesos__intro p { font-size: var(--t-base); font-weight: 400; color: var(--texto); }
.atendemos { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.atendemos__foto img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radio); }
.segmentos li { padding-block: 12px; border-top: 1px solid var(--linea-fuerte, #C5D4E8); font-size: 1.15rem; font-weight: 600; color: var(--azul-profundo); }

/* Diagrama de participacion */
.etapas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.etapa { position: relative; }
.etapa__icono { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--azul); background: #fff; }
.etapa::after { content: ""; position: absolute; top: 32px; left: 72px; right: calc(-1 * clamp(12px, 2.4vw, 32px)); height: 1.5px; background: #A9C3E3; }
.etapa:last-child::after { display: none; }
.etapa h3 { margin-top: 14px; font-weight: 700; color: var(--azul-profundo); }
.etapa p { margin-top: 6px; font-size: .98rem; }
.linea small { display: block; font-size: .95rem; color: var(--texto-suave); }

/* Inicio: capacidad de ALCORE, marca DOVELI */
.capacidad { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.capacidad__texto h2 { margin-bottom: 14px; }
.capacidad__texto p { margin-bottom: 14px; }
/* Datos de fabricación: tarjetas azul marino sobre el fondo azul claro */
.datos-destacados { display: grid; gap: 12px; }
.datos-destacados > div { background: var(--azul-profundo); border-radius: var(--radio); padding: 20px 24px; box-shadow: 0 6px 18px rgba(13, 35, 80, .10); }
.datos-destacados dt { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.15rem); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; }
.datos-destacados dd { margin-top: 6px; color: #C9DAF0; font-size: .95rem; line-height: 1.4; }

/* Obras terminadas en Inicio: mosaico de fotografías reales, sin indicar material */
.obras { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, clamp(170px, 15vw, 230px)); gap: clamp(10px, 1.4vw, 16px); margin-top: clamp(32px, 4vw, 48px); }
.obras__grande { grid-row: span 2; }
.obras a { position: relative; display: block; height: 100%; border-radius: var(--radio); overflow: hidden; color: #fff; text-decoration: none; }
.obras img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.obras a:hover img { transform: scale(1.03); }
.obras span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; font-size: .9rem; font-weight: 600; background: linear-gradient(to top, rgba(8, 20, 46, .72), rgba(8, 20, 46, 0)); }
.foto-alta { object-position: 50% 45%; }
.intro__foto { margin-top: 28px; }
.intro__foto img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 52%; border-radius: var(--radio); }
.intro__foto figcaption { margin-top: 8px; font-size: .9rem; color: var(--texto-suave); }

/* Proyectos que atendemos: tres tarjetas equilibradas */
.atendemos__intro { margin: -8px 0 22px; max-width: 40em; }
.tipos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.tipo { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(13, 35, 80, .08); }
.tipo__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tipo h3 { padding: 16px 20px 18px; font-size: 1.15rem; font-weight: 700; color: var(--azul-profundo); }
.foto-tipo-social { object-position: 40% 50%; }
.foto-tipo-conjunto { object-position: 50% 58%; }
.foto-tipo-residencial { object-position: 50% 40%; }
.foto-aluminio-desarrollo { object-position: 50% 60%; }
.foto-sala { object-position: 60% 40%; }
.marca-doveli { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.marca-doveli__logo { width: 100%; max-width: 220px; height: auto; }
.marca-doveli h2 { margin-bottom: 12px; }
.marca-doveli p { margin-bottom: 8px; max-width: 46em; }
.participacion { padding-block: clamp(40px, 5vw, 72px); }
.participacion .etapa__icono { width: 76px; height: 76px; }
.participacion .etapa::after { top: 38px; left: 84px; }
.participacion .etapa h3 { font-size: 1.3rem; }

/* Franja de compra (distinta del carrusel) */
.franja-compra { background: var(--azul-profundo); color: #fff; margin-top: var(--sec); }
.franja-compra__fila { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 28px clamp(28px, 5vw, 64px); padding-block: clamp(32px, 4vw, 48px); }
.franja-compra .t-sec { --sim: 34px; color: #fff; font-size: clamp(1.6rem, 1.25rem + 1vw, 2.2rem); }
.franja-compra .simbolo { color: #A9CCF3; }
.franja-compra p { margin-top: 8px; }
.franja-compra__sub { color: #C9DAF0; font-weight: 600; }
.franja-compra__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 20px; }
.franja-compra__tienda { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #fff; font-size: .95rem; text-underline-offset: 4px; }
.franja-compra__tienda .icono { width: 16px; height: 16px; }
.franja-compra__ventana { display: flex; justify-content: center; align-items: center; padding: 8px 0 18px; }
.franja-compra__ventana img { width: min(100%, 400px); height: auto; filter: drop-shadow(5px 8px 8px rgba(2, 10, 28, .32)) drop-shadow(22px 30px 30px rgba(2, 10, 28, .42)); transition: transform .25s; }
.franja-compra__ventana:hover img { transform: translateY(-3px); }
/* DOVELI en línea, solo escritorio: textos más grandes y columna de texto más amplia (el teléfono no cambia) */
@media (min-width: 900px) {
  .franja-compra__fila { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px clamp(40px, 4vw, 72px); }
  .franja-compra .t-sec { --sim: 46px; gap: 16px; font-size: clamp(2.875rem, 2.2rem + .9vw, 3.25rem); letter-spacing: -.01em; }
  .franja-compra p { font-size: clamp(1.25rem, 1.05rem + .3vw, 1.375rem); line-height: 1.55; margin-top: 12px; text-wrap: balance; }
  .franja-compra .t-sec + p { margin-top: 18px; }
  .franja-compra__acciones { gap: 14px 32px; margin-top: 32px; }
  .franja-compra__acciones .btn { font-size: 1.125rem; padding: 16px 36px; min-height: 56px; }
  .franja-compra__tienda { font-size: clamp(1.0625rem, .95rem + .2vw, 1.125rem); gap: 8px; }
  .franja-compra__tienda .icono { width: 18px; height: 18px; }
  .franja-compra__ventana img { width: min(100%, 440px); }
}

/* Página DOVELI en línea */
.compra-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
.compra-intro__logo { width: auto; height: 40px; margin-bottom: 18px; }
.compra-intro__sub { font-weight: 600; color: var(--azul); margin-bottom: 10px; }
.compra-intro__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 14px; }
.compra-intro__producto { background: #fff; border: 1px solid var(--linea); border-radius: 12px; padding: clamp(18px, 3vw, 36px); }
.compra-intro__producto img { width: 100%; height: auto; max-height: 360px; object-fit: contain; }

/* Menú: DOVELI en línea con presencia propia, sin competir con «Cotizar ventanas» */
.nav__doveli > a { gap: 6px; color: var(--azul-fuerte); font-weight: 600; }
.nav__doveli .nav__icono { width: 18px; height: 18px; }
.marca-doveli__enlaces { display: flex; flex-wrap: wrap; gap: 0 28px; }

.intro { padding-top: 36px; padding-bottom: 40px; }
.intro h1 { max-width: 15em; margin-bottom: 14px; }
.legal { min-height: 34vh; }
.legal .entrada { max-width: 40em; margin-bottom: 20px; }
.lista-404 { display: grid; gap: 12px; margin-top: 8px; }
.fila { padding-block: clamp(28px, 3vw, 44px); }
.fila--tinte { background: var(--tinte); }
.fila__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.fila__grid--inversa .fila__foto { order: 2; }
.fila__foto > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radio); }
.fila__foto--par { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.fila__foto--par > img { height: 100%; aspect-ratio: auto; }
.fila__foto--par > img:first-child { aspect-ratio: 4 / 3; }
.fila__texto h2 { margin-bottom: 14px; }
.fila__texto p { margin-bottom: 14px; }
.fila__texto .btn { margin-top: 8px; }
.criterio { padding-top: 12px; border-top: 1px solid var(--linea); }
.criterio strong { color: var(--azul-fuerte); font-weight: 700; }
.fila__texto .nota-linea { margin: 22px 0 0; }

/* Fichas de producto */
.ficha-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: 28px; }
.ficha-hero h1 { margin-bottom: 14px; }
.ficha-hero__foto img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radio); }
.perfiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.perfil__img { height: clamp(260px, 22vw, 310px); display: flex; align-items: center; justify-content: center; padding-block: 12px; margin-bottom: 18px; }
.perfil__img img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.perfil h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.datos > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 10px; border-top: 1px solid var(--linea); }
.datos dt { color: var(--texto-suave); }
.datos dd { font-weight: 600; color: var(--azul-profundo); text-align: right; }
.perfil__nota { font-size: var(--t-nota); font-style: italic; color: var(--texto-suave); padding-top: 8px; border-top: 1px solid var(--linea); }

.acabados { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(32px, 6vw, 96px); align-items: center; }
.acabados > h2 { margin: 0; }
.acabados__lista { display: flex; flex-wrap: wrap; gap: 20px clamp(28px, 5vw, 72px); }
.acabado { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; max-width: 150px; font-size: .95rem; }
.acabado__muestra { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #C9D2DE; }
.acabados__nota { grid-column: 2; }

.acordeon { border-top: 1px solid var(--linea); }
.acordeon details { border-bottom: 1px solid var(--linea); }
.acordeon summary { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 8px 4px; font-size: 1.1rem; font-weight: 500; cursor: pointer; list-style: none; }
.acordeon summary::-webkit-details-marker, .mini summary::-webkit-details-marker { display: none; }
.acordeon summary::after, .mini summary::after { content: "+"; font-size: 1.6rem; font-weight: 300; line-height: 1; color: var(--azul-profundo); }
.acordeon details[open] summary::after, .mini details[open] summary::after, .mini[open] summary::after { content: "\2212"; }
.acordeon__cuerpo { padding: 6px 4px 28px; }
.acordeon__cuerpo h4 { margin: 14px 0 12px; }
.aperturas { display: flex; flex-wrap: wrap; gap: 24px clamp(20px, 3vw, 44px); margin-bottom: 8px; }
.aperturas li { width: 104px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: .9rem; line-height: 1.3; }
.apertura__icono { width: 72px; height: 54px; color: var(--azul-profundo); }
.tabla { width: 100%; border-collapse: collapse; margin-top: 8px; }
.tabla th, .tabla td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--linea); vertical-align: top; font-size: 1rem; }
.tabla thead th { color: var(--texto-suave); font-weight: 500; font-size: .9rem; }
.tabla tbody th { font-weight: 600; white-space: nowrap; padding-right: 24px; }

.aviso { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; margin-top: var(--bloque); background: var(--tinte); padding: clamp(24px, 3vw, 36px) clamp(20px, 3vw, 40px); border-radius: var(--radio); }
.aviso h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
.aviso .simbolo { width: 28px; height: 28px; }
.aviso p { margin-top: 4px; }
.entre-lineas { display: flex; flex-wrap: wrap; gap: 8px 40px; padding-top: 36px; }
.ficha-hero + .bloque { margin-top: 12px; }

/* Pestañas */
.tabs__lista { display: flex; border-bottom: 1px solid var(--linea); }
.tabs__tab { flex: 1; min-height: 52px; font-size: 1.1rem; color: var(--texto); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs__tab[aria-selected="true"] { color: var(--azul-profundo); font-weight: 700; border-bottom-color: var(--azul); }
.tabs__tab:hover { color: var(--azul); }
.serie { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-top: 36px; }
.serie[hidden] { display: none; }
.serie__img { height: clamp(260px, 26vw, 340px); display: flex; justify-content: center; align-items: center; }
.serie__img img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.serie__datos h3 { font-size: clamp(1.5rem, 1.3rem + .9vw, 2rem); margin-bottom: 14px; }
.serie__datos .datos > div:last-child { border-bottom: 1px solid var(--linea); }
.serie__datos p { margin-top: 18px; }

/* Galería única deslizable */
.galeria { display: flex; gap: clamp(12px, 1.8vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 12px; margin-top: 4px; }
.galeria:focus-visible { outline-offset: 4px; }
.galeria__item { flex: none; width: clamp(260px, 38vw, 520px); scroll-snap-align: start; }
.galeria__item[data-forma="vertical"] { width: clamp(200px, 24vw, 330px); }
.galeria__abrir { display: block; width: 100%; cursor: zoom-in; }
.galeria__abrir img { width: 100%; height: clamp(260px, 30vw, 400px); object-fit: cover; border-radius: var(--radio); }
.galeria__pie { margin-top: 8px; font-size: 1rem; font-weight: 600; }
.galeria__controles { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.galeria__flecha { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1.5px solid var(--azul-profundo); border-radius: 50%; color: var(--azul-profundo); background: #fff; }
.galeria__flecha:hover { background: var(--tinte); }
.galeria__flecha:disabled { opacity: .35; cursor: default; }
.galeria__flecha .icono { width: 22px; height: 22px; }

.visor { border: 0; padding: 0; background: transparent; width: 100vw; height: 100dvh; max-width: none; max-height: none; color: #fff; }
.visor[open] { display: flex; align-items: center; justify-content: center; }
.visor::backdrop { background: rgba(8, 20, 46, .92); }
.visor figure { max-width: min(1200px, 100vw - 136px); text-align: center; }
.visor img { max-height: calc(100dvh - 120px); width: auto; margin-inline: auto; border-radius: 4px; }
.visor figcaption { margin-top: 12px; }
.visor__cerrar, .visor__flecha { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; color: #fff; }
.visor__cerrar .icono, .visor__flecha .icono { width: 30px; height: 30px; }
.visor__cerrar { top: 12px; right: 12px; }
.visor__flecha { top: 50%; margin-top: -26px; }
.visor__flecha--ant { left: 8px; }
.visor__flecha--sig { right: 8px; }

/* Compra en línea */
.compra-hero { position: relative; display: flex; min-height: clamp(300px, 30vw, 400px); margin-top: 14px; overflow: hidden; background: var(--tinte); }
.compra-hero__foto { position: absolute; top: 0; right: 0; width: 54%; height: 100%; object-fit: cover; object-position: 55% 45%; }
.compra-hero__texto { position: relative; width: 46%; max-width: none; margin: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 32px 36px 32px max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter))); }
.compra-hero__texto h1 { font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.6rem); margin-bottom: 12px; }
.compra-hero__texto .btn { margin-top: 20px; }
.compra-hero__full { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; font-weight: 600; color: var(--azul-profundo); }
.compra-hero__full .icono { width: 18px; height: 18px; margin-top: 3px; color: var(--verde-wa-texto); }
.compra__limite { margin-top: 4px; }
.compra-intro { padding-top: 28px; }
.compra-intro h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); margin-bottom: 12px; }
.compra-intro .entrada { margin-bottom: 8px; }
.compra__comun { margin: -8px 0 22px; }
.fichas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.ficha { display: flex; flex-direction: column; border: 1px solid var(--linea); border-radius: 10px; overflow: hidden; background: #fff; }
.ficha__foto .etiqueta-full { position: absolute; top: 12px; left: 12px; }
.ficha__foto { position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 18px; background: #fff; border-bottom: 1px solid var(--linea); }
.ficha__foto img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; }
.ficha__cuerpo { flex: 1; display: flex; flex-direction: column; padding: 16px 18px 18px; }
.ficha__cabeza { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.ficha__cabeza h3 { color: var(--azul-profundo); font-size: clamp(1.35rem, 1.2rem + .5vw, 1.6rem); font-weight: 700; }
.ficha__material { margin-top: 2px; font-weight: 600; color: var(--azul); }
.ficha .datos { margin: 10px 0 18px; font-size: .95rem; }
.ficha .datos > div { padding-block: 7px; }
.etiqueta-full { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; font-size: .8rem; font-weight: 700; line-height: 1.2; white-space: nowrap; color: var(--verde-wa-texto); background: #fff; border: 1px solid currentColor; border-radius: 4px; }
.etiqueta-full .icono { width: 13px; height: 13px; }
.etiqueta-full[hidden] { display: none; }
.mini { border-bottom: 1px solid var(--linea); margin-bottom: 16px; text-align: left; }
.mini summary { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; list-style: none; font-weight: 500; }
.mini .datos > div:first-child { border-top: 0; }
.mini .nota { margin: 4px 0 14px; }
.ficha .btn { margin-top: auto; }
.guia { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guia li { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 6px 20px; font-weight: 600; color: var(--azul-profundo); }
.guia li + li { border-left: 1px solid #C5D4E8; }
.guia .icono { width: 46px; height: 46px; color: var(--azul); }

/* Pie */

.pie { background: var(--azul-profundo); color: #fff; padding-bottom: var(--seguro-abajo); font-size: .95rem; line-height: 1.45; }
.pie__fila { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.35fr) minmax(0, .7fr) minmax(0, .9fr); gap: 24px clamp(20px, 3vw, 44px); padding-block: 30px 24px; padding-right: calc(var(--gutter) + 72px); }
.pie__marca p { margin-top: 8px; }
.pie__marca a { display: inline-flex; align-items: center; min-height: 44px; }
.pie__alcore { width: auto; height: 58px; }
.pie__doveli-linea { display: flex; align-items: center; gap: 10px; color: #C7DAF3; font-size: .88rem; }
.pie__doveli { width: auto; height: 22px; }
.pie__contacto { font-style: normal; }
.pie__contacto p + p { margin-top: 6px; }
.pie__enlaces { display: flex; flex-wrap: wrap; gap: 0 20px; font-weight: 600; }
.pie__enlaces a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.pie__enlaces .icono { width: 15px; height: 15px; }
.pie nav ul { list-style: none; }
.pie nav a, .pie__redes a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.pie__redes { list-style: none; }
.pie__redes a { gap: 10px; }
.pie__redes .icono { width: 20px; height: 20px; }
.pie nav a:hover, .pie__redes a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pie :focus-visible { outline-color: #fff; }

/* Ubicacion y contacto */
.ubicacion { margin-top: 0; padding-block: clamp(36px, 4vw, 56px); }
.ubicacion__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.ubicacion__datos > h2 { margin-bottom: 16px; }
.contacto { list-style: none; }
.contacto li { display: flex; gap: 12px; padding-block: 11px; border-top: 1px solid #C5D4E8; }
.contacto li:last-child { border-bottom: 1px solid #C5D4E8; }
.contacto .simbolo { --sim: 28px; margin-top: -2px; }
.contacto strong { display: block; color: var(--azul-profundo); font-weight: 700; }
.contacto span, .contacto a { color: var(--azul-profundo); overflow-wrap: anywhere; }
.contacto a { display: inline-flex; min-height: 32px; align-items: center; text-underline-offset: 4px; font-weight: 600; }
.ubicacion__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.ubicacion__acciones .btn { min-height: 48px; }
.ubicacion__mapa { height: 360px; margin-right: 76px; border: 1px solid #B9CCE4; border-radius: 8px; overflow: hidden; background: #fff; }
.ubicacion__mapa iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Globo de WhatsApp */
.wa-flotante { position: fixed; z-index: 30; right: calc(20px + var(--seguro-der)); bottom: calc(20px + var(--seguro-abajo)); width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--verde-wa); color: #fff; box-shadow: 0 4px 14px rgba(13, 35, 80, .22); transition: transform .2s; }
.wa-flotante .icono { width: 36px; height: 36px; }
.wa-flotante:hover { transform: scale(1.05); }

/* Modal */
.modal { width: min(500px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 22px clamp(20px, 5vw, 36px) 26px; border: 0; border-radius: 12px; color: var(--texto); background: #fff; box-shadow: 0 16px 40px rgba(13, 35, 80, .18); overflow-y: auto; }
.modal::backdrop { background: rgba(13, 35, 80, .5); }
.modal__cabeza { display: flex; justify-content: space-between; align-items: center; }
.modal__logo { width: auto; height: 40px; }
.modal__cerrar { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -10px; }
.modal__cerrar .icono { width: 26px; height: 26px; }
.modal__progreso { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.modal__barra { flex: 1; height: 6px; border-radius: 3px; background: #DFE5EE; overflow: hidden; }
.modal__barra span { display: block; height: 100%; width: 50%; background: var(--azul); transition: width .25s; }
.modal__conteo { font-size: .9rem; white-space: nowrap; }
.modal h2 { font-size: clamp(1.4rem, 1.25rem + .6vw, 1.65rem); font-weight: 700; margin: 20px 0 18px; outline: none; }
.modal section h2 { text-align: center; margin: 6px 0 8px; }
.modal__icono { display: flex; justify-content: center; color: var(--azul); margin-top: 8px; }
.modal__icono .icono { width: 50px; height: 50px; }
.modal__texto { text-align: center; margin-bottom: 20px; }
.opciones { display: grid; gap: 10px; }
.opciones--dos { grid-template-columns: 1fr 1fr; }
.opcion { position: relative; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 16px; border: 1.5px solid #CFD8E5; border-radius: 8px; cursor: pointer; transition: background-color .15s, border-color .15s; }
.opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opcion .icono { width: 26px; height: 26px; color: var(--azul-profundo); }
.opcion::after { content: ""; flex: none; margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #AAB6C7; background: #fff; }
.opcion:hover { border-color: var(--azul); }
.opcion:has(input:checked) { border-color: var(--azul); background: var(--tinte); }
.opcion:has(input:checked)::after { border-color: var(--azul); box-shadow: inset 0 0 0 4px #fff; background: var(--azul); }
.opcion:has(input:focus-visible) { outline: 3px solid var(--foco); outline-offset: 2px; }
.opcion--grande { justify-content: center; min-height: 86px; font-size: 1.15rem; font-weight: 600; text-align: center; }
.opcion--grande::after { display: none; }
.modal__acciones { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.modal__acciones .btn { flex: 1; max-width: 300px; }
.modal__acciones--solo { justify-content: center; }
.modal__acciones--centro { justify-content: center; margin-top: 10px; }
.modal__acciones--pila { flex-direction: column; }
.modal__acciones--pila .btn { max-width: none; flex: none; }
.campo { margin-bottom: 12px; }
.campo label { display: block; font-size: .95rem; font-weight: 500; margin-bottom: 5px; }
.campo input, .campo select { width: 100%; min-height: 50px; padding: 8px 14px; border: 1.5px solid #CFD8E5; border-radius: 8px; background: #fff; }
.modal__salidas { display: grid; gap: 10px; margin-top: 16px; }
.modal__salidas [hidden] { display: none; }
.modal__medidas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.modal__medidas .btn { width: 100%; padding-inline: 10px; font-size: .95rem; gap: 6px; }
.modal__medidas .icono { width: 15px; height: 15px; }
.opcion--grande { font-size: 1.05rem !important; }
.modal__salidas .icono { width: 22px; height: 22px; }
.modal__pendiente { font-size: .85rem; color: var(--texto-suave); text-align: center; margin-top: 10px; }

/* Entrada residencial de PVC europeo */
.residencial { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; margin-top: var(--bloque); padding: clamp(24px, 3vw, 40px); background: var(--tinte); border-left: 4px solid var(--azul); border-radius: var(--radio); }
.residencial__texto { flex: 1 1 420px; max-width: 760px; }
.residencial__texto h2 { margin-bottom: 10px; }
.residencial__nota { margin-top: 10px; font-weight: 600; color: var(--azul-profundo); }
.fila__botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.fila__texto .fila__botones .btn { margin-top: 0; }
.campo__ayuda { font-size: .85rem; color: var(--texto-suave); margin-top: 6px; }
.campo__ayuda a { color: var(--azul-fuerte); }
.ventana-perfil-fondo { fill: #fff; }

/* Formulario de cotización */
.modal:has([data-paso="formulario"]:not([hidden])) { width: min(640px, calc(100vw - 24px)); }
.form__resumen { background: var(--tinte); border-radius: 6px; padding: 10px 14px; font-weight: 600; color: var(--azul-profundo); margin: -6px 0 10px; }
.form__aviso-req { font-size: .85rem; color: var(--texto-suave); margin-bottom: 12px; }
.form__rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
.campo--ancho { grid-column: 1 / -1; }
.campo--oculto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.campo textarea { width: 100%; padding: 10px 14px; border: 1.5px solid #CFD8E5; border-radius: 8px; background: #fff; font: inherit; resize: vertical; min-height: 92px; }
.campo [aria-invalid="true"] { border-color: #B42318; background: #FFF6F5; }
.form__privacidad { font-size: .9rem; margin-top: 4px; }
.form__privacidad a { color: var(--azul-fuerte); font-weight: 600; }
.casilla { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; font-size: .9rem; cursor: pointer; }
.casilla input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--azul); }
.form__error { margin-top: 14px; padding: 10px 14px; border-radius: 6px; background: #FFF1F0; color: #8A1C12; font-size: .92rem; }
.form__error[hidden] { display: none; }

/* Adaptación */
@media (max-width: 899px) {
  .dupla, .dupla--ligera, .historia, .fila__grid, .ficha-hero, .serie, .atendemos, .capacidad { grid-template-columns: minmax(0, 1fr); }
  .dupla--invertida .dupla__foto, .fila__grid--inversa .fila__foto { order: 0; }
  .perfiles { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .perfil__img { height: 280px; }
  .serie__img { height: 270px; }
  .dupla__foto img, .historia__foto img, .fila__foto > img, .ficha-hero__foto img, .atendemos__foto img { aspect-ratio: 16 / 9; max-height: 340px; }
  .fila__foto--par > img { max-height: 240px; }
  .franja-compra__fila { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .compra-intro { grid-template-columns: minmax(0, 1fr); }
  .compra-intro__producto { max-width: 420px; }
  .tipos { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .obras { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 150px; }
  .obras__grande { grid-column: span 2; grid-row: span 1; }
  .obras li:nth-child(n+4) { display: none; }
  .obras span { font-size: .8rem; padding: 18px 10px 8px; }
  .intro__foto img { aspect-ratio: 4 / 3; }
  .franja-compra__ventana { padding: 0 0 12px; }
  .franja-compra__ventana img { width: min(72%, 300px); }
  .cifras { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cifras > div + div { border-left: 0; padding-left: 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .22); }
  .ubicacion__grid { grid-template-columns: minmax(0, 1fr); }
  .ubicacion__mapa { margin-right: 0; height: 300px; }
}
@media (max-width: 767px) {
  :root { --sim: 28px; --t-h2: 1.5rem; --t-h1: 1.875rem; }
  h1 { line-height: 1.2; }
  .lineas, .procesos { grid-template-columns: minmax(0, 1fr); }
  .acabados { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .acabados__nota { grid-column: 1; margin-top: 0; }
  .acabados__lista { justify-content: flex-start; gap: 20px 26px; }
  .acabado { width: 92px; }
  .tabs__tab { font-size: 1rem; }
  .visor figure { max-width: 100vw; padding-inline: 8px; }
  .visor__flecha { top: auto; bottom: 8px; margin: 0; }
  .wa-flotante { width: 56px; height: 56px; right: calc(16px + var(--seguro-der)); bottom: calc(16px + var(--seguro-abajo)); }
  .wa-flotante .icono { width: 32px; height: 32px; }
  .galeria__item { width: 82vw; }
  .galeria__item[data-forma="vertical"] { width: 62vw; }
  .galeria__abrir img { height: clamp(240px, 70vw, 340px); }
  .galeria__controles { justify-content: flex-start; }
  .fichas { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .ficha__foto { aspect-ratio: 4 / 3; }
  .guia { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .guia li { justify-content: flex-start; padding-inline: 0; }
  .guia li + li { border-left: 0; }
  .etapas { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .etapa { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .participacion .etapa { grid-template-columns: 76px minmax(0, 1fr); }
  .etapa h3 { margin-top: 2px; }
  .etapa::after { top: 68px; left: 31px; right: auto; bottom: -18px; width: 1.5px; height: auto; }
  .participacion .etapa::after { top: 80px; left: 37px; }
  .etapa__icono .simbolo { --sim: 32px; }
  .marca-doveli { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .marca-doveli__logo { max-width: 170px; }
  .cierre { flex-direction: column; align-items: flex-start; }
  .pie__fila { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 26px 28px; }
  .ubicacion__acciones .btn { padding-inline: 18px; }
  .form__rejilla { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1099px) and (min-width: 768px) {
  .fichas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1099px) {
  .pie__fila { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pie nav ul, .pie__redes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; align-content: start; }
}
@media (max-width: 767px) {
  .pie__fila { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
