
:root {
  --primario: #a70e46;
  --blanco: #fff;
  --negro: #000000;
  --fuentePrincipal: "Poppins", sans-serif;

  --page-white: #ffffff;  /* mismo blanco que usas arriba */
  --footer-dark: #222222;


  /* color-1(#F9A828)
     * color-2(#07617D)
     */
    --color-1 : hsla(37, 95%, 57%, 1);
    --color-2 : hsla(194, 89%, 26%, 1);

    /* theme color variations
     */
    --color-1-lighter : hsla(37, 95%, 77%, 1);
    --color-1-light   : hsla(37, 95%, 67%, 1);
    --color-1-dark    : hsla(37, 95%, 47%, 1);
    --color-1-darker  : hsla(37, 95%, 37%, 1);
    --color-2-lighter : hsla(194, 89%, 46%, 1);
    --color-2-light   : hsla(194, 89%, 36%, 1);
    --color-2-dark    : hsla(194, 89%, 16%, 1);
    --color-2-darker  : hsla(194, 89%, 10%, 1);

    /* feedback colors
     * color-error(#ffd1d2), color-success(#c8e675), 
     * color-info(#d7ecfb), color-notice(#fff099)
     */
    --color-error                  : hsla(359, 100%, 91%, 1);
    --color-success                : hsla(76, 69%, 68%, 1);
    --color-info                   : hsla(205, 82%, 91%, 1);
    --color-notice                 : hsla(51, 100%, 80%, 1);
    --color-error-content          : hsla(359, 50%, 50%, 1);
    --color-success-content        : hsla(76, 29%, 28%, 1);
    --color-info-content           : hsla(205, 32%, 31%, 1);
    --color-notice-content         : hsla(51, 30%, 30%, 1);

    /* shades 
     * generated using 
     * Tint & Shade Generator 
     * (https://maketintsandshades.com/)
     */
    --color-black                  : #000000;
    --color-gray-19                : #161616;
    --color-gray-18                : #2c2c2c;
    --color-gray-17                : #424342;
    --color-gray-16                : #585958;
    --color-gray-15                : #6e6f6f;
    --color-gray-14                : #838585;
    --color-gray-13                : #999b9b;
    --color-gray-12                : #afb2b1;
    --color-gray-11                : #c5c8c7;
    --color-gray-10                : #dbdedd;
    --color-gray-9                 : #dfe1e0;
    --color-gray-8                 : #e2e5e4;
    --color-gray-7                 : #e6e8e7;
    --color-gray-6                 : #e9ebeb;
    --color-gray-5                 : #edefee;
    --color-gray-4                 : #f1f2f1;
    --color-gray-3                 : #f4f5f5;
    --color-gray-2                 : #f8f8f8;
    --color-gray-1                 : #fbfcfc;
    --color-white                  : #ffffff;

    /* text
     */
    --color-text                   : var(--color-gray-19);
    --color-text-dark              : var(--color-black);
    --color-text-light             : var(--color-gray-13);
    --color-placeholder            : var(--color-gray-13);

    /* buttons
     */
    --color-btn                    : var(--color-gray-9);
    --color-btn-text               : var(--color-black);
    --color-btn-hover              : var(--color-gray-11);
    --color-btn-hover-text         : var(--color-black);
    --color-btn-primary            : var(--color-1);
    --color-btn-primary-text       : var(--color-black);
    --color-btn-primary-hover      : var(--color-1-dark);
    --color-btn-primary-hover-text : var(--color-black);
    --color-btn-stroke             : var(--color-black);
    --color-btn-stroke-text        : var(--color-black);
    --color-btn-stroke-hover       : var(--color-black);
    --color-btn-stroke-hover-text  : var(--color-white);

    /* preloader
     */
    --color-preloader-bg           : var(--color-gray-19);
    --color-loader                 : var(--color-1);
    --color-loader-light           : rgba(255, 255, 255, 0.1);

    /* others
     */
    --color-body                   : white;
    --color-border                 : rgba(0, 0, 0, .08);
    --border-radius                : 3px;

      /* spacing
     * base font size: 18px 
     * vertical space unit : 32px
     */
    --base-size        : 62.5%;
    --multiplier       : 1;
    --base-font-size   : calc(1.8rem * var(--multiplier));
    --space            : calc(3.2rem * var(--multiplier));

    /* vertical spacing 
     */
    --vspace-0_125     : calc(0.125 * var(--space));
    --vspace-0_25      : calc(0.25 * var(--space));
    --vspace-0_375     : calc(0.375 * var(--space));
    --vspace-0_5       : calc(0.5 * var(--space));
    --vspace-0_625     : calc(0.625 * var(--space));
    --vspace-0_75      : calc(0.75 * var(--space));
    --vspace-0_875     : calc(0.875 * var(--space));
    --vspace-1         : calc(var(--space));
    --vspace-1_25      : calc(1.25 * var(--space));
    --vspace-1_5       : calc(1.5 * var(--space));
    --vspace-1_75      : calc(1.75 * var(--space));
    --vspace-2         : calc(2 * var(--space));
    --vspace-2_5       : calc(2.5 * var(--space));
    --vspace-3         : calc(3 * var(--space));
    --vspace-3_5       : calc(3.5 * var(--space));
    --vspace-4         : calc(4 * var(--space));
    --vspace-4_5       : calc(4.5 * var(--space));
    --vspace-5         : calc(5 * var(--space));
    --vspace-5_5       : calc(5.5 * var(--space));
    --vspace-6         : calc(6 * var(--space));


    --text-scale-ratio : 1.2;
    --text-size        : var(--base-font-size);
    --text-xs          : calc((var(--text-size) / var(--text-scale-ratio)) / var(--text-scale-ratio));
    --text-sm          : calc(var(--text-xs) * var(--text-scale-ratio));
    --text-md          : calc(var(--text-sm) * var(--text-scale-ratio) * var(--text-scale-ratio));
    --text-lg          : calc(var(--text-md) * var(--text-scale-ratio));
    --text-xl          : calc(var(--text-lg) * var(--text-scale-ratio));
    --text-xxl         : calc(var(--text-xl) * var(--text-scale-ratio));
    --text-xxxl        : calc(var(--text-xxl) * var(--text-scale-ratio));
    --text-display-1   : calc(var(--text-xxxl) * var(--text-scale-ratio));
    --text-display-2   : calc(var(--text-display-1) * var(--text-scale-ratio));
    --text-display-3   : calc(var(--text-display-2) * var(--text-scale-ratio));

    /* default button height
     */
    --vspace-btn       : var(--vspace-2);

    /*NAVBAR*/
    --nav-h: 90px;
}


html {
  /* font-size: clamp(15px, 0.9vw + 12px, 18px); */
  font-size: 62.5%;
  box-sizing: border-box;
  scroll-behavior:smooth;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
body {
  font-family: var(--fuentePrincipal);
  font-size: 1.6rem;
  line-height: 1.8;
}

html, body { overflow-x: hidden; }


h1,
h2,
h3 {
  font-weight: 900;
  margin: 2rem 0;
}
h1 {
  font-size: 5rem;
}
h2 {
  font-size: 4.6rem;
}
h3 {
  font-size: 3rem;
}
a {
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
/* Esto lo que hará es aplicar la misma clase a todas las clases del html que termienen por __contenedor
    y así se peude resolver el problema de duplicidad de header__contenedor,nucleus__contenedor, etc.  */
[class$="__contenedor"] {
  margin: 0 auto;
  width: min(120rem, 92%)
}

[class$="__heading"] {
  text-align: center;
  /* margin-bottom: 5rem; */
}

/* ------- Header ------- */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* .header__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45); 
  z-index: 1;
} */

.img-logo {
  background-image: url(../img/MATA.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  height: 30rem;
  width: 100%;
  display: flex;
  position: relative;
}

.img-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6); /* Capa negra semitransparente */
  z-index: 1;
  pointer-events: none; /* Asegura que no interfiera con el contenido */
}

.img-logo > * {
  position: relative;
  z-index: 2; /* Asegura que el texto esté por encima de la capa oscura */
}

@media  (min-width: 768px) {
  .img-logo {
    height: 55rem;
  }
}


.header__contenedor {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  color: var(--blanco);

  display: flex;
  align-items: center;
  justify-content: center;
}

.header__logo {
  width: 15rem;
  margin: 0 auto 3rem auto;
}

.header__heading {
  text-align: right;
  font-size: 3rem;
  font-size: clamp(3.2rem, 8vw, 5.2rem);
}
.header__boton {
  background-color: var(--primario);
  display: block;
  padding: 1rem;
  text-align: center;
  color: var(--blanco);
  margin-bottom: 4rem;
  border-radius: 1rem;
  transition: transform 250ms ease-in;
}

.header__boton:hover {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .header {
    background-size: cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;

  }
  .header__barra {
    display: flex;
    justify-content: space-between;
  }
  .header__logo {
    margin: 0;
  }
  .header__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
  }
  .header__heading {
    text-align: center;
    font-size: 4rem;
    line-height: 1.2;
  }
  .header__imagen {
    max-width: 30rem;
    margin: 0 auto;
  }

  .header__boton {
    display: inline-block;
    padding: 1rem 3rem;
  }
}

/* @media (min-width: 375px) {
  .header {
    background-size: 70rem;
    height: 200px;
  }
} */

@media (min-width: 475px) {
  .header {
    background-size: 70rem;
    /* height: 200px; */
  }
  .header__heading {
    text-align: center;
  }
}

 @media (min-width: 675px) {
  .header {
    height: 300px;
  }
}

/* @media (min-width: 760px) {
  .header {
    background-size: 70rem;
    height: 300px;
  }
  .header__heading {
    text-align: center;

  }
} */

@media (min-width: 992px) {
  .header {
    background-size: 70rem;
    height: 400px;
    
  }
}

@media (min-width: 1280px) {
  .header {
    background-size: 95rem;
    height: 550px;
    
  }
}



/*------- NAVEGACIÓN --------*/

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 999;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.43);
}

/* Compensación para que el contenido no quede tapado */
body { padding-top: var(--nav-h); }

.navbar__barra {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar__logo {
  width: 200px;
}

/* Contenedor */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Botón = mismo estilo que los links (subrayado animado) */
.dropdown__boton {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--negro);
  padding: .5rem;
}

/* Chevron */
.dropdown__boton .chev{
  display:inline-block;
  margin-left:8px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  padding: 4px;
  transform: rotate(45deg);
  transition: transform .25s ease;
}

/* Subrayado activo cuando está abierto */
.dropdown.is-open .dropdown__boton::after {
  width: 100%;
}

/* Chevron gira al abrir */
.dropdown.is-open .chev{ transform: rotate(-135deg); }

/* Panel: animación suave (sin display:none para animar) */
.dropdown__contenido{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;          /* o right:0; si lo quieres pegado a la derecha */
  min-width: 220px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.15);
  padding: .5rem 0;

  opacity: 0;
  transform: translateY(8px) scale(.98);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 999;
}

/* Abierto */
.dropdown.is-open .dropdown__contenido{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Items */
.dropdown__contenido a{
  display: block;
  padding: .85rem 1.2rem;
  color: var(--negro);
  text-decoration: none;
  font-size: 1.45rem;
  line-height: 1.2;
  transition: background .2s ease, color .2s ease, padding-left .2s ease;
  position: relative;
}

/* Efecto hover en items (sutil + línea a la izquierda del color corporativo) */
.dropdown__contenido a:hover{
  background: rgba(167,14,70,.08);
  color: var(--primario);
  padding-left: 1.5rem;
}
.dropdown__contenido a:hover::before{
  content:"";
  position:absolute;
  left:0;
  top:0; bottom:0;
  width:3px;
  background:#a70e46; /* tu acento */
  border-radius: 0 3px 3px 0;
}

@media (min-width: 768px) {
  .navbar__barra {
    gap: 2rem;
  }

  .navegacion {
    flex-direction: row;
    gap: 2rem;
  }

  .navegacion__link {
    color: var(--negro);
  }
}



.navegacion {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-items: center;
}
.navegacion__link {
  display: flex;
  align-items: center;
  color: var(--negro);
  position: relative;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.navegacion__link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #a70e46;
  transition: width 0.3s ease;
}

.navegacion__link:hover {
  color: var(--primario); /* tono más claro como feedback */
}

.navegacion__link:hover::after {
  width: 100%;
}

.navegacion__link,
.dropdown__boton { font-size: 16px; }


.navegacion__link--blanco {
    color: var(--blanco);   
}

@media (min-width: 768px) {
  .navegacion {
    flex-direction: row;
    gap: 2rem;
  }
}


/*-------- QUIENES SOMOS -----------*/

.quienes {
  padding: 5rem 0;
  background-color: #f9f9f9;
}

.quienes__contenedor {
  /* max-width: 120rem;
  width: 100%; */
  width: min(680px, 85%);
  margin: 0 auto;
}

.quienes__heading {
  /* font-size: 4rem; */
  color:#a70e46;
  text-align: center;
  /* margin-bottom: 3rem; */
  font-size: clamp(2.6rem, 6vw, 4rem);
  margin-bottom: clamp(1.2rem, 3.5vw, 3rem);
  line-height: 1.15;
}

.quienes__texto {
  font-size: 1.8rem;
  line-height: 1.8;
  color: #333;
  max-width: 80rem;
  margin: 0 auto;
}

.quienes__texto p {
  /* margin-bottom: 2rem; */
  margin-bottom: clamp(1.2rem, 3.5vw, 2rem);
  text-align: justify;
}

.quienes__texto p.slogan {
  text-align: center;
  width: 80%;
  margin: 0 auto;
  color: #a70e46;
}

@media (min-width: 1440px){
  .quienes__contenedor{ width: min(820px, 70%); }
  .quienes__texto{ font-size: clamp(1.8rem, 1.1vw, 2.2rem); }
}

.fade-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
  pointer-events: none; /* Evita clics cuando está invisible */
}

.fade-scroll.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


/* ------- Nucleus -------  */
.nucleus {
  margin-top: 3rem;
}

.nucleus__grid {
  display: flex;
  flex-direction: column-reverse;
}

@media (min-width: 768px) {
  .nucleus__grid {
    display: grid
;
        grid-template-columns: 1fr;
        column-gap: 5rem;
        align-items: center;
        justify-content: center;
        padding: 50px;
        justify-items: end;
  }
}

.listado__elemento {
  box-shadow: 0px 0px 15px 3px rgb(0 0 0 / 0.15);
  padding: 2rem;
  margin-bottom: 5rem;
  border-radius: 2rem;
  transition: transform 250ms ease-in;
  background-color: var(--blanco);
}
.listado__elemento:hover {
  transform: scale(1.1);
}

.listado__heading {
  font-size: 3rem;
  color: var(--primario);
  margin: 0;
}
.listado__texto {
  margin: 0;
  font-size: 2rem;
}

.listado__numero {
  color: var(--primario);
  font-size: 6rem;
  margin: 0;
  font-weight: 900;
  text-align: center;
}

@media (min-width: 768px) {
  .listado__numero {
    flex-basis: 20rem;
    text-align: right;
    font-size: 4rem;
  }
}

@media (min-width: 1440px){
  .listado{ width: min(1100px, 70%); }
  .listado__heading{ font-size: clamp(2.2rem, 1.4vw, 3.6rem); }
  .listado__texto{   font-size: clamp(1.8rem, 1.1vw, 2.4rem); }
}


/* ------- COMO TRABAJAMOS -------  */

.trabajamos__titulo {
  font-size: clamp(2.6rem, 6vw, 4rem);
  margin-bottom: 1rem;
  color: #a70e46;
  text-align: center;
  margin-bottom: 4%;
}

.trabajamos__subtitulo {
  font-size: 1.8rem;
  margin-bottom: 4rem;
  color: #444;
}


.iconos__fila{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2.2vw, 28px);
  justify-items: center;
  align-items: start;
  width: min(1100px, 94%);
  margin: 0 auto clamp(24px, 5vw, 48px);
}

@media screen and (max-width: 768px) {
  .iconos__fila {
    grid-template-columns: repeat(2, 1fr);
  }
  
}

.icono__card{
  width: 100%;
  max-width: 260px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;                     /* separa imagen y texto */
  padding: clamp(6px, .9vw, 10px); /* "aire" interior para el zoom */
  border-radius: 14px;
  background: #fff;              /* opcional: da sensación de tarjeta */
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
  will-change: transform;
}

.icono__card:hover,
.icono__card:focus-visible{
  transform: translateY(-6px) scale(1.03); /* crece TODO el bloque */
  box-shadow: 0 16px 36px rgba(0,0,0,.18);
  filter: saturate(1.02);
  outline: none;
}

.icono__card img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition: transform .35s ease;  /* sutil */
}

.icono__card:hover img,
.icono__card:focus-visible img{
  transform: scale(1.02);    /* suave (o quítalo si no lo quieres) */
}


.icono__card p{
  margin: 0;
  text-align: center;
  font-weight: 800;
  color: #333;
  font-size: clamp(1.4rem, 1.5vw, 1.9rem);
  line-height: 1.25;
}

/* Motion friendly */
@media (prefers-reduced-motion: reduce){
  .icono__card,
  .icono__card img{ transition: none; }
  .icono__card:hover{ transform: none; }
}

/* Estado base: oculto y desplazado */
.icon-row-left,
.icon-row-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.icon-row-left {
  transform: translateX(-100px);
}

.icon-row-right {
  transform: translateX(100px);
}

/* Cuando es visible */
.icon-row.visible {
  opacity: 1;
  transform: translateX(0);
}



/* Responsive */
@media (max-width: 768px) {
  .icono__card {
    width: 85%;
  }
}

@media (max-width: 480px) {
  .icono__card {
    width: 90%;
  }
}

/* ------- Seguridad ------- */
.seguridad {
  background-color: var(--color-white);
  padding-top: 5%;
  position: relative;
  margin-bottom: 0; 
  overflow: hidden;
}

.seguridad > .nucleus__contenedor {
  position: relative;
  z-index: 2;
}

/* .seguridad::before {
  content: "";
  position: absolute;
  top: -10rem;
  left: 50%;
  transform: translateX(-50%);
  width: 200vw;
  height: 20rem;
  background-color: var(--blanco);
  border-bottom-left-radius: 100% 100%;
  border-bottom-right-radius: 100% 100%;
  z-index: 1;
} */

.container {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: black;
}

@supports not (height: 100svh) {
  .container { height: 100vh; }
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.overlay {
    position: absolute;
    z-index: 10;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

@media (min-width: 768px) {
  .seguridad__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 5rem;
    align-items: center;
  }
}

/* Permite interacción solo en la lista, manteniendo el overlay sin clics */
.overlay .listado { pointer-events: auto; }

/* Contenedor de tarjetas: centrado y espaciado */
.listado {
  width: min(980px, 92%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1.6rem, 2vw, 3rem);
}


[aria-hidden="true"] svg { filter: drop-shadow(0 -4px 10px rgba(0,0,0,.15)); }


/* TARJETA: glassmorphism con toque metálico */
.listado__elemento {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: clamp(12px, 1.5vw, 18px);
  padding: clamp(1.6rem, 2vw, 3rem) clamp(1.8rem, 3vw, 3.2rem);
  color: #fff;
  text-align: left;
  box-shadow: 0 12px 32px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.18);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* Brillo diagonal muy sutil que recuerda a un acabado pulido */
.listado__elemento::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(80% 80% at 110% -10%,
              rgba(255,255,255,.20) 0%,
              rgba(255,255,255,0) 60%);
  pointer-events: none;
}

/* Hover sutil (si lo quieres más discreto, baja el translateY o quítalo) */
.listado__elemento:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.35);
  box-shadow:
    0 24px 60px 0 rgba(0,0,0,0.60),
    0 2px 12px 0 rgba(167,14,70,0.18),
    inset 0 2px 0 rgba(255,255,255,0.28);
}

/* Título: línea icono + tipografía fuerte */
.listado__heading {
  margin: 0 0 .6rem 0;
  font-size: clamp(1.8rem, 2vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  gap: .8rem;
}

/* Reemplaza el ">" textual por un marcador redondo corporativo */
.listado__heading::before {
  content: "";
  width: .85em;
  height: .85em;
  min-width: .85em;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ff85a8 0%, #a70e46 60%, #670a2b 100%);
  box-shadow: 0 0 10px rgba(255, 90, 140, .65);
}

/* Cuerpo de texto */
.listado__texto {
  margin: 0;
  color: rgba(255,255,255,.92);
  font-size: clamp(1.5rem, 1.6vw, 2.2rem);
  line-height: 1.6;
}

/* Responsive pequeños márgenes verticales */
@media (max-width: 480px) {
  .listado { gap: 1.6rem; }
}


.seguridad .listado__elemento {
  transform: translateY(16px);
  opacity: 0;
}

.seguridad.is-inview .listado__elemento {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .6s ease, border-color .25s ease, box-shadow .25s ease;
}

/* retardo en cascada para cada tarjeta */
.seguridad.is-inview .listado__elemento:nth-child(1) { transition-delay: .05s; }
.seguridad.is-inview .listado__elemento:nth-child(2) { transition-delay: .12s; }
.seguridad.is-inview .listado__elemento:nth-child(3) { transition-delay: .19s; }

/* opcional: leve zoom/vignette del fondo al entrar */
.seguridad .container { transition: transform .8s ease, filter .8s ease; }
.seguridad.is-inview .container { transform: scale(1.01); filter: saturate(1.05); }

/* --------- ESLOGAN FINAL --------- */
/* .frase-parallax {
  position: relative;
  background-image: url('../img/Fondo_Coche.jpg'); 
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden; 
} */

.frase-parallax{
  position: relative;
  background-image: url('../img/Fondo_Coche.jpg');
  background-size: cover;
  background-position: center;
  /* “fixed” queda chulo pero en iOS puede saltar; lo controlamos abajo */
  background-attachment: fixed;

  min-height: clamp(220px, 32vh, 480px);   /* más bajo en móvil, sin quedarse ridículo */
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 32px);
  text-align: center;
  overflow: hidden;

  box-shadow: 14px 14px 20px 0 rgba(20, 20, 20, 0.3);
}

/* .frase-parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.747);
  z-index: 1;
} */

.frase-parallax::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
              to bottom,
              rgba(0,0,0,.65) 0%,
              rgba(0,0,0,.50) 40%,
              rgba(0,0,0,.65) 100%);
  z-index: 1;
}

/* .frase-parallax__texto {
  position: relative;
  z-index: 2;
  font-size: 2.8rem;
  color: white;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.9);
  padding: 0 2rem;
  font-family:Arial, Helvetica, sans-serif
} */

.frase-parallax__texto{
  position: relative;
  z-index: 2;
  margin: 0;
  /* ancho de línea óptimo ~ 10–22 palabras */
  max-width: min(28ch, 92vw);

  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #fff;

  /* tamaño fluido:
     - min 2rem en móviles muy pequeños
     - sube con el viewport
     - tope 4.2rem en pantallas grandes
  */
  font-size: clamp(2rem, 4.5vw, 4.2rem);

  /* micro-ajustes para que el navegador balancee cortes de línea */
  text-wrap: balance;
  hyphens: auto;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
  padding-inline: clamp(8px, 2vw, 12px);
}

@media (min-width: 1440px){
  .frase-parallax__texto{
    font-size: clamp(3.2rem, 2.2vw, 4.6rem);
    max-width: 30ch;
  }
}

/* iOS & algunos Android: evitar jitter del background-attachment: fixed */
@supports (-webkit-touch-callout: none) {
  .frase-parallax{ background-attachment: scroll; }
}

/* Accesibilidad: si el usuario prefiere menos movimiento, desactivamos el parallax fijo */
@media (prefers-reduced-motion: reduce){
  .frase-parallax{ background-attachment: scroll; }
}

/* --------- Footer --------- */

.footer-contacto{
  --space: clamp(16px, 2.5vw, 28px);
  --gap: clamp(16px, 2vw, 24px);
  --icon-size: 1.9rem;

  background:#222;
  color:#fff;
  padding: calc(var(--space) * 1) 3em;
  font-size: clamp(1.5rem, 1.5vw, 1.7rem);
}

.footer-container {
  display:grid;
  grid-template-columns: 1fr;
  gap: clamp(35px, 4vw, 48px);
  max-width: 120rem;
  margin: 0 auto;
  align-items: start;
}

@media (min-width: 900px){
  .footer-container{
    grid-template-columns: minmax(316px, 430px) minmax(320px, 1fr);
    gap: clamp(32px, 5vw, 64px);
  }
}

.footer-title{
  color:#f0c040;
  font-weight:800;
  font-size: clamp(2.2rem, 2.2vw, 2.6rem);
  margin: 0 0 var(--gap) 0;
}

.footer-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap: clamp(10px, 1.2vw, 14px);
}

.footer-row{
  display:grid;
  grid-template-columns: var(--icon-size) 1fr;
  align-items: start;
  column-gap: 12px;
}

.footer-icon{
  color:#f0c040;
  font-size: var(--icon-size);
  line-height: 1.2;
  margin-top: .2rem; /* ajusta vertical de icono */
}

.footer-address{ 
  font-style: normal; 
  line-height: 1.6;
}

.footer-textline a{
  color:#fff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.footer-textline a:hover{ 
  color:#f0c040; 
  border-color:#f0c040; 
}

/* MAPA */
.footer-map{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;            /* mantiene proporción */
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0,0,0,.35);
}

.map-iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}

.map-link{
  display:inline-block;
  margin-top: .8rem;
  font-size: 1.4rem;
  color:#ccc;
  text-decoration: none;
  border-bottom: 1px dashed #555;
}
.map-link:hover{ color:#f0c040; border-color:#f0c040; }

/* Línea legal inferior */
.footer-bottom{
  text-align:center;
  margin-top: calc(var(--space) * 1.25);
  padding-top: var(--space);
  border-top: 1px solid #444;
  font-size: 1.4rem;
  color:#ccc;
}


.s-header {
  display: none;
}

/* En pantallas <= 768px (tablet y móvil), mostramos .s-header y ocultamos .navbar */
@media (max-width: 768px) {
  .navbar {
    display: none;
  }

  .s-header {
    display: block;
  }
}


.s-pagewrap {
    --header-height : 7.2rem;

    display         : flex;
    flex-direction  : column;
    min-height      : 100%;
    overflow        : hidden;
    position        : relative;
}


/* --------------------------------------------------------------------
 * ## logo
 * -------------------------------------------------------------------- */
.s-header__logo {
    z-index  : 102;
    position : absolute;
    top      : 3.2rem;
    left     : 2.8rem;
}

.s-header__logo a {
    display : block;
    margin  : 0;
    padding : 0;
    outline : 0;
    border  : none;
}

.s-header__logo img {
    width          : 40px;
    margin         : 0;
    vertical-align : bottom;
}

@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
}


/* ------------------------------------------------------------------- 
 * ## menu toggle
 * ------------------------------------------------------------------- */
.s-header__menu-toggle {
    --menu-toggle-height : 4.2rem;

    background-color: #000000;

    z-index              : 102;
    padding-right        : calc(var(--menu-toggle-height) + .2rem);
    padding-left         : 1.2rem;
    transition           : all 0.3s ease-in-out;
    position             : fixed;
    top                  : 2.8rem;
    right                : 2.8rem;
}

.s-header__menu-toggle.opaque {
    background-color : #00000063;
    border-radius: 10px;
}

.s-header__menu-text {
    display        : block;
    /* font-family    : var(--font-2); */
    font-weight    : 400;
    font-size      : 1.3rem;
    line-height    : var(--menu-toggle-height);
    text-transform : uppercase;
    letter-spacing : 0.3em;
    color          : white;
}

.s-header__menu-icon {
    display          : block;
    height           : 2px;
    width            : 2.4rem;
    background-color : white;
    position         : absolute;
    top              : 50%;
    right            : .1rem;
    margin-top       : -1px;
}

.s-header__menu-icon::before,
.s-header__menu-icon::after {
    content          : '';
    width            : 100%;
    height           : 100%;
    background-color : inherit;
    position         : absolute;
    left             : 0;
}

.s-header__menu-icon::before {
    top : -0.8rem;
}

.s-header__menu-icon::after {
    bottom : -0.8rem;
}

/* --------------------------------------------------------------------
 * ## off-canvas menu
 * -------------------------------------------------------------------- */
.s-header__nav {
    z-index                    : 200;
    background                 : #0C0C0C;
    color                      : rgba(255, 255, 255, 0.25);
    font-family                : var(--font-2);
    font-size                  : 1.5rem;
    line-height                : 2.8rem;
    padding                    : var(--vspace-1_25) var(--vspace-1);
    height                     : 100%;
    width                      : 300px;
    transform                  : translateX(100%);
    overflow-y                 : auto;
    transition-property        : transform;
    transition-duration        : 0.4s;
    transition-timing-function : cubic-bezier(0.215, 0.61, 0.355, 1);
    position                   : fixed;
    right                      : 0;
    top                        : 0;
}

.s-header__nav a,
.s-header__nav .text-highlight {
    color : rgba(255, 255, 255, 0.5);
}

.s-header__nav a:focus,
.s-header__nav a:hover {
    color : white;
}

.s-header__nav h3 {
    margin-top    : 0;
    font-weight   : 600;
    font-size     : var(--text-md);
    line-height   : 3rem;
    color         : white;
    margin-bottom : var(--vspace-1_5);
}

.s-header__nav-list {
    list-style    : none;
    margin-left   : 0;
    margin-bottom : var(--vspace-1_5);
    font-family   : var(--font-2);
    font-size     : 1.5rem;
    line-height   : 1;
}

.s-header__nav-list li {
    padding-left : 0;
    border-top   : 1px solid rgba(255, 255, 255, 0.025);
}

.s-header__nav-list li:last-child {
    border-bottom : 1px solid rgba(255, 255, 255, 0.025);
}

.s-header__nav-list li a {
    display : block;
    padding : var(--vspace-0_5) 0;
}

.s-header__nav-close-btn {
    display          : block;
    height           : 3rem;
    width            : 3rem;
    border-radius    : 3px;
    background-color : rgba(255, 255, 255, 0.05);
    border-radius    : 50%;
    font             : 0/0 a;
    text-shadow      : none;
    color            : transparent;
    position         : absolute;
    top              : var(--vspace-1_25);
    right            : var(--vspace-1);
}

.s-header__nav-close-btn span::before,
.s-header__nav-close-btn span::after {
    content          : "";
    display          : block;
    height           : 2px;
    width            : 12px;
    background-color : white;
    margin-top       : -1px;
    position         : absolute;
    top              : 50%;
    left             : 9px;
}

.s-header__nav-close-btn span::before {
    transform : rotate(-45deg);
}

.s-header__nav-close-btn span::after {
    transform : rotate(45deg);
}

/* menu is open 
 */
.menu-is-open .s-header__nav {
    transform                  : translateX(0);
    visibility                 : visible;
    -webkit-overflow-scrolling : touch;
}

/* --------------------------------------------------------------------
 * ## header social
 * -------------------------------------------------------------------- */
.s-header__social {
    list-style : none;
    display    : flex;
    margin     : 0;
}

.s-header__social li {
    padding-left : 0;
    margin-right : 1rem;
    line-height  : 1;
}

.s-header__social li:last-child {
    margin-right : 0;
}

.s-header__social svg {
    height : 2.4rem;
    width  : 2.4rem;
}

.s-header__social svg path {
    fill       : rgba(255, 255, 255, 0.15);
    transition : all 0.3s ease-in-out;
}

.s-header__social a:focus svg path,
.s-header__social a:hover svg path {
    fill : white;
}

/* ------------------------------------------------------------------- 
 * responsive:
 * site-header
 * ------------------------------------------------------------------- */
@media screen and (max-width: 600px) {
    .s-header__menu-toggle {
        right : 2.4rem;
    }
}

@media screen and (max-width: 400px) {
    .s-header__logo {
        left : 2.4rem;
    }

    .s-header__nav {
        width : 70vw;
    }
}



@media (max-width: 768px) {
  .s-header__menu-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
    background-color : #00000063;
    border-radius: 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.7rem;
    display: flex;
    gap: 15px;
  }

  .s-header__menu-icon {
    background-color: white;
    height: 3px;
    width: 24px;
    position: relative;
  }

  .s-header__menu-icon::before,
  .s-header__menu-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: white;
  }

  .s-header__menu-icon::before {
    top: -8px;
  }

  .s-header__menu-icon::after {
    bottom: -8px;
  }

  .menu-is-open .s-header__menu-toggle {
    display: none;
  }

}

/* .s-header__brand{
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0));
  left: calc(16px + env(safe-area-inset-left, 0));
  z-index: 201;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 6px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
} */

.s-header__brand img{
  border-radius: 15px;
  display:block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.15));
}

/* Ocultarlo en escritorio (ya tienes navbar de desktop) */
@media (min-width: 769px){
  .s-header__brand{ display: none; }
}

/* Mantener el botón a la derecha sin solaparse */
@media (max-width: 768px){
  .s-header__menu-toggle{
    right: calc(16px + env(safe-area-inset-right, 0));
    top:   calc(16px + env(safe-area-inset-top, 0));
  }
}

/* Asegurar que el drawer no tape el logo */
.s-header__nav{ z-index: 200; }

.s-header__brand{
  position: fixed;
  top: calc(30px + env(safe-area-inset-top, 0));
  left: calc(10px + env(safe-area-inset-left, 0));
  z-index: 201;
}
.s-header__brand img{
  border-radius: 15px;
  width: 90px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}