﻿* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Open Sans", system-ui, sans-serif; color: #3a3a3a; background: #fff; line-height: 1.6; font-size: 15px; overflow-x: hidden; }
h1, h2, h3, .tit { font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .03em; font-weight: 500; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Barra superior */
.top { background: #f2f2f2; font-size: 12px; }
.top .wrap { display: flex; justify-content: flex-end; gap: 22px; height: 34px; align-items: center; }
.top a { color: #555; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; font-weight: 600; }
.top a:hover { color: var(--principal); }
.top .izq { display: flex; gap: 22px; margin-right: auto; }
.top a.ac { text-transform: none; font-size: 12px; letter-spacing: 0; color: #fff; }
.top a[href^="mailto"], .top a[href^="tel"] { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 400; }
.top a.ac { background: var(--principal); color: #fff; padding: 3px 12px; border-radius: 3px; font-weight: 600; }
@media (max-width: 700px) { .top { display: none; } }

/* Cabecera */
header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid #e5e5e5; }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
header img { height: 58px; }
.links { display: flex; align-items: center; }
.links a { font-family: Oswald; text-transform: uppercase; font-size: 14px; color: #333; padding: 8px 12px; border-left: 1px solid #ddd; white-space: nowrap; }
.links a:first-child { border-left: 0; }
.links a:hover, .links a.activo { color: var(--principal); }
.links a.activo { box-shadow: inset 0 -3px var(--acento); }
.links.hd .it { position: relative; border-left: 1px solid #ddd; }
.links.hd .it:first-child { border-left: 0; }
.links.hd .it > a { border: 0; display: block; }
.chev { display: inline-block; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin: 0 0 3px 7px; }
.links.hd .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: #f2f2f2; box-shadow: 0 8px 20px rgba(0,0,0,.18); z-index: 12; border-top: 3px solid var(--acento); }
.links.hd .it:hover .sub, .links.hd .it:focus-within .sub { display: block; }
.links.hd .sub a { display: block; border: 0; border-bottom: 1px solid #ddd; font-size: 12px; padding: 12px 16px; white-space: normal; }
.links.hd .sub a:last-child { border-bottom: 0; }
.links.hd .sub a:hover { background: var(--oscuro); color: #fff; }
.der { display: flex; align-items: center; gap: 10px; }
.cot { background: var(--oscuro); color: #fff; border-radius: 20px; padding: 8px 18px; display: flex; gap: 8px; align-items: center; font-family: Oswald; text-transform: uppercase; font-size: 14px; white-space: nowrap; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-size: 26px; line-height: 1; padding: 4px 8px; color: var(--oscuro); }
.menu summary::-webkit-details-marker { display: none; }
.menu div { position: absolute; right: 0; top: 46px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.15); min-width: 220px; display: flex; flex-direction: column; }
.menu div a { padding: 14px 20px; border-bottom: 1px solid #eee; font-family: Oswald; text-transform: uppercase; }
.menu div a.activo { color: var(--principal); }
@media (max-width: 880px) { .links { display: none; } .menu { display: block; } }

/* Banner con caja de cotización */
.banner { position: relative; height: 230px; background: center 40%/cover no-repeat; }
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,.1) 60%); }
.banner .wrap { position: relative; height: 100%; display: flex; align-items: flex-end; padding-bottom: 34px; }
.banner h1 { color: #fff; font-size: clamp(28px, 5vw, 42px); background: rgba(11,61,54,.72); padding: 10px 28px; border-left: 5px solid var(--acento); backdrop-filter: blur(2px); }
.solicite { position: absolute; right: max(20px, calc((100vw - 1200px) / 2 + 20px)); bottom: -36px; z-index: 2; display: flex; align-items: center; gap: 16px;
  background: var(--acento); color: var(--oscuro); font-family: Oswald; text-transform: uppercase; font-size: 20px; padding: 20px 34px; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.solicite::before { content: ""; position: absolute; left: -18px; bottom: 0; border-right: 18px solid #1a9e93; border-top: 18px solid transparent; }
.solicite svg { width: 30px; height: 30px; }
@media (max-width: 700px) { .solicite { left: 20px; right: 20px; justify-content: center; font-size: 17px; padding: 16px; } }

/* Ruta + intro */
.ruta { font-size: 12px; color: #777; margin: 26px 0 14px; }
.ruta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ruta a { text-decoration: underline; color: #444; }
.ruta a:hover { color: var(--principal); }
.ruta b { font-weight: 400; color: #222; }
.it-tit { font-size: 24px; color: #111; text-transform: none; letter-spacing: 0; font-weight: 600; }
.it-sub { font-family: Oswald; text-transform: uppercase; font-size: 20px; color: #777; letter-spacing: .04em; margin-bottom: 14px; }
.intro { max-width: 1000px; margin-bottom: 30px; }
@media (max-width: 700px) { .ruta { margin-top: 70px; } }

/* Tarjetas grandes con foto */
.grandes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-bottom: 50px; border-bottom: 1px solid #e5e5e5; }
.grande { position: relative; height: 290px; overflow: hidden; background: #222; }
.grande img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; opacity: .9; }
.grande:hover img { transform: scale(1.06); }
.grande::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.8)); }
.grande span { position: absolute; left: 18px; right: 50px; bottom: 18px; z-index: 1; color: #fff; font-family: Oswald; text-transform: uppercase; font-size: 17px; line-height: 1.25; }
.grande b { position: absolute; right: 16px; bottom: 14px; z-index: 1; color: #fff; font-size: 28px; font-weight: 400; line-height: 1; }
@media (max-width: 1000px) { .grandes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grandes { grid-template-columns: 1fr; } .grande { height: 220px; } }

/* Fila de 3 bloques + caja de atención */
.fila { display: grid; grid-template-columns: repeat(3, 1fr) 1.15fr; gap: 26px; padding: 44px 0 56px; }
.bloque h3 { font-size: 15px; color: #222; margin-bottom: 10px; }
.bloque img { width: 100%; height: 120px; object-fit: cover; margin-bottom: 10px; }
.bloque p { font-size: 13px; margin-bottom: 14px; }
.borde { display: inline-block; border: 1px solid #333; padding: 7px 26px; font-family: Oswald; text-transform: uppercase; font-size: 13px; }
.borde:hover { background: var(--oscuro); color: #fff; border-color: var(--oscuro); }
.atencion { background: var(--acento); color: var(--oscuro); padding: 24px; font-size: 13px; align-self: start; }
.atencion .tit { display: flex; gap: 10px; align-items: center; font-size: 18px; margin-bottom: 12px; }
.atencion .tit svg { width: 30px; height: 30px; }
.atencion p { display: flex; gap: 8px; margin-bottom: 8px; }
.atencion strong { display: block; }
@media (max-width: 1000px) { .fila { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fila { grid-template-columns: 1fr; } }

/* Contenido de las páginas internas */
.pag { padding-top: 10px; padding-bottom: 60px; }
.pag h2 { font-size: 26px; color: var(--oscuro); margin: 30px 0 6px; }
.pag h2::after { content: ""; display: block; width: 50px; height: 4px; background: var(--acento); margin-top: 8px; }
.pag .sub { margin: 14px 0 30px; max-width: 760px; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.dos img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.dos p + p { margin-top: 12px; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.mv div { background: #fff; border-top: 4px solid var(--acento); padding: 22px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.mv h3 { color: var(--oscuro); margin-bottom: 6px; }
.servs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.servs .ph { height: 180px; }
@media (max-width: 1000px) { .servs { grid-template-columns: 1fr 1fr; } }
.serv { display: grid; grid-template-columns: 200px 1fr; gap: 20px; background: #f4f4f4; }
.serv img { width: 100%; height: 100%; min-height: 170px; object-fit: cover; }
.serv div { padding: 20px 20px 20px 0; }
.serv h3 { color: var(--oscuro); margin-bottom: 6px; }
.serv p { font-size: 14px; margin-bottom: 14px; }
.lineas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 20px; margin-bottom: 30px; }
.tarjeta { background: #f4f4f4; display: flex; flex-direction: column; transition: box-shadow .3s, transform .3s; }
.tarjeta:hover { box-shadow: 0 8px 22px rgba(0,0,0,.18); transform: translateY(-3px); }
.tarjeta .ph { height: 150px; background-size: 220%; }
.tarjeta h3 { background: #666; color: #fff; font-size: 14px; padding: 12px 14px; transition: background .3s; }
.tarjeta:hover h3 { background: var(--oscuro); }
.tarjeta p { font-size: 13px; padding: 12px 14px 6px; flex: 1; }
.tarjeta a { margin: 0 14px 6px; padding: 10px 0; align-self: flex-start; font-family: Oswald; text-transform: uppercase; font-size: 13px; color: var(--principal); }
.tarjeta a::after { content: " →"; }
@media (max-width: 1000px) { .lineas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .lineas { grid-template-columns: 1fr; } }
.marcas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 46px; margin-top: 30px; }

.tira { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 34px; }
.tira img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.razones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.razones div { border-left: 4px solid var(--acento); padding-left: 16px; }
.razones h3 { font-size: 16px; color: var(--oscuro); }
.razones p { font-size: 13px; }
.beneficios { margin-top: 34px; background: var(--oscuro); color: #fff; padding: 24px 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 24px; font-size: 14px; }
.beneficios li { list-style: none; }
.beneficios li::before { content: "→ "; color: var(--acento); }
.contacto { display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; margin-top: 30px; }
.contacto .atencion { font-size: 15px; padding: 30px; }
.contacto .wa { display: inline-flex; gap: 10px; align-items: center; margin-top: 14px; background: #25d366; color: #fff; padding: 14px 22px; border-radius: 8px; font-weight: 700; }
.contacto .wa svg { width: 22px; height: 22px; fill: #fff; }
.mapa iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
@media (max-width: 520px) { .servs { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .dos, .mv, .razones, .beneficios, .contacto { grid-template-columns: 1fr; } .tira { grid-template-columns: 1fr 1fr; } .tira img:last-child { display: none; } }

/* Franja de íconos + redes */
.franja { background: var(--acento); color: var(--oscuro); }
.franja .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 20px; }
.sellos { display: flex; flex-wrap: wrap; gap: 18px 50px; }
.sellos span { display: flex; align-items: center; gap: 10px; font-family: Oswald; text-transform: uppercase; font-size: 15px; }
.sellos svg { width: 30px; height: 30px; }
.redes { display: flex; gap: 10px; }
.redes a { width: 36px; height: 36px; display: grid; place-items: center; background: var(--oscuro); color: #fff; border-radius: 3px; font-weight: 700; font-size: 13px; }

/* Pie oscuro */
footer { background: #111; color: #bbb; font-size: 12px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 30px; padding: 40px 0 28px; border-bottom: 1px solid #333; }
footer h4 { font-family: Oswald; text-transform: uppercase; font-weight: 500; font-size: 14px; color: #fff; margin-bottom: 12px; letter-spacing: .04em; }
footer .cols p { line-height: 1.7; }
footer .cols nav { display: flex; flex-direction: column; gap: 8px; }
footer .cols a { color: #ddd; font-size: 13px; }
footer .cols a:hover { color: var(--acento); }
footer .cols a.res { color: var(--acento); font-weight: 600; }
@media (max-width: 800px) { footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { footer .cols { grid-template-columns: 1fr; } }
footer .links { display: flex; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid #333; }
footer .links a { color: #ddd; font-size: 13px; border-color: #444; }
footer .links a:first-child { padding-left: 0; }
footer .links a.res { color: var(--acento); }
footer .legal { padding: 18px 0 100px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

.flotante { position: fixed; right: 18px; bottom: 18px; z-index: 20; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.flotante svg { width: 32px; height: 32px; fill: #fff; }
[hidden] { display: none !important; }
[id^="linea"], .serv { scroll-margin-top: 100px; }

/* Accesos rápidos antes del pie */
.accesos { background: #f4f4f4; padding: 40px 0; }
.accesos .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.acceso { position: relative; min-height: 190px; background: center/cover; color: #fff; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.acceso::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(11,61,54,.92)); transition: background .3s; }
.acceso:hover::before { background: linear-gradient(rgba(11,61,54,.5), rgba(11,61,54,.95)); }
.acceso > * { position: relative; }
.acceso h4 { font-family: Oswald; text-transform: uppercase; font-size: 20px; font-weight: 500; }
.acceso p { font-size: 13px; margin: 4px 0 12px; }
.acceso span { align-self: flex-start; background: var(--acento); color: var(--oscuro); font-family: Oswald; text-transform: uppercase; font-size: 13px; padding: 6px 18px; }
@media (max-width: 800px) { .accesos .wrap { grid-template-columns: 1fr; } }

/* Aparición al hacer scroll */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.rv.ve { opacity: 1; transform: none; }
.tarjeta.rv.ve:hover { transform: translateY(-3px); }

/* Botón subir */
.subir { position: fixed; right: 29px; bottom: 90px; z-index: 20; width: 40px; height: 40px; border-radius: 50%; background: var(--oscuro); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.3); opacity: 0; pointer-events: none; transition: opacity .3s, background .3s; }
.subir.ver { opacity: 1; pointer-events: auto; }
.subir:hover { background: var(--principal); }
.subir .chev { transform: rotate(-135deg); margin: 4px 0 0; }

/* Página de un servicio */
.sv-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; margin-top: 24px; }
.galeria { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.galeria figure { position: relative; overflow: hidden; background: #222; aspect-ratio: 4/3; }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.galeria figure:hover img { transform: scale(1.06); }
.galeria figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(60,60,60,.85); color: #fff; font-family: Oswald; text-transform: uppercase; font-size: 13px; padding: 10px 14px; }
.sv-info { position: sticky; top: 96px; }
.sv-info h2 { font-size: 26px; color: var(--oscuro); margin-bottom: 4px; }
.sv-info h2::after { content: ""; display: block; width: 50px; height: 4px; background: var(--acento); margin: 8px 0 16px; }
.sv-info p { margin-bottom: 12px; }
.sv-info h3 { font-size: 15px; color: #222; margin: 20px 0 8px; }
.sv-info ul { list-style: none; margin-bottom: 22px; }
.sv-info li { padding: 8px 0 8px 22px; border-bottom: 1px solid #eee; font-size: 14px; position: relative; }
.sv-info li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; background: var(--acento); border-radius: 50%; }
.btn-wa { display: flex; justify-content: center; gap: 10px; align-items: center; background: #25d366; color: #fff; padding: 14px 22px; border-radius: 8px; font-weight: 700; }
.btn-wa svg { width: 22px; height: 22px; fill: #fff; }
.volver { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--principal); text-decoration: underline; }
@media (max-width: 900px) { .sv-grid { grid-template-columns: 1fr; } .sv-info { position: static; order: -1; } }
@media (max-width: 420px) { .galeria { grid-template-columns: 1fr; } }

/* Logos de marcas */
.marcas { gap: 18px 22px; }
.marca { --c: #999; background: #fff; border: 1px solid color-mix(in srgb, var(--c) 35%, #e3e3e3); box-shadow: 0 0 26px 3px color-mix(in srgb, var(--c) 38%, transparent); border-radius: 6px; height: 92px; min-width: 190px; padding: 18px 26px; display: grid; place-items: center; font-family: Oswald; font-size: 22px; color: #666; text-transform: uppercase; transition: transform .3s, box-shadow .3s; }
.marca:hover { transform: translateY(-4px); box-shadow: 0 0 36px 8px color-mix(in srgb, var(--c) 55%, transparent); }
.marca img { max-height: 52px; max-width: 150px; width: auto; object-fit: contain; }
.tarjeta a.ph { display: block; margin: 0; padding: 0; align-self: stretch; }
.tarjeta a.ph::after { content: none; }

.galeria.uno { grid-template-columns: 1fr; }
.galeria.uno figure { aspect-ratio: 16/10; }
