/* ==========================================================================
   Cearco — hoja de estilos del sitio
   Reconstruccion limpia del aspecto original. Paleta y tipografia extraidas
   del diseno existente; ni una linea heredada del origen.
   ========================================================================== */

/* --- Tipografias autoalojadas ------------------------------------------- */
@font-face{font-family:'Hind';font-style:normal;font-weight:300;font-display:swap;src:url(../fonts/hind-300-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Hind';font-style:normal;font-weight:300;font-display:swap;src:url(../fonts/hind-300-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Hind';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/hind-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Hind';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/hind-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Hind';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/hind-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Hind';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/hind-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Hind';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/hind-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Hind';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/hind-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Oswald';font-style:normal;font-weight:200 700;font-display:swap;src:url(../fonts/oswald-var-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Oswald';font-style:normal;font-weight:200 700;font-display:swap;src:url(../fonts/oswald-var-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* --- Variables ----------------------------------------------------------- */
:root{
  --primary:#00aaa9;
  --secondary:#008c89;
  --text:#484848;
  --heading:#484848;
  --faded:#999;
  --bg:#fff;
  --bg-alt:#f5f5f5;
  --border:#e8e8e8;
  --footer-bg:#f6f6f6;
  --footer-text:#8c8c8c;
  --subfooter-bg:#919191;

  --body-font:'Hind',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  --head-font:'Oswald',var(--body-font);

  --content-width:1600px;
  --canvas-width:1300px;
  --header-height:129px;
  --header-sticky-height:109px;
  --shadow:0 5px 15px rgba(0,0,0,.15);
}

/* --- Base ---------------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box}
html{font-size:18px;-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:var(--body-font);
  font-size:1rem;
  line-height:1.556;   /* 28/18 */
  font-weight:400;
  color:var(--text);
  background:var(--bg);
  overflow-x:hidden;
}
img{max-width:100%;height:auto;border:0;display:block}
a{color:var(--primary);text-decoration:none;transition:color .2s}
a:hover{color:var(--secondary)}
h1,h2,h3,h4,h5,h6{
  font-family:var(--head-font);
  font-weight:400;
  line-height:1.2;
  color:var(--heading);
  margin:0 0 1.5rem;
}
h1{font-size:3rem}
h2{font-size:2.2rem}
h3{font-size:1.7rem}
h4{font-size:1.5rem}
h5{font-size:1.3rem}
h6{font-size:1.1rem}
p{margin:0 0 1.5rem}
p:last-child,ul:last-child,ol:last-child,table:last-child{margin-bottom:0}
strong,b{font-weight:700}
hr{border:0;border-top:1px solid var(--border);margin:2.5rem 0}
:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* --- Estructura de secciones -------------------------------------------- */
.section{padding:4rem 1.5rem}
.section.tight{padding-top:2rem;padding-bottom:2rem}
.section.flush{padding-top:0}
.section.flush-b{padding-bottom:0}
.section.alt{background:var(--bg-alt)}
.section.full{padding-left:0;padding-right:0}
.wrap{max-width:var(--content-width);margin:0 auto;width:100%}
.wrap.narrow{max-width:var(--canvas-width)}

.cols{display:flex;flex-wrap:wrap;gap:1.5rem}
.cols>*{flex:1 1 0;min-width:0}
/* Repartos de columna tomados del original (sobre 12) */
.col-half{flex:0 0 calc(50% - .75rem)}
.col-7{flex:0 0 calc(58.3333% - .75rem)}
.col-5{flex:0 0 calc(41.6666% - .75rem)}
.col-8{flex:0 0 calc(66.6666% - .75rem)}
.col-4{flex:0 0 calc(33.3333% - .75rem)}
.col-2-5{flex:0 0 calc(40% - .75rem)}
.col-3-5{flex:0 0 calc(60% - .75rem)}
.col-12{flex:0 0 100%}

/* --- Cabecera ------------------------------------------------------------ */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:110;
  background:#fff;color:var(--text);
  box-shadow:var(--shadow);
  transition:height .3s cubic-bezier(.78,.13,.15,.86);
}
.site-header-inner{
  display:flex;align-items:center;gap:1.5rem;
  max-width:var(--content-width);margin:0 auto;
  height:var(--header-height);padding:0 1.5rem;
  transition:height .3s cubic-bezier(.78,.13,.15,.86);
}
.site-header.sticky .site-header-inner{height:var(--header-sticky-height)}
.site-logo{flex:0 0 auto;display:block}
.site-logo img{height:109px;width:auto;transition:height .3s cubic-bezier(.78,.13,.15,.86)}
.site-header.sticky .site-logo img{height:89px}
body{padding-top:var(--header-height)}

/* Navegacion principal */
.nav{margin-left:auto}
.header-socials{display:flex;gap:.9rem;flex:0 0 auto;margin-left:1.5rem}
.header-socials a{color:var(--text);display:block}
.header-socials svg{width:22px;height:22px;fill:currentColor;display:block}
.header-socials a:hover{color:var(--primary)}
.nav-list{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:0}
.nav-list>li{position:relative}
.nav-list>li>a{
  display:block;padding:.6rem 1.05rem;
  font-family:var(--head-font);font-size:1.1rem;font-weight:300;
  text-transform:uppercase;letter-spacing:.01em;line-height:1.2;
  color:var(--text);
}
.nav-list>li>a:hover,.nav-list>li.current>a{color:var(--primary)}
.nav-list>li.has-sub>a::after{
  content:'';display:inline-block;vertical-align:.15em;margin-left:.45em;
  border:.3em solid transparent;border-top-color:currentColor;border-bottom:0;
}
.nav-sub{
  list-style:none;margin:0;padding:.5rem 0;
  position:absolute;top:100%;left:0;min-width:230px;
  background:#fff;box-shadow:var(--shadow);
  opacity:0;visibility:hidden;transform:translateY(8px);
  transition:opacity .25s,transform .25s,visibility .25s;
}
.nav-list>li:hover>.nav-sub,.nav-list>li:focus-within>.nav-sub{opacity:1;visibility:visible;transform:none}
.nav-sub a{display:block;padding:.5rem 1.2rem;color:var(--text);font-size:1rem;
  font-family:var(--head-font);font-weight:300;text-transform:uppercase;letter-spacing:.01em}
.nav-sub a:hover,.nav-sub li.current>a{color:var(--primary)}
.nav-cta{margin-left:.6rem}

/* Boton hamburguesa */
.nav-toggle{
  display:none;margin-left:auto;
  width:44px;height:44px;padding:0;
  background:none;border:0;cursor:pointer;color:var(--text);
}
.nav-toggle span,.nav-toggle span::before,.nav-toggle span::after{
  display:block;position:relative;width:24px;height:2px;background:currentColor;
  margin:0 auto;transition:transform .3s,opacity .3s;
}
.nav-toggle span::before,.nav-toggle span::after{content:'';position:absolute;left:0}
.nav-toggle span::before{top:-7px}
.nav-toggle span::after{top:7px}
.nav-toggle[aria-expanded="true"] span{background:transparent}
.nav-toggle[aria-expanded="true"] span::before{transform:translateY(7px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span::after{transform:translateY(-7px) rotate(-45deg)}

/* --- Botones ------------------------------------------------------------- */
.btn{
  display:inline-block;
  font-family:var(--head-font);font-size:1.1rem;font-weight:300;line-height:1.2;
  padding:.5em 1.8em;border:0;cursor:pointer;text-align:center;
  transition:background .25s,color .25s,border-color .25s,box-shadow .25s;
}
.btn-primary{
  background:var(--primary);color:#fff;
  border-radius:4em;text-transform:uppercase;
  box-shadow:0 .15em .3em 0 rgba(0,0,0,.2);
}
.btn-primary:hover{background:var(--secondary);color:#fff}
.btn-outline{
  background:transparent;color:#fff;border:1px solid #fff;border-radius:0;
}
.btn-outline:hover{background:#fff;color:var(--secondary)}

/* --- Portada: hero ------------------------------------------------------- */
.hero{
  position:relative;
  height:calc(100vh - var(--header-sticky-height));
  max-height:calc(100vh - var(--header-sticky-height));
  min-height:420px;
  display:flex;align-items:center;
  color:#fff;
  background:#c9ccce url(../img/hero-home.webp) no-repeat right center/cover;
}
.hero-inner{max-width:var(--content-width);margin:0 auto;width:100%;padding:0 1.5rem}
.hero-eyebrow{
  font-family:var(--head-font);font-weight:300;font-size:3.3rem;line-height:1.2;
  margin:0;color:#fff;
}
.hero h1{
  font-weight:500;font-size:8.1rem;line-height:1.2;
  margin:0;color:#fff;
}

/* --- Cabecera de pagina interior ---------------------------------------- */
.page-head{
  background:var(--bg-alt);
  background-image:
    repeating-linear-gradient(135deg,rgba(0,170,169,.045) 0 1px,transparent 1px 14px);
}
.page-head-inner{
  max-width:var(--content-width);margin:0 auto;
  padding:4rem 1.5rem;min-height:260px;
  display:flex;align-items:center;
  background-repeat:no-repeat;background-position:right center;background-size:contain;
}
.page-head h1{margin:0;text-align:left}
.page-head h1 strong{font-weight:600}

/* --- Iconos de valores (portada) ---------------------------------------- */
.iconboxes{display:grid;grid-template-columns:repeat(4,1fr);gap:2.5rem;list-style:none;margin:0;padding:0}
.iconbox{text-align:center}
.iconbox img{width:96px;height:96px;margin:0 auto 1rem;object-fit:contain}
.iconbox-title{
  font-family:var(--head-font);font-size:1.5rem;line-height:1.2;
  color:var(--heading);margin:0 0 .5rem;
}
.iconbox p{margin:0;color:var(--text)}

/* --- Titulo decorado ----------------------------------------------------- */
.deco-title{position:relative;padding-bottom:1rem;margin-bottom:3rem}
.deco-title::after{
  content:'';position:absolute;left:0;bottom:0;
  width:60px;height:3px;background:var(--primary);
}
.deco-title.center{text-align:center}
.deco-title.center::after{left:50%;transform:translateX(-50%)}
.deco-title strong{font-weight:600}

/* --- Rejilla de categorias (portada / productos) ------------------------ */
.cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;list-style:none;margin:0;padding:0}
.cat-grid.cols-5{grid-template-columns:repeat(5,1fr)}
.cat-card{
  position:relative;display:block;overflow:hidden;background:#333;
  box-shadow:0 .03rem .06rem rgba(0,0,0,.1),0 .1rem .3rem rgba(0,0,0,.1);
  transition:box-shadow .3s;
}
.cat-card:hover{box-shadow:0 .12rem .24rem rgba(0,0,0,.1),0 .4rem 1.2rem rgba(0,0,0,.15)}
.cat-card img{
  width:100%;aspect-ratio:4/3;object-fit:cover;
  transition:transform .3s;transform-origin:50% 50%;
}
.cat-card:hover img{transform:scale(1.1)}
.cat-card-title{
  position:absolute;left:0;right:0;bottom:0;margin:0;
  padding:1.2rem 1.4rem;
  font-family:var(--head-font);font-size:1.5rem;font-weight:400;color:#fff;
  background:linear-gradient(to top,rgba(0,0,0,.72),rgba(0,0,0,0));
}

/* --- Rejilla de producto (series) --------------------------------------- */
.filters{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 2.5rem}
.filter-btn{
  font-family:var(--head-font);font-size:1rem;font-weight:300;line-height:1.2;
  text-transform:uppercase;letter-spacing:.02em;
  padding:.5em 1.4em;border:1px solid var(--border);border-radius:4em;
  background:#fff;color:var(--text);cursor:pointer;
  transition:background .25s,color .25s,border-color .25s;
}
.filter-btn:hover{border-color:var(--primary);color:var(--primary)}
.filter-btn[aria-pressed="true"]{background:var(--primary);border-color:var(--primary);color:#fff}
.filter-count{opacity:.7;margin-left:.4em;font-size:.85em}

.prod-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:1.5rem;list-style:none;margin:0;padding:0}
.prod-grid.cols-4{grid-template-columns:repeat(4,1fr)}
.gallery.cols-3{grid-template-columns:repeat(3,1fr)}
.gallery.cols-2{grid-template-columns:repeat(2,1fr)}
.prod-item{display:flex;flex-direction:column}
.prod-item[hidden]{display:none}
.prod-figure{
  margin:0;overflow:hidden;background:var(--bg-alt);
  border:0;padding:0;cursor:zoom-in;display:block;width:100%;
}
.prod-figure img{width:100%;aspect-ratio:10/21;object-fit:contain;transition:transform .4s}
.prod-figure:hover img{transform:scale(1.05)}
.prod-item h3{
  font-size:1.3rem;text-align:center;margin:.9rem 0 .2rem;
}
.prod-tax{text-align:center;font-size:.82rem;color:var(--faded);margin:0}

/* La rejilla de fijos usa la misma proporcion vertical que las puertas */

/* --- Ficha de producto --------------------------------------------------- */
.section.ficha-sec{padding-top:1.6rem}
.migas{font-size:.85rem;color:var(--faded);margin-bottom:1.1rem}
.migas a{color:var(--faded)}
.migas a:hover{color:var(--primary)}
.migas span[aria-hidden]{margin:0 .35em}
.migas [aria-current]{color:var(--text)}

/* Rejilla de la ficha: dos huecos de foto (1/5 cada uno) y los datos (3/5),
   igual que el original. Con una sola foto, el segundo hueco queda vacio y la
   tabla mantiene su sitio a la derecha. */
.ficha{display:grid;grid-template-columns:1fr 1fr 3fr;column-gap:3rem;align-items:start}
.ficha-hueco{min-width:0}
.ficha-foto{display:block;max-width:190px;background:#fff;overflow:hidden;cursor:zoom-in}
.ficha-foto img{width:100%;height:auto;transition:transform .4s}
.ficha-foto:hover img{transform:scale(1.04)}
.ficha-datos{min-width:0}
.ficha-datos h1{font-size:2rem;margin-bottom:1.8rem}
.ficha-datos .table-wrap+.table-wrap{margin-top:2.5rem}

/* Tabla de caracteristicas: celdas separadas por un hueco blanco, fila del
   modelo en color corporativo, encabezados de columna sobre gris y filas de
   datos separadas solo por una linea. */
table.ficha-tabla{
  width:calc(100% + 24px);margin:-10px -12px;
  border-collapse:separate;border-spacing:12px 10px;
  font-size:1rem;text-align:center;
}
table.ficha-tabla .modelo td{
  background:var(--primary);color:#fff;
  font-weight:600;text-align:left;padding:.65rem 1.1rem;
}
table.ficha-tabla .encabezados th{
  /* El original usaba texto blanco sobre este gris: 1,4:1 de contraste,
     ilegible. Se conserva la banda gris con el color de texto del sitio. */
  background:#ddd;color:var(--text);
  font-family:var(--body-font);font-weight:400;font-size:1rem;
  padding:.8rem 1.1rem;text-align:center;
}
table.ficha-tabla tbody td{
  padding:1rem 1.1rem;border-top:1px solid var(--border);vertical-align:middle;
}
table.ficha-tabla tr.nota td{
  border:1px solid var(--border);text-align:left;
  font-size:.92rem;padding:.9rem 1.1rem;
}

/* --- Banda con imagen de fondo + CTA ------------------------------------ */
.cta-band{
  color:#fff;text-align:center;
  background:#3c4145 url(../img/cta-banner.webp) no-repeat center center/cover;
  padding:5rem 1.5rem;
}
.cta-band .cta-title{
  font-family:var(--head-font);font-weight:300;font-size:3.9rem;line-height:1.2;
  color:#fff;margin:0 0 .5rem;
}
.cta-band p{color:#fff;margin:0 0 2rem}

/* --- Galerias ------------------------------------------------------------ */
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;list-style:none;margin:0;padding:0}
.gallery.cols-5{grid-template-columns:repeat(5,1fr)}
.gallery button{
  display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in;overflow:hidden;
}
.gallery img{width:100%;transition:transform .4s}
.gallery button:hover img{transform:scale(1.04)}

.banner-full img{width:100%}

/* --- Videos -------------------------------------------------------------- */
.video-player{
  position:relative;width:100%;aspect-ratio:16/9;background:#000;overflow:hidden;
}
.video-player iframe,.video-player img{
  position:absolute;inset:0;width:100%;height:100%;border:0;object-fit:cover;
}
.video-play{
  position:absolute;inset:0;width:100%;height:100%;
  display:flex;align-items:center;justify-content:center;
  border:0;background:rgba(0,0,0,.25);cursor:pointer;transition:background .3s;
}
.video-play:hover{background:rgba(0,0,0,.4)}
.video-play::after{
  content:'';width:0;height:0;
  border-left:26px solid #fff;border-top:16px solid transparent;border-bottom:16px solid transparent;
  margin-left:6px;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.5));
}
.video-title{
  font-family:var(--head-font);font-size:1.6rem;line-height:1.2;color:#777;
  margin:0 0 1rem;
}
.video-card h3{font-size:1.5rem;text-align:center;margin:1rem 0 .8rem}
.video-link{
  display:inline-block;font-family:var(--head-font);text-transform:uppercase;
  font-size:.95rem;letter-spacing:.05em;
}

/* --- Tablas -------------------------------------------------------------- */
.table-wrap{overflow-x:auto}
table.data{width:100%;border-collapse:collapse;font-size:.95rem}
table.data td,table.data th{padding:.7rem 1rem;border-bottom:1px solid var(--border);text-align:left}
table.data tbody tr:nth-child(odd){background:var(--bg-alt)}
table.data td:last-child{font-weight:600;color:var(--heading)}

/* --- Contacto ------------------------------------------------------------ */
.contact-layout{display:grid;grid-template-columns:2fr 1fr;gap:3rem;align-items:start}
.form-row{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:1rem}
.form-row>*{flex:1 1 220px;min-width:0}
input[type=text],input[type=email],input[type=tel],select,textarea{
  width:100%;font-family:inherit;font-size:1rem;font-weight:400;color:var(--text);
  height:2.6rem;padding:0 .8rem;
  border:2px solid var(--border);border-radius:.3rem;background:#fff;
  transition:border-color .25s;
}
textarea{height:auto;min-height:9rem;padding:.7rem .8rem;line-height:1.5;resize:vertical}
select{appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,var(--faded) 50%),linear-gradient(135deg,var(--faded) 50%,transparent 50%);
  background-position:calc(100% - 20px) 50%,calc(100% - 14px) 50%;
  background-size:6px 6px,6px 6px;background-repeat:no-repeat;padding-right:2.5rem}
input:focus,select:focus,textarea:focus{border-color:var(--primary);outline:none}
input::placeholder,textarea::placeholder{color:var(--faded);opacity:1}
.form-check{display:flex;align-items:flex-start;gap:.6rem;margin-bottom:1.5rem;font-size:.92rem}
.form-check input{margin-top:.35rem;width:1.1rem;height:1.1rem;accent-color:var(--primary);flex:0 0 auto}
.hp-field{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.form-msg{padding:1rem 1.2rem;border-radius:.3rem;margin-bottom:1.5rem;font-size:.95rem}
.form-msg.ok{background:rgba(0,170,169,.12);border:1px solid var(--primary);color:var(--secondary)}
.form-msg.err{background:#fdeded;border:1px solid #d9534f;color:#a94442}

.contact-data{list-style:none;margin:0;padding:0}
.contact-data li{display:flex;gap:1rem;align-items:flex-start;margin-bottom:1.8rem}
.contact-data .ico{
  flex:0 0 auto;width:2.6rem;height:2.6rem;border-radius:50%;
  background:rgba(0,170,169,.12);color:var(--primary);
  display:flex;align-items:center;justify-content:center;
}
.contact-data .ico svg{width:1.2rem;height:1.2rem;fill:currentColor}
.contact-data p{margin:0}
.map{width:100%;height:420px;border:0;display:block;background:var(--bg-alt)}

/* --- Condiciones de ventas ----------------------------------------------- */
.tramite{display:flex;gap:1.2rem;align-items:flex-start;margin-bottom:2rem}
.tramite img{flex:0 0 auto;width:72px;height:auto}
.tramite-titulo{
  font-family:var(--head-font);font-size:1.4rem;line-height:1.2;
  color:var(--heading);margin:0 0 .5rem;
}
.tramite p:last-child{margin-bottom:0}

/* --- Contenido legal ----------------------------------------------------- */
.legal{max-width:var(--canvas-width);margin:0 auto}
.legal h1{font-size:2.4rem;margin-bottom:2rem}
.legal h2{font-size:1.6rem;margin-top:2.5rem}
.legal h3{font-size:1.3rem;margin-top:2rem}
.legal ul,.legal ol{margin:0 0 1.5rem;padding-left:1.4rem}
.legal li{margin-bottom:.4rem}
.legal table{width:100%;border-collapse:collapse;margin-bottom:1.5rem;font-size:.92rem}
.legal table td,.legal table th{border:1px solid var(--border);padding:.6rem .8rem;text-align:left;vertical-align:top}
.legal table th{background:var(--bg-alt);font-family:var(--head-font);font-weight:500}

/* --- Pie ----------------------------------------------------------------- */
.site-footer{background:var(--footer-bg);color:var(--footer-text);font-size:.88rem;line-height:1.4}
.footer-main{max-width:var(--content-width);margin:0 auto;padding:3.5rem 1.5rem}
.footer-cols{
  display:grid;grid-template-columns:repeat(5,1fr);gap:2rem;align-items:start;
}
/* El logo ocupa la columna central, que en el original se deja libre para el.
   Las demas columnas se colocan solas a su alrededor. */
.footer-logo{
  grid-column:3;grid-row:1;
  display:flex;align-items:center;justify-content:center;
}
.footer-logo img{width:132px;max-width:100%}
.footer-cols h2{
  font-family:var(--body-font);font-size:.88rem;font-weight:600;line-height:1.4;
  color:var(--heading);text-transform:uppercase;margin:0 0 .25rem;
}
.footer-cols ul{list-style:none;margin:0;padding:0}
.footer-cols li{margin-bottom:.15rem}
.footer-cols a{color:var(--footer-text)}
.footer-cols a:hover{color:var(--primary)}
.footer-contact li{display:flex;gap:.5rem;margin-bottom:.5rem;align-items:flex-start}
.footer-contact svg{width:.95rem;height:.95rem;fill:currentColor;flex:0 0 auto;margin-top:.25rem}
.footer-last{display:flex;flex-direction:column;align-items:flex-end;gap:.6rem;text-align:right}
.socials{display:flex;gap:.7rem}
.socials a{color:var(--footer-text);display:block}
.socials svg{width:22px;height:22px;fill:currentColor;display:block}
.socials a:hover{color:var(--primary)}
.footer-ce img{width:33px}

.subfooter{background:var(--subfooter-bg);color:#fff;text-align:center;padding:10px 1.5rem;font-size:.88rem;line-height:1.2}
.subfooter p{margin:0}
.subfooter a{color:#fff;text-decoration:underline}
.subfooter a:hover{color:#fff;opacity:.85}

/* --- Boton flotante de telefono ----------------------------------------- */
.call-phone{
  position:fixed;right:15px;bottom:15px;z-index:100;
  width:65px;height:65px;border-radius:50px;
  background:var(--primary);color:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 10px 3px rgba(0,0,0,.1);
  transition:background .25s;
}
.call-phone:hover{background:var(--secondary);color:#fff}
.call-phone svg{width:30px;height:30px;fill:currentColor}

/* --- Volver arriba ------------------------------------------------------- */
.top-link{
  position:fixed;left:15px;bottom:15px;z-index:100;
  width:44px;height:44px;border-radius:50%;border:0;cursor:pointer;
  background:rgba(0,0,0,.3);color:#fff;
  display:flex;align-items:center;justify-content:center;
  opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s,background .25s;
}
.top-link.visible{opacity:1;visibility:visible}
.top-link:hover{background:var(--primary)}
.top-link svg{width:18px;height:18px;fill:currentColor}

/* --- Lightbox ------------------------------------------------------------ */
.lightbox{
  position:fixed;inset:0;z-index:200;
  background:rgba(0,0,0,.9);
  display:flex;align-items:center;justify-content:center;padding:3rem 1.5rem;
  border:0;
}
.lightbox[hidden]{display:none}
.lightbox img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.lightbox-close{
  position:absolute;top:1rem;right:1rem;
  width:44px;height:44px;border:0;border-radius:50%;cursor:pointer;
  background:rgba(255,255,255,.15);color:#fff;font-size:1.6rem;line-height:1;
}
.lightbox-close:hover{background:rgba(255,255,255,.3)}
.lightbox-caption{
  position:absolute;left:0;right:0;bottom:1.2rem;text-align:center;
  color:#fff;font-family:var(--head-font);font-size:1.2rem;
}

/* --- Aviso de cookies ---------------------------------------------------- */
.cookie-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:150;
  background:#fff;box-shadow:0 -5px 15px rgba(0,0,0,.15);
  padding:1.2rem 1.5rem;font-size:.9rem;
}
.cookie-bar[hidden]{display:none}
.cookie-bar-inner{
  max-width:var(--canvas-width);margin:0 auto;
  display:flex;align-items:center;gap:1.5rem;flex-wrap:wrap;
}
.cookie-bar p{margin:0;flex:1 1 320px}
.cookie-bar .btn{font-size:1rem;padding:.4em 1.5em}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width:1280px){
  :root{--header-height:109px;--header-sticky-height:89px}
  .site-logo img{height:89px}
  .site-header.sticky .site-logo img{height:69px}
  .hero h1{font-size:6.1rem}
  .hero-eyebrow{font-size:2.7rem}
  .prod-grid{grid-template-columns:repeat(4,1fr)}
  .prod-grid.cols-4{grid-template-columns:repeat(3,1fr)}
  .cat-grid.cols-5{grid-template-columns:repeat(3,1fr)}
  .gallery.cols-5{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:1100px){
  .nav-toggle{display:block}
  .header-socials{display:none}
  .nav{
    position:fixed;top:0;right:0;bottom:0;width:min(360px,86vw);
    background:#fff;box-shadow:var(--shadow);
    padding:calc(var(--header-height) + 1rem) 0 2rem;
    overflow-y:auto;
    transform:translateX(100%);transition:transform .3s cubic-bezier(.78,.13,.15,.86);
    margin:0;
  }
  .nav.open{transform:none}
  .nav-list{flex-direction:column;align-items:stretch;gap:0}
  .nav-list>li>a{padding:.8rem 1.5rem;border-bottom:1px solid var(--border);font-size:1rem}
  .nav-list>li.has-sub>a::after{float:right;margin-top:.7em}
  .nav-sub{
    position:static;opacity:1;visibility:visible;transform:none;
    box-shadow:none;background:var(--bg-alt);padding:0;
    display:none;
  }
  .nav-list>li.open>.nav-sub{display:block}
  .nav-sub a{padding:.7rem 2.4rem;border-bottom:1px solid var(--border)}
  .nav-cta{margin:1.2rem 1.5rem 0;display:block}
  .nav-overlay{
    position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:105;
    opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s;
  }
  .nav-overlay.open{opacity:1;visibility:visible}
  .site-header{z-index:110}
  .nav{z-index:112}
}
@media (max-width:1024px){
  html{font-size:17px}
  :root{--header-height:109px;--header-sticky-height:69px}
  .site-logo img{height:69px}
  .site-header.sticky .site-logo img{height:49px}
  .hero h1{font-size:4.1rem}
  .hero-eyebrow{font-size:2.1rem}
  .iconboxes{grid-template-columns:repeat(2,1fr);gap:2rem}
  .prod-grid,.prod-grid.cols-4{grid-template-columns:repeat(2,1fr)}
  .gallery.cols-5{grid-template-columns:repeat(2,1fr)}
  .cols>*{flex-basis:auto}
  .contact-layout{grid-template-columns:1fr;gap:2.5rem}
  .ficha{column-gap:2rem}
  .footer-cols{grid-template-columns:repeat(2,1fr)}
  .footer-logo{grid-column:1 / -1;grid-row:auto;justify-content:flex-start;margin-bottom:.5rem}
  .footer-last{align-items:flex-start;text-align:left}
  .page-head-inner{background-image:none!important;min-height:0;padding:3rem 1.5rem}
}
@media (max-width:768px){
  html{font-size:16px}
  .section{padding:3rem 1.25rem}
  .hero{
    background-image:url(../img/hero-home-mobile.webp);
    background-position:center center;
    height:auto;max-height:none;min-height:70vh;padding:3rem 0;
  }
  .hero h1{font-size:2.1rem}
  .hero-eyebrow{font-size:1.5rem}
  .cta-band .cta-title{font-size:2.4rem}
  .cta-band{padding:3.5rem 1.25rem}
  .cols{display:block}
  .cols>*+*{margin-top:2rem}
  .ficha{grid-template-columns:1fr 1fr;column-gap:1.5rem;row-gap:2rem}
  .ficha-datos{grid-column:1 / -1}
  .ficha-foto{max-width:100%}
  .prod-grid,.prod-grid.cols-4{grid-template-columns:1fr}
  .cat-grid,.cat-grid.cols-5{grid-template-columns:repeat(2,1fr)}
  .gallery,.gallery.cols-3{grid-template-columns:repeat(2,1fr)}
  h1{font-size:2.2rem}
  h2{font-size:1.8rem}
  h3{font-size:1.4rem}
}
@media (max-width:540px){
  .cat-grid,.cat-grid.cols-5{grid-template-columns:1fr}
  .iconboxes{grid-template-columns:1fr}
  .footer-cols{grid-template-columns:1fr}
}

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

@media print{
  .site-header,.site-footer,.subfooter,.call-phone,.top-link,.cookie-bar,.nav-overlay{display:none!important}
  body{padding-top:0}
}
