/* =============================================================================
   HTML5 CSS Reset Minified - Eric Meyer
   ========================================================================== */

   html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline}
   body{line-height:1}
   article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
   nav ul{list-style:none}
   blockquote,q{quotes:none}
   blockquote:before,blockquote:after,q:before,q:after{content:none}
   a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent;text-decoration:none}
   mark{background-color:#ff9;color:#000;font-style:italic;font-weight:bold}
   del{text-decoration:line-through}
   abbr[title],dfn[title]{border-bottom:1px dotted;cursor:help}
   table{border-collapse:collapse;border-spacing:0}
   hr{display:block;height:1px;border:0;border-top:1px solid #ffffff;margin:1em 0;padding:0}
   input,select{vertical-align:middle}
   li{list-style:none}
   
   
   /* =============================================================================
      My CSS
      ========================================================================== */
   
   /* ---- base ---- */
   
   html,body{ 
     width:100%;
     height:100%;
     background: #000022;
  
   }
   
   html{
     -webkit-tap-highlight-color: #ffffff;
   }
   
   body{
     font:normal 75% Arial, Helvetica, sans-serif;
   }
   
   canvas{
     display: block;
     
   }
   
   
   /* ---- stats.js ---- */
   
   .count-particles{
     background: #000022;
     position: absolute;
     top: 48px;
     left: 0;
     width: 80px;
     color: #13E8E9;
     font-size: .8em;
     text-align: left;
     text-indent: 4px;
     line-height: 14px;
     padding-bottom: 2px;
     font-family: Helvetica, Arial, sans-serif;
     font-weight: bold;
   }
   
   .js-count-particles{
     font-size: 1.1em;
   }
   
   #stats,
   .count-particles{
    
     margin-top: 5px;
     margin-left: 5px;
   }
   
   #stats{
     border-radius: 3px 3px 0 0;
     overflow: hidden;
   }
   
   .count-particles{
     border-radius: 0 0 3px 3px;
   }
   
   
   /* ---- particles.js container ---- */
   
   #particles-js {
    width: 100%;
    height: 100%;
    background: #000022;
    background-size: 100%;
    background-position: 100% 100%;
    background-repeat: no-repeat;
    z-index: 1; /* Asegura que el fondo de partículas esté detrás de la tarjeta */
   
}

/* Mobile decoration improvements */
@media (max-width: 768px) {
  .wrap {
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(2,6,23,0.6);
    border: none;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(3,8,27,0.45), rgba(3,8,27,0.18));
  }

  .image-content { 
    filter: saturate(1.03) contrast(1.02);
    transform-origin: center;
  }

  .overlay-content {
    backdrop-filter: blur(6px) saturate(1.05);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 20px rgba(2,6,23,0.45);
  }

  .overlay-content h1 { text-shadow: 0 6px 18px rgba(0,0,0,0.6); }

  .dots .dot {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 30% 30%, #8ee3ff, #3b82f6);
    box-shadow: 0 6px 18px rgba(59,130,246,0.25);
    border: none;
    border-radius: 50%;
    margin: 0 6px;
  }

  .text {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding-bottom: 1.5rem;
    font-size: 16px;
    line-height: 1.6;
  }

  .button {
    background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 28px;
    box-shadow: 0 12px 30px rgba(59,130,246,0.18);
    border: none;
    display: inline-block;
  }

  .button:active { transform: translateY(1px); }

  .slide-image { transition: transform 0.6s ease, filter 0.6s ease; }
  .slide-image.active { transform: scale(1.02); filter: brightness(1.02); }

  /* small polish for embedded image */
  .text .inset { box-shadow: 0 8px 24px rgba(2,6,23,0.12); border-radius: 8px; }
}

/* Force-hide product white description and related elements on mobile (user requested static card) */
@media (max-width: 768px) {
  /* hide the white description block entirely */
  .wrap .text,
  .wrap .text * {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  /* hide small descriptive paragraph inside overlay */
  .wrap .overlay-content p { display: none !important; }

  /* hide navigation dots to keep the card clean */
  .wrap .dots { display: none !important; }

  /* hide inset thumbnail within the hidden text area */
  .wrap .text .inset { display: none !important; }

  /* ensure image is the visible element and fills space */
  .wrap .image-content { display: block !important; position: relative !important; height: 60vh !important; }
  .wrap .image-content .slide-image { position: absolute !important; top:0; left:0; width:100% !important; height:100% !important; background-size: cover !important; }

  /* keep overlay title visible on image */
  .wrap .overlay-content { position: absolute !important; top: 14px !important; left: 14px !important; z-index: 5 !important; }

  /* make sure Buy button remains visible below the card */
  .button { position: relative; z-index: 1; }
}
   
/*Tarjeta*/







  header{
    width:100%;
    overflow:hidden;
    background-color:#000022;
   position: relative;
    
  }
  
  /*Sirve para centrar el contenido*/
  .wrapper{
    width:100%;
    max-width:1000px;
    margin:auto;
    color: #000022;

  }
  
  header .logo{
    color:#ffffff;
    font-size:3rem;
    line-height:2rem;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    float:left;
    padding-top: 3rem;
  }
 
  header img {
    height:6rem; /* Reducir el tamaño de la imagen en dispositivos pequeños */
    width: auto; /* Permitir que el ancho se ajuste automáticamente */
    float: left;
    margin: 10px; /* Añadir un poco de margen para separar la imagen del borde */
    margin-top: none;

}
  
  header nav{
    float:right;
    line-height:100px;
  }
  header nav a {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px; /* Reducir el relleno para que quepan más enlaces en dispositivos pequeños */
    line-height: normal;
    font-size: 16px; /* Reducir el tamaño de la fuente en dispositivos pequeños */
    font-weight: bold;
    -webkit-transition: all 100ms ease;
    -o-transition: all 500ms ease;
    transition: all 500ms ease;
}

  header nav a:hover{
    background-color:#626262;
    border-radius:50px;
  }

  
  /*Hace que el header se quede en pantalla*/
  .header2{ 
    position:fixed;
    width: 100%; /* Añadido para ocupar todo el ancho */
    height: auto; /* Cambiado a auto */
    z-index: 1000; /* Añadido para mantener en el frente */
  }
  
  /*Propiedades del logo del header*/

.header2 .logo,
.header2 nav {
    text-align: center; /* Ajustado para centrar */
    line-height: 2rem; /* Convertido a rem */
}
  .content p{
    margin-bottom:1em;
  }
  /*Centra el contenido que se encuentra en el header*/
  @media screen and (max-width:1050px){
    header .logo,
    header nav{
      width:100%;
      float: none;
      text-align:center;
      line-height:normal;
    }
  }
  
    .header2{
    height:auto;
  }
  
    .header2 .logo,
  .header2 nav{
    line-height:50px;
  }
  @media screen and (max-width: 768px) {
    header .logo,
    header nav {
        width: 100%;
        text-align: center;
        line-height: 75px;
    }

    header img {
        height: 60px; /* Ajustar el tamaño de la imagen en dispositivos más pequeños */
    }

    header nav a {
        padding: 10px; /* Ajustar el relleno en dispositivos más pequeños */
        font-size: 14px; /* Reducir el tamaño de la fuente en dispositivos más pequeños */
    }
  }

  /*cuerpo de la pagina*/


  /* Tarjeta del producto */



  * {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

  h1 {
    font-size: 5.25vmin;
    text-align: center;
    color: #ffffff;
  }
  p {
    font-size: max(10pt, 2.5vmin);
    line-height: 1.4;
    color: #0e1f39;
    margin-bottom: 1.5rem;
  }
  
  .wrap {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: min(100vmin, 100%);
    max-width: 1000px;
    height: auto;
    margin: 1.25rem auto;
    border: 8px solid;
    border-image: linear-gradient(
        -50deg,
        rgb(58, 60, 64),
        #1d1f22,
        rgb(91, 91, 91),
        rgb(44, 44, 44),
        rgb(72, 72, 72),
        #3e3e3e,
        rgb(75, 75, 75)
      ) 1;
    transition: 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
  }
  .overlay {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    padding: 1rem 0.75rem;
    background:#0b1229;
    transition: 0.4s ease-in-out;
    z-index: 1;
  
  }
  .overlay-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 15vmin;
    height: 100%;
    padding: 0.5rem 0 0 0.5rem;
    border: 3px solid;
    border-image: linear-gradient(
        to bottom,
        #aea724 5%,
        forestgreen 35% 65%,
        #aea724 95%
      )
      0 0 0 100%;
    transition: 0.3s ease-in-out 0.2s;
    z-index: 1;
  }
  .image-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 60vmin;
    height: 100%;
    overflow: hidden;
    transition: 0.3s ease-in-out;
  }

  .product-slider {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }

  .slide-image.active {
    opacity: 1;
  }
  
  .inset {
    max-width: 50%;
    margin: 0.25em 1em 1em 0;
    border-radius: 0.25em;
    float: left; 
  }
  
  .dots {
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 55px;
    height: 4vmin;
    transition: 0.3s ease-in-out 0.3s;
  }
  .dot {
    width: 14px;
    height: 14px;
    background: yellow;
    border: 1px solid indigo;
    border-radius: 50%;
    transition: 0.3s ease-in-out 0.3s;
  }
  
  .text {
    position: absolute;
    top: 0;
    right: 0;
    width: 60vmin;
    height: 100%;
    padding: 3vmin 4vmin;
    background: #fff;
    box-shadow: inset 1px 1px 15px 0 rgba(0 0 0 / 0.4);
    overflow-y: scroll;
  }
  
  .wrap:hover .overlay {
    transform: translateX(-60vmin);
  }
  .wrap:hover .image-content {
    width: 50vmin;
  }
  .wrap:hover .slide-image {
    opacity: 0 !important;
    transition: opacity 0.5s ease-in-out;
  }
  .wrap:hover .overlay-content {
    border: none;
    transition-delay: 0.2s;
    transform: translateX(60vmin);
  }
  .wrap:hover .dots {
    transform: translateX(1rem);
  }
  .wrap:hover .dots .dot {
    background: white;
  }
  
  /* Animations and timing delays */
  .animate {
    animation-duration: 0.7s;
    animation-timing-function: cubic-bezier(0.26, 0.53, 0.74, 1.48);
    animation-fill-mode: backwards;
  }
  /* Pop In */
  .pop {
    animation-name: pop;
  }
  @keyframes pop {
    0% {
      opacity: 0;
      transform: scale(0.5, 0.5);
    }
    100% {
      opacity: 1;
      transform: scale(1, 1);
    }
  }
  
  /* Slide In */
  .slide {
    animation-name: slide;
  }
  @keyframes slide {
    0% {
      opacity: 0;
      transform: translate(4em, 0);
    }
    100% {
      opacity: 1;
      transform: translate(0, 0);
    }
  }
  
  /* Slide Left */
  .slide-left {
    animation-name: slide-left;
  }
  @keyframes slide-left {
    0% {
      opacity: 0;
      transform: translate(-40px, 0);
    }
    100% {
      opacity: 1;
      transform: translate(0, 0);
    }
  }
  
  .slide-up {
    animation-name: slide-up;
  }
  @keyframes slide-up {
    0% {
      opacity: 0;
      transform: translateY(3em);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .delay-1 {
    animation-delay: 0.3s;
  }
  .delay-2 {
    animation-delay: 0.6s;
  }
  .delay-3 {
    animation-delay: 0.9s;
  }
  .delay-4 {
    animation-delay: 1.2s;
    color: #fff;
  }
  .delay-5 {
    animation-delay: 1.5s;
    font-size: 20px;
  }
  .delay-6 {
    animation-delay: 1.8s;
  }
  .delay-7 {
    animation-delay: 2.1s;
  }
  .delay-8 {
    animation-delay: 2.4s;
  }
 
  .tittle{
    color: #fff;
  }


/*BOTON*/


  /* only animate if the device supports hover */
@media (hover: hover) {
  #creditcard {
    /*  set start position */
    transform: translateY(110px);
    transition: transform 0.1s ease-in-out;
    /*  set transition for mouse enter & exit */
  }

  #money {
    /*  set start position */
    transform: translateY(180px);
    transition: transform 0.1s ease-in-out;
    /*  set transition for mouse enter & exit */
  }

  button:hover #creditcard {
    transform: translateY(0px);
    transition: transform 0.2s ease-in-out;
    /*  overide transition for mouse enter */
  }

  button:hover #money {
    transform: translateY(0px);
    transition: transform 0.3s ease-in-out;
    /*  overide transition for mouse enter */
  }
}

/* Mobile full-screen product panel overrides */
@media (max-width: 768px) {
  /* Stack layout: image on top, text below, always visible on mobile */
  .wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0.5rem auto;
    border-width: 6px;
    overflow: visible;
    background: transparent;
  }

  .overlay {
    display: block;
    padding: 0;
    background: transparent;
  }

  .image-content {
    position: relative;
    width: 100%;
    height: 40vh;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
  }

  .overlay-content {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    background: linear-gradient(90deg, rgba(11,18,41,0.85), rgba(11,18,41,0.55));
    padding: 1rem;
    border-radius: 8px;
  }

  .overlay-content h1 { color: #fff; font-size: 7vmin; line-height:1; }
  .overlay-content p { color: rgba(255,255,255,0.9); margin: 0.5rem 0 0; }

  .dots { position: absolute; bottom: 12px; left: 12px; }

  .text {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: auto;
    max-height: none;
    padding: 1.25rem;
    background: #fff;
    box-shadow: none;
    overflow: visible;
    color: #0e1f39;
  }

  /* === USER REQUEST: hide white description on mobile and remove 'toca para ver más' hint === */
  .overlay-content p { display: none !important; }
  .text { display: none !important; }

  /* make image taller so card still looks substantial */
  .image-content { height: 55vh; }

  /* Keep Buy button visible and centered */
  .button { margin: 1rem auto 2rem; display: inline-block; }

  /* Disable hover transform effects on mobile */
  .wrap:hover .overlay,
  .wrap:hover .image-content,
  .wrap:hover .slide-image,
  .wrap:hover .overlay-content,
  .wrap:hover .dots { transform: none !important; }

  /* Remove the touch hint added via ::after pseudo-element */
  .wrap::after { display: none !important; content: none !important; }
}

/* Ensure the product card is fully static on mobile: disable sliding/animations/transforms */
@media (max-width: 768px) {
  .wrap,
  .wrap *,
  .overlay,
  .image-content,
  .overlay-content,
  .product-slider,
  .slide-image,
  .dots {
    transition: none !important;
    -webkit-transition: none !important;
    transform: none !important;
    -webkit-transform: none !important;
    animation: none !important;
    -webkit-animation: none !important;
    will-change: auto !important;
  }

  /* Prevent any hover/active rules from shifting layout */
  .wrap:hover,
  .wrap:active,
  .wrap:focus {
    transform: none !important;
  }

  /* Make sure slide images remain positioned and not moved by absolute transforms */
  .slide-image { position: relative !important; opacity: 1 !important; }

  /* Keep overlay title fixed over the image */
  .overlay-content { position: absolute !important; top: 14px !important; left: 14px !important; transform: none !important; }
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.25rem);
  }
  100% {
    transform: translateY(0);
  }
}

.button:hover .button__text span {
  transform: translateY(-0.25rem);
  transition: transform .2s ease-in-out;
}

/* styling */

@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400&display=swap");



.button {
  border: none;
  outline: none;
  background-color: purple;
  padding: 1rem 90px 1rem 2rem;
  position: relative;
  border-radius: 8px;
  letter-spacing: 0.7px;
  background-color: #0b1229;
  color: #fff;
  font-size: 21px;
  font-family: "Lato", sans-serif;
  cursor: pointer;
  box-shadow: rgba(0, 9, 61, 0.2) 0px 4px 8px 0px;
}

.button:active {
  transform: translateY(1px);
}

.button__svg {
  position: absolute;
  overflow: visible;
  bottom: 6px;
  right: 0.2rem;
  height: 140%;
}


/*about us*/



/*footer*/

@import url("https://fonts.go2ogleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap");





.footer {
  position: relative;
  bottom: 0; /* Alineado al fondo */
  width: 100%;
  background: #00183c;
  min-height: 100px;
  padding: 20px 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.social-icon,
.menu {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
  flex-wrap: wrap;
}

.social-icon__item,
.menu__item {
  list-style: none;
}

.social-icon__link {
  font-size: 2rem;
  color: #fff;
  margin: 0 10px;
  display: inline-block;
  transition: 0.5s;
}
.social-icon__link:hover {
  transform: translateY(-10px);
}

.menu__link {
  font-size: 1.2rem;
  color: #fff;
  margin: 0 10px;
  display: inline-block;
  transition: 0.5s;
  text-decoration: none;
  opacity: 0.75;
  font-weight: 300;
}

.menu__link:hover {
  opacity: 1;
}

.footer p {
  color: #fff;
  margin: 15px 0 10px 0;
  font-size: 1rem;
  font-weight: 300;
}

.wave {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  background: url("https://i.ibb.co/DCGR0N8/wave-1.png");
  background-size: 1000px 100px;
}

.wave#wave1 {
  z-index: 1000;
  opacity: 1;
  bottom: 0;
  animation: animateWaves 4s linear infinite;
}

.wave#wave2 {
  z-index: 999;
  opacity: 0.5;
  bottom: 10px;
  animation: animate 4s linear infinite !important;
}

.wave#wave3 {
  z-index: 1000;
  opacity: 0.2;
  bottom: 15px;
  animation: animateWaves 3s linear infinite;
}

.wave#wave4 {
  z-index: 999;
  opacity: 0.7;
  bottom: 20px;
  animation: animate 3s linear infinite;
}
@media screen and (max-width: 768px) {
  .footer {
    padding: 20px 10px; /* Ajuste de padding para dispositivos móviles */
  }
}
@keyframes animateWaves {
  0% {
    background-position-x: 1000px;
  }
  100% {
    background-positon-x: 0px;
  }
}

@keyframes animate {
  0% {
    background-position-x: -1000px;
  }
  100% {
    background-positon-x: 0px;
  }
  
}

/* ...existing code... */

.login-page{
    /* min-height: calc(100vh - 160px); */
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
    /* padding: 40px 20px; */
    /* background: linear-gradient(180deg, rgba(11,18,41,0.6), rgba(0,0,0,0.6)); */
    /* z-index: 2; */
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.login-card{
  width:100%;
  max-width: 420px;
  background: linear-gradient(180deg,#07102a,#0b1229);
  border-radius:16px;
  padding:28px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.6);
  color:#fff;
  text-align:center;
  border: 1px solid rgba(255,255,255,0.04);
}

.login-emoji{
  font-size:48px;
  margin-bottom:8px;
}

.login-card h2{
  margin:6px 0 8px;
  font-size:1.6rem;
}

.muted{ color: rgba(255,255,255,0.75); font-weight:300; margin-bottom:12px; }

.login-form{ display:flex; flex-direction:column; gap:12px; margin-top:8px; }

.form-field input{
  width:100%;
  padding:14px 16px;
  border-radius:10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  color:#fff;
  font-size:1rem;
  outline:none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.form-field input:focus{
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(11,18,41,0.6);
  border-color: rgba(107,255,184,0.6);
}

.button{
  background: linear-gradient(90deg,#6bffb8,#6b9bff);
  color:#07102a;
  font-weight:700;
  padding:12px;
  border-radius:10px;
  border:none;
  cursor:pointer;
}

.login-error{
  background: rgba(255,90,90,0.08);
  color:#ffb3b3;
  padding:8px 12px;
  border-radius:8px;
  margin-bottom:8px;
  font-size:0.95rem;
}

/* adaptaciones móviles */
@media (max-width:480px){
  .login-card{ padding:20px; border-radius:12px; }
  .login-emoji{ font-size:40px; }
}

/* ...existing code... */

/* Estilos específicos para el footer en la página de login */
.login-page + .footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 1rem 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.2), transparent);
}

.login-page + .footer .waves {
    height: 40px;
}

.login-page + .footer .wave {
    height: 40px;
}

.login-page + .footer .social-icon {
    padding: 0;
    margin: 10px 0;
}

.login-page + .footer p {
    margin: 5px 0;
    font-size: 0.9em;
}

/* ...existing code... */

.login-form .form-field {
    margin-bottom: 1rem;
}

.login-form input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
  background: rgba(52, 214, 182, 0.12);
  border: 1px solid rgba(52, 214, 182, 0.25);
  color: #7fffd4;
}

/* ...existing code... */

/* Estilos mejorados para login y registro */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #000022 0%, #090979 35%, #000851 100%);
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(13, 20, 49, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Footer compacto para login/registro */
.login-page + .footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    min-height: auto;
    padding: 10px 0;
    background: rgba(0, 24, 60, 0.8);
    backdrop-filter: blur(5px);
}

.login-page + .footer .waves {
    display: none; /* Removemos las olas para un diseño más limpio */
}

.login-page + .footer .social-icon {
    margin: 5px 0;
}

.login-page + .footer .social-icon__link {
    font-size: 1.5rem;
    margin: 0 8px;
}

.login-page + .footer p {
    font-size: 0.8rem;
    margin: 5px 0;
    opacity: 0.8;
}

/* Mejoras visuales para el formulario */
.login-form .form-field input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.login-form .form-field input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(107, 255, 184, 0.5);
    box-shadow: 0 0 15px rgba(107, 255, 184, 0.2);
}

.login-form .button {
    background: linear-gradient(45deg, #6bffb8, #4a8eff);
    border: none;
    padding: 12px;
    font-weight: 600;
    color: #000022;
    transition: all 0.3s ease;
}

.login-form .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 255, 184, 0.3);
}

/* Enlaces en el formulario */
.login-page a {
    color: #6bffb8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-page a:hover {
    color: #4a8eff;
    text-decoration: underline;
}

/* Archivo limpiado: reglas mínimas útiles para header, login/registro y footer */

/* Reset básico */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg,#08112a 0%, #0b2b5b 100%);
    color: #ffffff;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

/* Contenedor general */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background: #071033;
    color: #fff;
    width: 100%;
}
header .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 10px 1rem;
}
header .logo {
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:700;
    font-size:1.25rem;
}
header .logo img { height:44px; width:auto; display:block; }
header nav a {
    color:#e6eefc;
    text-decoration:none;
    margin-left:1rem;
    font-size:0.95rem;
}
header nav a:hover { color:#9be8d4; }

/* Login / Registro */
.login-container,
.auth-container {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
}

.login-box,
.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(8,18,40,0.78);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.03);
}

.login-header,
.auth-header { text-align:center; margin-bottom:18px; }
.login-logo { width:72px; height:auto; margin:0 auto 10px; display:block; }

.login-header h2,
.auth-header h2 {
    color:#fff;
    font-size:22px;
    margin-bottom:6px;
}
.login-header .subtitle,
.auth-header p {
    color: rgba(255,255,255,0.75);
    font-size:13px;
}

/* Formularios */
.form-group { margin-bottom:14px; }
input[type="email"],
input[type="password"],
input[type="text"] {
    width:100%;
    padding:12px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius:8px;
    color:#fff;
    font-size:15px;
}
input::placeholder { color: rgba(255,255,255,0.55); }
input:focus {
    outline:none;
    border-color:#34d6b6;
    box-shadow: 0 0 0 6px rgba(52,214,182,0.06);
}

/* Botones */
.button,
.login-button,
.auth-button {
    display:inline-block;
    width:100%;
    padding:12px;
    border-radius:8px;
    border:0;
    cursor:pointer;
    font-weight:600;
    color:#04223c;
    background: linear-gradient(90deg,#7fffd4 0%, #6ea8ff 100%);
    transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover,
.login-button:hover,
.auth-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(46,195,156,0.14);
}

/* Mensajes */
.alert { padding:10px 12px; border-radius:8px; margin-bottom:12px; font-size:14px; }
.alert-danger { background: rgba(255,80,80,0.08); color:#ffb3b3; border:1px solid rgba(255,80,80,0.12); }
.alert-success {
  background: rgba(52, 214, 182, 0.12);
  border: 1px solid rgba(52, 214, 182, 0.25);
  color: #7fffd4;
}

/* Footer compacto (aplicable a login/registro) */
.footer,
.footer-login {
    width:100%;
    background: rgba(5,16,40,0.9);
    color: rgba(255,255,255,0.9);
    text-align:center;
    padding:10px 12px;
    position:relative;
    bottom:0;
}
.footer .waves, .footer-login .waves { display:none; } /* quitar olas por defecto para evitar solapamiento */
.footer p, .footer-login p { font-size:12px; margin:4px 0; }

/* Pequeñas utilidades */
.text-center { text-align:center; }
.mt-2 { margin-top:8px; }
.mb-2 { margin-bottom:8px; }

/* Responsive */
@media (max-width:600px) {
    header .wrapper { padding:8px; }
    .login-box, .auth-card { padding:20px; border-radius:12px; }
    .login-header h2 { font-size:20px; }
}

/* ===== Header: mismo fondo que el body, centrado y armonioso ===== */
.site-header {
    background: linear-gradient(135deg,#08112a 0%, #0b2b5b 100%); /* mismo degradado que body */
    padding: 14px 0;
    box-shadow: 0 6px 18px rgba(3,12,30,0.45);
    position: relative;
    z-index: 100;
}

/* Grid para centrar la marca en el medio y nav a la derecha */
.header-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Marca (imagen + texto) centrada */
.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    justify-self: center;
    color: inherit;
}
.brand-logo {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 6px;
    background: radial-gradient(circle at 30% 20%, #e8f9ee 0%, #dff7ee 20%, transparent 40%);
    box-shadow: 0 6px 18px rgba(0,0,0,0.22), inset 0 2px 6px rgba(255,255,255,0.03);
    transition: transform .18s ease;
}
.site-brand:hover .brand-logo { transform: translateY(-3px) rotate(-3deg); }

.brand-text { line-height: 1; text-align: left; }
.brand-title {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.35rem; /* antes era 1.05rem */
    letter-spacing: 0.5px;
}
.brand-sub {
    color: #cfeee2;
    font-size: 0.95rem; /* antes era 0.78rem */
    margin-top: 2px;
}

/* Navegación alineada a la derecha */
.site-nav { justify-self: end; display: flex; gap: 18px; align-items: center; }
.nav-link {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    transition: all .15s ease;
}
.nav-link:hover { background: rgba(255,255,255,0.03); transform: translateY(-2px); color: #e6fff5; }

/* Botón destacado */
.btn-signin {
    background: linear-gradient(90deg,#7fffd4 0%, #6ea8ff 100%);
    color: #04223c !important;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 700;
}

/* pequeño ajuste para balancear tamaño del logo en pantallas pequeñas */
@media (max-width: 900px) {
    .header-grid { grid-template-columns: 1fr auto 1fr; width: 96%; }
    .brand-logo { width: 56px; height: 56px; }
    .brand-title { font-size: 0.98rem; }
}

/* móvil: apilar (logo encima, nav debajo) */
@media (max-width: 600px) {
    .header-grid { grid-template-columns: 1fr; row-gap:8px; }
    .site-brand { justify-self: center; }
    .site-nav { justify-self: center; }
}

/* Ajuste del botón "Comprar ahora" — tamaño responsivo y centrado */
.button {
    display: block;
    width: 100%;
    max-width: 420px;       /* ancho máximo en pantallas grandes */
    margin: 24px auto 0;    /* centrado horizontal */
    padding: 14px 28px;     /* altura y espacio interno */
    border-radius: 10px;
    border: 0;
    background: linear-gradient(90deg,#7fffd4 0%, #6ea8ff 100%);
    color: #04223c;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 6px 18px rgba(46,195,156,0.12);
}

/* En pantallas muy grandes mantenerlo un poco más ancho visualmente */
@media (min-width: 1200px) {
    .button {
        width: 60%;
        max-width: 560px;
    }
}

/* En móviles reducir padding y tamaño de fuente */
@media (max-width: 480px) {
    .button {
        padding: 10px 16px;
        font-size: 16px;
        max-width: 340px;
    }
}

/* Asegura que los botones de login/registro sigan ocupando todo el ancho del formulario */
.login-button,
.auth-button {
    width: 100%;
    max-width: none;
}

/* Header específico según página */
.site-header.header-index {
    /* fondo sólido solicitado */
    background: #000022;
    /* conservar sombra si quieres */
    box-shadow: 0 6px 18px rgba(3,12,30,0.45);
}

.site-header.header-auth {
    /* mismo fondo que la página de login/registro */
    background: linear-gradient(135deg, #000022 0%, #090979 35%, #000851 100%);
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.site-header.header-default {
    /* fallback */
    background: linear-gradient(135deg,#08112a 0%, #0b2b5b 100%);
    box-shadow: 0 6px 18px rgba(3,12,30,0.45);
}

/* Ajustes específicos para login/registro: fondo uniforme, tarjeta centrada y footer compacto */
header.header-auth + main,
header.header-auth + main .login-container {
    background: linear-gradient(135deg, #000022 0%, #090979 35%, #000851 100%); /* mismo fondo de auth */
    min-height: calc(100vh - 140px); /* deja espacio para header + footer */
    padding: 40px 16px 120px; /* padding inferior para que la tarjeta no quede tapada por el footer */
    box-sizing: border-box;
}

/* Centrar correctamente la tarjeta */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(180deg, #000014 0%, #02102a 50%, #041428 100%);
    overflow: hidden;
}

/* Limitar ancho de la tarjeta y evitar que quede pegada al footer */
.login-box {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    margin-bottom: 40px; /* espacio extra dentro del flujo */
    padding: 28px;
    border-radius: 14px;
    background: rgba(8,18,40,0.92);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    position: relative;
    z-index: 60;
}

/* Footer fijo y compacto, sin las olas que solapan */
.footer,
.footer-login {
    position: static;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 10px 12px;
    background: rgba(5,16,40,0.95);
    text-align: center;
    z-index: 40;
}
.footer .waves,
.footer-login .waves { display: none !important; } /* forzar ocultado de olas en auth */
.footer p, .footer-login p { margin: 4px 0; font-size: 13px; color: rgba(255,255,255,0.9); }

/* Evitar scroll extraño en auth al centrar */
html, body { height: 100%; }

/* Ajustes responsive menores */
@media (max-width: 480px) {
    header.header-auth + main { padding-bottom: 140px; }
    .login-box { padding: 20px; max-width: 360px; }
}

/* Hacer "¿No tienes cuenta?" blanco y mantener el link destacado */
.login-footer p {
    color: #ffffff;
    margin: 0;
}

.login-footer p a {
    color: #9be8d4;
    text-decoration: underline;
}

.login-footer p a:hover {
    color: #6ea8ff;
}

/* Nav: botones "Inicio" y "Login" en blanco para mayor contraste */
.site-nav .nav-link {
    background: #ffffff;
    color: #04223c;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 8px 18px rgba(2,36,63,0.12);
}

/* Si alguno ya usa la clase btn-signin, asegurar estilo consistente */
.site-nav .nav-link.btn-signin {
    background: #ffffff;
    color: #04223c !important;
    border: 1px solid rgba(4,34,60,0.06);
}

/* Hover más visible */
.site-nav .nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(2,36,63,0.18);
    background: #f2f7ff;
    color: #022033;
}

/* Ajuste en pantallas pequeñas para que no sean demasiado grandes */
@media (max-width: 600px) {
    .site-nav .nav-link {
        padding: 8px 10px;
        border-radius: 10px;
        font-size: 14px;
    }
}

/* Aumentar tamaño del logo en el header (aplica globalmente) */
.brand-logo,
.site-logo,
.login-logo {
    width: 96px;
    height: 96px;
    transition: transform .18s ease, width .18s ease, height .18s ease;
}

/* Ajustes responsivos */
@media (max-width: 900px) {
    .brand-logo,
    .site-logo,
    .login-logo {
        width: 72px;
        height: 72px;
    }
}

@media (max-width: 600px) {
    .brand-logo,
    .site-logo,
    .login-logo {
        width: 56px;
        height: 56px;
    }
}

/* Quitar circunferencia alrededor del logo */
.brand-logo,
.site-logo,
.login-logo {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Asegurar que la imagen no tenga borde redondeado */
.brand-logo img,
.site-logo img,
.login-logo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0 !important;
}

/* Darker, softer gradient for login/auth pages — coloca al final del archivo para sobrescribir */
.site-header.header-auth {
    background: linear-gradient(180deg, #000014 0%, #02102a 55%, #041428 100%);
    box-shadow: 0 6px 18px rgba(0,0,0,0.55);
}

/* Fondo principal de la página de login (más oscuro y suave) */
.login-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #000014 0%, #02102a 50%, #041428 100%) fixed;
    position: relative;
    z-index: 1;
}

/* Tarjeta (login-box / login-card) — ligeramente translúcida sobre el fondo oscuro */
.login-box,
.login-card {
    background: rgba(8, 12, 22, 0.82); /* oscuro y suave */
    border: 1px solid rgba(255,255,255,0.03);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    color: #e6f7f0;
}

/* Ajuste de placeholders y textos para mejor contraste sobre el fondo más oscuro */
.login-form input,
.form-field input {
    background: rgba(255,255,255,0.03);
    color: #eafaf6;
}


.login-header .subtitle,
.login-footer p {
    color: rgba(230, 247, 240, 0.85);
}

/* Login Card Styles */
.login-container {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: rgba(8, 18, 40, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.login-header h2 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
}

.login-header .subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #7fffd4;
    box-shadow: 0 0 0 4px rgba(127, 255, 212, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #7fffd4, #6ea8ff);
    border: none;
    border-radius: 12px;
    color: #000022;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(127, 255, 212, 0.2);
}

.login-footer {
    margin-top: 25px;
    text-align: center;
}

.login-footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.login-footer a {
    color: #7fffd4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #6ea8ff;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .login-logo {
        width: 70px;
        height: 70px;
    }
    
    .login-header h2 {
        font-size: 24px;
    }
}

/* Estilos modernos para el login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(180deg, #000014 0%, #02102a 50%, #041428 100%);
    overflow: hidden; /* Previene desbordamiento */
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease;
    position: relative; /* Asegura que la tarjeta esté por encima */
    z-index: 1;
}

/* Cuenta (look glassy, divertido y acorde al sitio) */
.account-container {
  min-height: calc(100vh - 140px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
  background: linear-gradient(180deg, #000014 0%, #02102a 50%, #041428 100%);
}

.account-card {
  width: 100%; max-width: 920px;
  background: rgba(8,18,40,0.82);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.account-header { text-align:center; margin-bottom: 18px; }
.user-avatar {
  width: 72px; height: 72px; margin: 0 auto 8px;
  border-radius: 16px;
  display:flex; align-items:center; justify-content:center;
  background: radial-gradient(circle at 30% 20%, #e8f9ee 0%, rgba(255,255,255,0.06) 60%);
  font-size: 34px;
  box-shadow: inset 0 2px 8px rgba(255,255,255,0.06), 0 10px 30px rgba(0,0,0,0.35);
}
.account-header h2 { font-size: 24px; color: #fff; }
.account-header .muted { color: rgba(255,255,255,0.8); }

.chips { margin-top: 10px; display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #eafaf6; padding: 6px 10px; border-radius: 999px; font-size: 13px;
}

.account-stats {
  display:grid; grid-template-columns: repeat(3,1fr); gap: 12px;
  margin: 16px 0 20px;
}
.stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 12px;
  display:flex; gap:10px; align-items:center;
}
.stat-icon { font-size: 22px; }
.stat-label { color: #cfeee2; font-size: 12px; }
.stat-value { color:#fff; font-weight:700; font-size:16px; }

.account-game {
  margin-top: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
}
.account-game .game-header {
  display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom: 10px;
}
.account-game h3 { color:#fff; font-size: 18px; }
.account-game .game-meta { display:flex; gap:14px; color:#cfeee2; font-size: 14px; }

#dogGame {
  width: 100%; height: auto; display:block;
  background: transparent;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.game-controls { text-align:center; margin-top: 10px; }
.game-controls p { color: rgba(255,255,255,0.8); margin-bottom: 8px; }

/* Responsive */
@media (max-width: 900px) {
  .account-stats { grid-template-columns: 1fr; }
}

/* Media Queries para Dispositivos Móviles */

/* Tablets y móviles grandes (768px y menor) */
@media (max-width: 768px) {
  .wrap {
    width: 95vw;
    height: auto; /* let content define height on mobile */
    min-height: auto;
    margin: 1rem auto;
    border-width: 4px;
    position: relative;
    cursor: pointer;
    overflow: visible; /* allow page scrolling on mobile */
  }

  .overlay {
    width: 100%;
    height: 100%;
    padding: 1rem;
    position: relative;
    transition: transform 0.4s ease-in-out;
  }

  .overlay-content {
    width: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    z-index: 3;
    position: relative;
  }

  .overlay-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }

  .overlay-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .image-content {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    height: 40vh; /* restrict image area height on mobile */
    min-height: 200px;
    z-index: 1;
    transition: opacity 0.4s ease-in-out;
    overflow: hidden;
  }

  .text {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background: #fff;
    box-shadow: inset 1px 1px 15px 0 rgba(0 0 0 / 0.4);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y; /* allow vertical pan inside */
    max-height: calc(100vh - 120px); /* constrain so inner scroll works */
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 2;
  }

  .text .inset {
    max-width: 80%;
    margin: 0 auto 1rem auto;
    float: none;
    display: block;
  }

  .dots {
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 55px;
    height: 30px;
    z-index: 4;
    transition: transform 0.3s ease-in-out;
  }

  /* Estados activos para móvil */
  .wrap.mobile-expanded .overlay {
    transform: translateX(-100%);
  }

  .wrap.mobile-expanded .text {
    transform: translateX(0);
    /* when visible allow page to scroll below too */
    position: relative;
    height: auto;
    max-height: none;
  }

  .wrap.mobile-expanded .image-content {
    opacity: 0;
  }

  .wrap.mobile-expanded .dots {
    transform: translateX(-2rem);
  }

  .wrap.mobile-expanded .dots .dot {
    background: #007bff;
  }

  /* Indicador visual para touch en móviles - sólo en pantallas grandes (no en móviles) */
  @media (min-width: 769px) {
    .wrap::after {
      content: "👆 Toca para ver más";
      position: absolute;
      bottom: -40px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(0, 0, 0, 0.7);
      color: white;
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 0.8rem;
      opacity: 0;
      animation: pulseHint 2s infinite;
      pointer-events: none;
      z-index: 10;
    }

    @keyframes pulseHint {
      0%, 50%, 100% { opacity: 0; }
      25%, 75% { opacity: 1; }
    }

    /* Ocultar indicador cuando está expandida */
    .wrap.mobile-expanded::after {
      display: none;
    }
  }

  /* Desactivar hover effects en móviles, usar solo touch */
  .wrap:hover .overlay,
  .wrap:hover .image-content,
  .wrap:hover .slide-image,
  .wrap:hover .overlay-content,
  .wrap:hover .dots {
    /* Resetear todos los hovers en móviles */
    transform: none;
    opacity: inherit;
    width: inherit;
    background: inherit;
  }

  /* Mantener carrusel funcionando normalmente */
  .slide-image {
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }

  .slide-image.active {
    opacity: 1 !important;
  }
}

/* Móviles pequeños (480px y menor) */
@media (max-width: 480px) {
  .tittle h1 {
    font-size: 1.8rem;
    padding: 1rem;
  }

  .wrap {
    width: 98vw;
    margin: 0.5rem auto;
    border-width: 2px;
  }

  .overlay-content h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .overlay-content p {
    font-size: 1rem;
  }

  .text {
    padding: 1.5rem;
  }

  .text p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .image-content {
    height: 30vh;
    min-height: 250px;
  }

  .button {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }

  .dots {
    width: 40px;
    height: 20px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }
}

/* Ajustes adicionales para el header en móviles */
@media (max-width: 768px) {
  .site-header {
    padding: 0.5rem;
  }

  .header-grid {
    flex-direction: column;
    text-align: center;
  }

  .site-brand {
    margin-bottom: 1rem;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-title {
    font-size: 1.2rem;
  }

  .brand-sub {
    font-size: 0.8rem;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .site-nav ul li a {
    padding: 0.8rem 1rem;
    display: block;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }

  .site-nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* Optimizaciones para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
  .wrap {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  /* Asegurar que el carrusel funcione en dispositivos táctiles */
  .slide-image {
    transition: opacity 1s ease-in-out;
  }

  .slide-image.active {
    opacity: 1;
  }

  .slide-image:not(.active) {
    opacity: 0;
  }

  /* Mejorar la respuesta táctil */
  .wrap:active {
    transform: scale(0.99);
    transition: transform 0.1s ease;
  }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 320px) {
  .wrap {
    width: 100vw;
    border-width: 1px;
    margin: 0;
    border-radius: 0;
  }

  .overlay-content h1 {
    font-size: 1.5rem;
  }

  .text {
    padding: 1rem;
  }

  .text p {
    font-size: 0.85rem;
  }

  .image-content {
    height: 25vh;
    min-height: 200px;
  }
}

/* Estilos para el modal del producto */
.modal-content {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, #0b1229 0%, #1e3a8a 100%);
  border-bottom: none;
  padding: 1.5rem;
}

.modal-header .modal-title {
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-body {
  padding: 2rem;
  background: #f8f9fa;
}

.price-section {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  border-left: 4px solid #28a745;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.features li {
  padding: 0.3rem 0;
  border-bottom: 1px solid #e9ecef;
}

.features li:last-child {
  border-bottom: none;
}

.step-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form {
  border: 2px solid #e3f2fd;
}

.contact-form .form-control,
.contact-form .form-select {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 0.75rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.modal-footer {
  background: white;
  border-top: 1px solid #e9ecef;
  padding: 1.5rem;
}

/* Responsive para el modal */
@media (max-width: 768px) {
  .modal-lg {
    max-width: 95vw;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .step-card {
    margin-bottom: 1rem;
  }
  
  .price-section {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .modal-footer {
    flex-direction: column;
    gap: 10px;
  }
  
  .modal-footer .d-flex {
    flex-direction: column;
  }
  
  .modal-footer button {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* (reverted assistant UI changes: touch-controls, overlay/slider mobile overrides) */

/* Aumentar tamaño de botones táctiles del minijuego en móviles */
@media (max-width: 768px) {
  .dg-touch-btn {
    width: 64px !important;
    height: 64px !important;
    font-size: 26px !important;
    border-radius: 12px !important;
    background: linear-gradient(90deg,#7fffd4 0%, #6ea8ff 100%) !important;
    color: #04223c !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35) !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 6px !important;
    padding: 0 !important;
  }

  .game-controls .touch-controls {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    margin: 6px 0 12px 0 !important;
  }
}


/* ====== MODO ESTÁTICO SOLO EN MÓVILES ====== */
@media (max-width: 768px) {

  /* Desactiva animaciones y transiciones */
  .wrap,
  .wrap * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  /* Oculta los dots del slider */
  .dots {
    display: none !important;
  }

  /* Oculta TODAS las slides */
  .product-slider .slide-image {
    display: none !important;
  }

  /* Muestra SOLO la primera imagen como card estática */
  .product-slider .slide-image:first-child {
    display: block !important;
    position: relative !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 260px !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border-radius: 16px;
  }

  /* Ajusta el contenedor de imagen */
  .image-content {
    height: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
  }

  /* Mantiene estructura tipo CARD */
  .overlay {
    flex-direction: column;
    padding: 1rem;
  }

  /* El texto queda estático */
  .overlay-content {
    position: relative !important;
    opacity: 1 !important;
    text-align: center;
  }
}

/* ====== MOBILE FIRST: iOS + Android OPTIMIZADO ====== */
@media (max-width: 768px) {

  /* 🚀 Rendimiento: apaga todo lo animado */
  .wrap,
  .wrap * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
  }

  /* ❌ Elimina dots y slider */
  .dots {
    display: none !important;
  }

  .product-slider {
    display: block;
    width: 100%;
  }

  /* ❌ Oculta todas las slides */
  .product-slider .slide-image {
    display: none !important;
  }

  /* ✅ Imagen única estática (card) */
  .product-slider .slide-image:first-child {
    display: block !important;
    width: 100%;
    aspect-ratio: 1 / 1; /* perfecto para iOS y Android */
    min-height: 220px;
    max-height: 320px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
  }

  /* 📱 Contenedor imagen */
  .image-content {
    width: 100%;
    padding: clamp(12px, 4vw, 20px);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* 🧾 Texto estable */
  .overlay {
    display: flex;
    flex-direction: column;
    padding: clamp(12px, 4vw, 24px);
  }

  .overlay-content {
    text-align: center;
    opacity: 1 !important;
  }

  /* 📐 Títulos fluidos */
  .overlay-content h1 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    line-height: 1.1;
  }

  .overlay-content p {
    font-size: clamp(0.9rem, 4vw, 1.05rem);
  }

}


/* =========================================
   MOBILE RESPONSIVE + SLIDER FIXED IMAGE
   Android + iOS (Safari)
========================================= */
@media (max-width: 768px) {

  /* RESET GENERAL */
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  /* TÍTULO */
  .tittle h1 {
    font-size: 1.6rem !important;
    padding: 0 1rem;
    text-align: center;
  }

  /* CONTENEDOR PRINCIPAL */
  .wrap {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    margin: 0;
    padding: 0;
  }

  /* OVERLAY → COLUMNA */
  .overlay {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
  }

  /* TEXTO SUPERIOR */
  .overlay-content {
    position: relative !important;
    padding: 1.5rem 1rem !important;
    text-align: center;
  }

  .overlay-content h1 {
    font-size: 2rem !important;
    line-height: 1.2;
  }

  .overlay-content p {
    font-size: 1rem !important;
    margin-bottom: 1rem;
  }

  /* =================================
     SLIDER → IMAGEN FIJA EN MÓVIL
  ================================= */

  /* Oculta completamente el slider */
  .product-slider,
  .slide-image {
    display: none !important;
  }

  /* Contenedor de imagen fija */
  .image-content {
    position: relative !important;
    width: 100% !important;
    height: 45vh !important;
    max-height: 380px;
    margin: 0 auto;
    background-image: url('./GreenPaws_files/preco2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  /* Eliminar dots */
  .dots {
    display: none !important;
  }

  /* TEXTO DESCRIPTIVO → CARD ESTÁTICA */
  .wrap .text {
    position: relative !important;
    padding: 1.2rem !important;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .wrap .text img.inset {
    float: none !important;
    width: 100%;
    max-width: 280px;
    margin: 0 auto 1rem;
    display: block;
  }

  /* BOTÓN COMPRAR */
  #buyNowBtn {
    width: 90% !important;
    max-width: 320px;
    margin: 1.5rem auto;
    display: block;
  }

  /* MODAL BOOTSTRAP */
  .modal-dialog {
    margin: 1rem;
  }

  .modal-body {
    padding: 1rem;
  }

  /* DESACTIVAR ANIMACIONES PESADAS EN MOBILE */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
