/* elementos */

/* * {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-sizing: border-box;
} */

body {
  font-family: 'Open Sans', sans-serif;
  color: hsl(220, 50%, 8%);
  background-color: hsl(0, 0%, 100%);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

html, body {
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  opacity: 0;
  line-height: 1.4;
}

body.visible {
  opacity: 1;
}

main {
  flex: 1;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  margin-top: 0px;
  align-content: center;
}

p {
  line-height: 1.7;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav ul li a:hover {
  color: #d42233;
}

header nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.2em;
}

a .flecha-submenu {
  margin-top: 4px;
  vertical-align: middle;
}

i {
    margin-right: 5px;
}

.skeleton-container {
  display: grid;
  gap: 15px;
}

.error-global {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #b30000;
  color: white;
  padding: 12px 16px;
  border-radius: 6px;
  z-index: 9999;
}

.error-global.hidden {
  display: none;
}

/* =========================
   BASE MODAL (GLOBAL)
========================= */

body.modal-open {
  overflow: hidden;
  height: 100vh; /* 🔥 evita scroll fantasma */
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: none;
  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, 0.6); /* 🔥 oscurece fondo */
  backdrop-filter: blur(4px);     /* 🔥 blur real */
  webkit-backdrop-filter: blur(4px);

  z-index: 19999;
}

/* Scroll interno */
.modal-content {
  background-color: #ffffff;
  padding: 20px;
  max-height: 90vh;
  max-width: 600px; /* 🔥 límite consistente */
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal; /* 🔥 clave */
  overflow-y: auto;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.section-divider {
  width: 300px;
  height: 3px;
  background-color: #ab5563;
  margin: 25px auto 25px auto;
}

.section-divider-L {
  width: 400px;
  height: 3px;
  background-color: #ab5563;
  margin: 25px auto 25px auto;
}

/*-----------------------------------------------------------------*/












/* id */

#div1 {
    align-content: center;
    min-height: 600px;
    background-color: #ab5563;
    color: #ffffff;
}

#div1 h1, #div1 h2, #div1 h3 {
    padding-left: 3%;
}

#div2 {
    min-height: 500px;
    align-items: center;
}

#div3 {
    background-color: #030f27;
    display: flex;
}

#div4 {
    height: 1100px;
    background-color: #ab5563;
    align-items: center;
    margin: 0 auto;
    padding: 0 20px;
}


.foot .informacion span, .foot .informacion a {
    display: flex;
    color: #ffffff;
    align-items: center;
    margin-top: 0;
}

.foot .informacion span i, .foot .informacion a i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.08);
  margin-right: 10px;
  transition: all 0.25s ease;
}

#loader {
  position: fixed;
  inset: 0;
  background-color: #030f27;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;

  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}


/*-----------------------------------------------------------------*/



.brushed-metal {
  background: 
    linear-gradient(90deg, rgba(255,255,255,0.25), rgba(255,255,255,0.05)),
    repeating-linear-gradient(
      90deg,
      #b8b8b8,
      #b8b8b8 1px,
      #d4d4d4 1px,
      #d4d4d4 2px
    );
  border: 2px solid #2a2f36;
  border-radius: 8px;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.5);
}


/* Tornillos */
.brushed-metal::before,
.brushed-metal::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: #cfcfcf;
  border: 2px solid #333;
  border-radius: 50%;
  box-shadow: inset 0 0 3px #666;
}

/* Tornillo superior izquierdo */
.brushed-metal::before {
  top: 8px;
  left: 8px;
}

/* Tornillo superior derecho */
.brushed-metal::after {
  top: 8px;
  right: 8px;
}

/* Tornillos de abajo */
.brushed-metal span.corner {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #cfcfcf;
  border: 2px solid #333;
  border-radius: 50%;
  box-shadow: inset 0 0 3px #666;
}

.brushed-metal .bottom-left {
  bottom: 8px;
  left: 8px;
}

.brushed-metal .bottom-right {
  bottom: 8px;
  right: 8px;
}

/* PANEL METÁLICO INDUSTRIAL PARA FORMULARIOS */
.panel-metal {
  position: relative;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0)),
    repeating-linear-gradient(
      90deg,
      #b8b8b8,
      #b8b8b8 1px,
      #d4d4d4 1px,
      #d4d4d4 2px
    );
  border: 2px solid #1c2230;
  border-radius: 14px;
  padding: 2rem;
  box-shadow:
    inset 0 0 8px rgba(0,0,0,0.4),
    0 10px 25px rgba(0,0,0,0.4);
}

/* TORNILLOS DECORATIVOS (Discrete) */
.panel-metal::before,
.panel-metal::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: #cfcfcf;
  border: 2px solid #333;
  border-radius: 50%;
  box-shadow: inset 0 0 3px #666;
}

/* Superior izquierdo */
.panel-metal::before {
  top: 10px;
  left: 10px;
}

/* Superior derecho */
.panel-metal::after {
  top: 10px;
  right: 10px;
}

/* Abajo */
.panel-metal span.corner-bottom-left,
.panel-metal span.corner-bottom-right {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #cfcfcf;
  border: 2px solid #333;
  border-radius: 50%;
  box-shadow: inset 0 0 3px #666;
}

.panel-metal span.corner-bottom-left {
  bottom: 10px;
  left: 10px;
}

.panel-metal span.corner-bottom-right {
  bottom: 10px;
  right: 10px;
}

/* INPUTS con estética industrial */
.panel-metal input,
.panel-metal textarea,
.panel-metal select {
  background-color: #f6f6f6;
  border: 2px solid #6c6c6c;
  border-radius: 6px;
  padding: 10px;
  font-size: 1rem;
  transition: border-color .25s, box-shadow .25s;
}

.panel-metal input:focus,
.panel-metal textarea:focus,
.panel-metal select:focus {
  border-color: #ab556a;
  box-shadow: 0 0 6px rgba(171, 85, 106, 0.7);
}

/* BOTÓN */
.panel-metal button {
  align-self: center;
  background: #ab556a;
  padding: 12px;
  border-radius: 6px;
  border: none;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: .3s;
}

.panel-metal a {
  align-self: center;
  background: #ab556a;
  padding: 12px;
  border-radius: 6px;
  border: none;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: .3s;
}

.panel-metal .botones {
    display: flex;
    align-self: center;
    width: 30%;
}

.panel-metal button:hover {
  background: #8e4457;
}


/*-----------------------------------------------------------------*/



/* field area */

.preview-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.upload-btn {
  background: #ab556a;
  color: white;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
  width: 100%;
}

.upload-btn:hover {
  background-color: #8e4457;
}

.upload-btn input {
  display: none;
}

.fields-area {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fields-area input,
.fields-area textarea,
.fields-area select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  outline: none;
  font-size: 1rem;
}

.input-group {
  position: relative;
  width: 100%;
}

.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #888;
  border-radius: 6px;
  background: #fdfdfd;
  outline: none;
  font-size: 1rem;
  transition: 0.3s;
}

.input-group textarea {
  min-height: 90px;
  resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #ab556a;
  box-shadow: 0 0 5px rgba(171,85,106,0.5);
}

.input-group label {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #666;
  pointer-events: none;
  transition: 0.3s;
  background: #fff;
  padding: 0 4px;
}

/* Cuando el input tiene texto o está en foco */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  font-size: 0.8rem;
  color: #ab556a;
}


.submit-btn {
  align-self: center;
  width: 50%;
}


/*-----------------------------------------------------------------*/



/* Header */

#headerPrincipal {
  width: 100%;
  max-width: 100vw;
  height: 80px;
  position: fixed;
  top: 0;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 25px;

  background: #ffffff;

  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  box-sizing: border-box;

  z-index: 9999;

  transition: transform 0.3s ease, background-color 0.3s ease;
}

#headerPrincipal.visible {
  transform: translateY(0);
}

#headerEspaciador {
  height: 80px;
}


#headerPrincipal a {
  color: #030f27;
}

.flecha-submenu {
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
  margin-left: 5px;
  vertical-align: middle;
  font-size: 12px;
}

.has-submenu:hover .flecha-submenu {
  transform: rotate(-90deg);
}

.has-submenu.submenu-abierto > .submenu {
  display: block;
}

.headerElementos {
  position: absolute;
  left: 51%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  transform: translateX(-50%);
}

.headerElementos nav {
  padding: 10px 20px;
  flex: 1;
}

.headerElementos nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}


.headerAcciones {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.menu li a {
  padding: 3px;
}

.menu > li > a {
  font-weight: 600;
  font-size: 0.95rem;
}

.submenu li a {
  font-weight: 400;
  font-size: 0.9rem;
  opacity: 0.85;
}


/* === Estilo del botón hamburguesa === */
.menu-toggle {
  display: none; /* oculto por defecto */
  font-size: 28px;
  background: none;
  border: none;
  color: #a91c29;
  cursor: pointer;
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo img {
    border-radius: 100px;
    height: 50px;
    margin-right: 20px;
    background-color: #ffffff;
}

.logo span {
    font-weight: bold;
    font-size: 20px;
    color: #d42233;
}

.menu {
  list-style: none;
  display: flex;
  margin: 10px 0;
  gap: 14px;
}

.menu li {
  position: relative;
  display: flex;
  align-items: center;
}

/* Submenús de primer nivel */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  border-radius: 10px;
  background-color: #ffffff;
  padding: 10px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  min-width: 200px; /* opcional para uniformidad */
}

/* Mostrar submenú de primer nivel al pasar el mouse */
.menu li:hover > .submenu {
  display: block;
} 

.submenu .submenu {
  top: 0;
  left: 100%;
  display: none;
} 

.submenu li:hover > .submenu {
  display: block;
}

.resaltar {
  color: #d42233 !important;
}

.ingresar {
  background-color: #d42233;
  font-weight: bold;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 13px;
  margin-left: 5px;
  color: #ffffff !important;
}



/*-----------------------------------------------------------------*/



/* Footer */

footer {
  padding: 20px 4%;
  background-color: #ffffff;
  color: #030f27;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 2px solid #e0e0e0;
}

/* Estilos de cada columna */
.foot {
  flex: 1;
}

#footLogo {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: start;
}

#footLogo img {
  margin-top: 15px;
  width: 100%;
  max-width: 150px;
  height: auto;
}

.foot h3,
#footLogo h3 {
  color: #030f27;
  position: relative;
  margin-bottom: 12px;
}

.foot h3 {
    color: #030f27;
}

.foot h3::after,
#footLogo h3::after {
  content: "";
  width: 70%;
  height: 3px;
  background-color: #d42233;
  position: absolute;
  left: 0;
  bottom: -6px;
  border-radius: 2px;
}

#footLogo img {
  margin: 20px 0;
}

.foot .informacion span,
.foot .informacion a {
  color: #030f27;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.foot .informacion span:hover,
.foot .informacion a:hover {
  transform: translateX(4px);
  color: #d42233;
}

.foot .informacion span i {
  margin-right: 6px;
  transition: color 0.3s ease;
}


@media (max-width: 1000px) {
  .footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 25px;
  }

  #footLogo {
    flex: 0 0 100%;
  }
  
  .foot h3::after,
  #footLogo h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .foot {
    flex: 0 0 45%;
  }
  
  .foot .informacion {
      align-items: center;
  }
}



/*-----------------------------------------------------------------*/





/* class */








/* Botones */


.boton-rojo {
  background-color: #d42233;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 7px;
  margin: 7px;
}

.boton-azul {
  background-color: #030f27;
  color: white;
  font-weight: bold;
  padding: 5px;
  border: none;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-block;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
  line-height: normal;
}

.boton-rojo:hover {
  background-color: #b91d2c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 34, 51, 0.3);
}



/*-----------------------------------------------------------------*/




/* Loader */

.loader-content {
  text-align: center;
  color: white;
}

.loader-content img {
  width: 150px;
  margin-bottom: 15px;
}

.loader-content p {
  margin-top: 20px;
  font-size: 18px;
}



/*-----------------------------------------------------------------*/





/* Modal de busqueda*/


.modal-buscador {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  min-width: 300px;
  text-align: center;
}

.modal-buscador input {
  padding: 10px;
  width: 70%;
  margin-bottom: 15px;
}

.modal-buscador button {
  padding: 10px 20px;
  background-color: #d42233;
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 9999px;
  cursor: pointer;
}

.modal-buscador button:hover {
  background-color: #030f27;
}

.resultado-producto {
  background-color: #ffffff;
  border: 1px solid #ccc;
  padding: 15px;
  margin: 10px auto;
  width: 80%;
  max-width: 500px;
  text-align: center;
  display: flex;
  align-items: center;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.resultado-producto:hover {
  transform: scale(1.02);
}

.resultado-producto button {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #424B5D;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.resultado-producto button:hover {
  background-color: #030f27;
}

.resultados-scroll {
  max-height: 300px;
  overflow-y: auto;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oculto {
  display: none !important;
}




/*-----------------------------------------------------------------*/









/* Login y Registro*/


/* Login */
.overlay-login {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Caja del login */
.login-contenedor {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  width: 320px;
  max-width: 90%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  text-align: center;
  animation: aparecer 0.3s ease;
}

.login-contenedor h2 {
  margin-bottom: 1rem;
}



/* Registrar */

.overlay-registro {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/*Caja del registro*/
.registro-contenedor {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  width: 320px;
  max-width: 90%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  text-align: center;
  animation: aparecer 0.3s ease;
}

.registro-contenedor h2 {
  margin-bottom: 1rem;
}

.campo {
  margin-bottom: 1rem;
  text-align: left;
}

.campo label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.campo input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.acciones {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}


/*-----------------------------------------------------------------*/


/* notificaciones */






/*-----------------------------------------------------------------*/


/*parallax: imagenes de fondo*/


.parallax1 {
  padding: 20px 0;
  background-image: url('../imagenes/fondoShafel.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 400px;
}

.parallax2 {
  padding: 20px 0;
  background-image: url('../imagenes/fondoShafel2.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 400px;
}

.parallax3 {
  padding: 20px 0;
  background-image: url('../imagenes/fondoShafel3.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 400px;
}

.parallax4 {
  padding: 20px 0;
  background-image: url('../imagenes/shafelFondo4.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 400px;
}

.parallaxG {
  padding: 20px 0;
  color: #ffffff;
  background-image: url('../imagenes/fondoShafel.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 780px;
}


/*-----------------------------------------------------------------*/




/* subcripcion */

.subcripcion {
  background-color: #424B5D;
}

.subcripcion * {
  margin: 0px 0px 10px 0px;
}

.subcripcion input {
  width: 80%;
}

/*-----------------------------------------------------------------*/





/* efectos y iconos */

.spinner {
  border: 8px solid #ffffff;
  border-top: 8px solid #d42233;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  margin: 10px auto 0 auto;
  animation: girar 1s linear infinite;
}

.lupa {
  color: #d42233;
  margin-top: 5px;
  font-size: 25px;
}

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.toast {
  min-width: 260px;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 12px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;

  color: white;
  font-size: 14px;
  font-weight: 500;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 10px 25px rgba(0,0,0,0.25);

  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

/* Animación entrada */
.toast.show {
  opacity: 1;
  transform: translateX(0);
}

/* Botón cerrar */
.toast-close {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.7;
}

.toast-close:hover {
  opacity: 1;
}

/* Variantes */
.toast.success {
  background: rgba(40, 167, 69, 0.9);
}

.toast.error {
  background: rgba(220, 53, 69, 0.9);
}

.toast.info {
  background: rgba(0, 123, 255, 0.9);
}

.toast-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-icon {
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}


/*-----------------------------------------------------------------*/






@keyframes girar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Para escritorio → mostrar hacia abajo */
@media (min-width: 1001px) {
  .has-submenu:hover > .submenu {
    display: block;
  }

  .submenu li {
    position: relative;
  }

  .submenu .submenu {
    left: 100%;
    top: 0;
  }
  
  .boton-rojo {
    max-width: 220px;
  }
}

@media (max-width: 1100px) {
  /* HEADER */
  /* 🔥 IMPORTANTE: resetear el centrado */
  .headerElementos {
    position: static;
    transform: none;
  }

  /* Botón hamburguesa */
  .menu-toggle {
    display: block;
    margin-right: 15px;
  }

  /* NAV como panel lateral */
  nav {
    position: fixed;
    top: 80px; /* debajo del header */
    left: 0;
    width: 260px;
    height: calc(100vh - 80px);

    background: #ffffff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);

    display: flex;
    flex-direction: column;

    transform: translateX(-100%);
    transition: transform 0.3s ease;

    z-index: 998;
  }

  nav.show {
    transform: translateX(0);
  }

  /* Menú vertical */
  nav ul.menu {
    flex-direction: column;
    padding: 10px;
    gap: 0;
  }

  nav ul.menu li {
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }

  nav ul.menu li a {
    display: block;
    padding: 12px 15px;
    width: 100%;
  }

  /* Submenús */
  .submenu {
    position: static;
    display: none;
    padding-left: 15px;
    box-shadow: none;
  }

  .submenu.visible {
    display: block;
  }

  /* Flecha */
  .has-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .has-submenu.open .flecha-submenu {
    transform: rotate(0deg);
  }

  .flecha-submenu {
    transform: rotate(-90deg);
  }

  /* SLIDER */
  .slider {
    position: relative;
    height: 250px;
  }

  .texto-slide {
    bottom: 20px;
    left: 20px;
    padding: 10px;
    font-size: 14px;
  }

  .texto-slide h2 {
    font-size: 18px;
  }

  /* FOOTER */
  footer {
    flex-direction: row;
    align-items: left;
    text-align: left;
  }

  #footLogo {
    width: 20%;
    flex-direction: column;
    justify-content: left;
    gap: 20px;
  }

  #footLogo img {
    max-width: 160px;
    margin-top: 10px;
  }

  #foot {
    width: 100%;
    margin: 20px 0;
  }

  .subcripcion input {
    width: 100%;
  }

  .subcripcion button {
    width: 100%;
  }
}

@keyframes vibrarYExpandir {
  0%   { transform: scale(1) rotate(0deg); }
  25%  { transform: scale(1.2) rotate(5deg); }
  50%  { transform: scale(1.1) rotate(-5deg); }
  75%  { transform: scale(1.15) rotate(3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.lupa.animada {
  animation: vibrarYExpandir 0.9s ease-in-out;
}

@keyframes pulseFuerte {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.boton-rojo.animado {
  animation: pulseFuerte 0.4s ease;
}


@keyframes zoomBounce {
  0% { transform: scale(1); }
  50% { transform: scale(0.97); }
  75% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.boton-azul.animado {
  animation: zoomBounce 0.4s ease;
}

/* Animación */
@keyframes aparecer {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Animación de aparición */
@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}