/* ===== ESTILO GENERAL ===== */
.menu-banner {
    position: sticky;
    top: 0;
    z-index: 999; /* por encima de otros elementos */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.menu-banner button {
    background-color: #d1ab85;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.menu-banner button:hover {
    background-color: #444;
    transform: scale(1.05);
}


.titulo-led {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.titulo-led h1 {
    font-size: 4rem;
    color: #fff;
    display: flex;
    gap: 10px;
    margin: 0;
}

.titulo-led h1 span {
    animation: ledOn 1.5s ease-in-out infinite;
    display: inline-block;
    color: #000;
    text-shadow: none;
}

.titulo-led h1 span:nth-child(odd) {
    animation-delay: 0.3s;
}
.titulo-led h1 span:nth-child(even) {
    animation-delay: 0.6s;
}

@keyframes ledOn {
    0%, 100% {
        color: #000;
        text-shadow: none;
    }
    50% {
        color: #e0e0e0; /* gris claro al encender */
        text-shadow: 0 0 5px #999, 0 0 10px #ccc;
    }
}

body {
    font-family: 'Mayan', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #3e2c1c;
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-image: url('imagenes/pexels-iriser-1590549.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    z-index: -1;
    opacity: 0.7; /* Ajusta la intensidad del fondo */
}


h1 {
    flex-grow: 1;
    font-family: 'ele', sans-serif;
    font-size: 30px;
    text-align: center;
    margin: 0;
}

h2 {
    font-family: 'Xis', sans-serif;
    color: #000000;
    font-size: 50px;
}

header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #d7bfa7;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    
}
.header-fixed {
      
      width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
      top: 0;
      z-index: 1000;
      background-color: #d7bfa7;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

.carrito-container {
    margin-left: 0;
}

#banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100vw; /* evita que sobrepase el ancho del viewport */
    overflow-x: hidden; /* opcional para cortar cualquier desbordamiento */
    padding: 0 15px; /* agrega padding interno si quieres margen lateral */
    box-sizing: border-box; /* asegurar que padding no aumente ancho */
    
}

#banner h1 {
    flex-grow: 1;
    text-align: center;
    margin: 0 20px; /* espacio a los lados para no pegarse al logo ni carrito */
    font-family: 'ele', sans-serif;
    font-size: 30px;
}
#banner a img {
    display: block;
}
#logo {
    width: 60px;
    height: 60px;
}



.sections {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 3em 2em; /* más alto (vertical) y espacio interno */
    font-size: 18px;
    line-height: 1.8;
    box-sizing: border-box;
    


}

/* ===== BOTONES ===== */
.buttons button {
    padding: 15px 30px;
    background-color: #5a3e2b;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin: 10px;
    font-family: 'Hand', sans-serif;
}

.buttons button:hover {
    background-color: #3e2c1c;
    transform: scale(1.05);
    color: #fff8dc;
}

 @keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
      text-shadow:
        0 0 5px #ff4500,
        0 0 10px #ff4500,
        0 0 20px #ff4500,
        0 0 40px #ff6347,
        0 0 80px #ff6347,
        0 0 90px #ff6347,
        0 0 100px #ff6347;
      color: #ff4500;
    }
    20%, 22%, 24%, 55% {
      text-shadow:
        0 0 2px #ff6347,
        0 0 4px #ff6347,
        0 0 10px #ff6347,
        0 0 20px #ff4500,
        0 0 30px #ff4500;
      color: #000000;
    }
  }

  h3 {
    font-family: 'Mayan', sans-serif;
    font-size: 2.5em;
    text-align: center;
    color: #000000;
    animation: flicker 1.5s infinite;
    user-select: none;
    margin-top: 2rem;
  }
/* ===== FLIP BOX ===== */
.flip-container {
    perspective: 1000px;
    width: 100%;
    max-width: 960px; /* Coincide con .section */
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.flip-box {
    width: 870px;
    height: 400px;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    font-size:32px;
}

.flip-box4 {
  width: 870px;
    height: 400px;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    font-size:32px;
}

.scratch-card {
   width: 870px;
    height: 400px;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    font-size:40px;
}

#scratchCanvas {
    width: 107%;
    height: 115%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    font-size:32px;
  top: 0;
  left: 0;
  z-index: 10;
  cursor: crosshair;
}

.hidden-content {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1; /* Debajo del canvas */
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


/* Diamantes animados */
.diamond {
  position: absolute;
  width: 30px;
  height: 30px;
  background-image: url('imagenes/diamond.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  animation: float-diamond 2s infinite ease-in-out;
}

.diamond1 { top: 10px; left: 10px; animation-delay: 0s; }
.diamond2 { top: 10px; right: 10px; animation-delay: 0.2s; }
.diamond3 { bottom: 10px; left: 10px; animation-delay: 0.4s; }
.diamond4 { bottom: 10px; right: 10px; animation-delay: 0.6s; }
.diamond5 { top: 50%; left: -15px; animation-delay: 0.8s; }
.diamond6 { top: 50%; right: -15px; animation-delay: 1s; }
.diamond7 { top: -15px; left: 50%; animation-delay: 1.2s; }
.diamond8 { bottom: -15px; left: 50%; animation-delay: 1.4s; }

@keyframes float-diamond {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.2);
  }
}


.flip-container:hover .flip-box {
    transform: rotateY(180deg);
}

.flip-box-front,
.flip-box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    color: #000000; /* Cambia a blanco para mejor contraste si es necesario */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1.6;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.flip-box-front.seccion1 {
    background-image: url('imagenes/fondoprueba123456.jpg');
}

.flip-box-back.seccion1 {
    background-image: url('imagenes/fondoprueba123456.jpg');
}

.flip-box-front.seccion2 {
    background-image: url('imagenes/fondoprueba123456.jpg');
}

.flip-box-back.seccion2 {
   background-image: url('imagenes/fondoprueba123456.jpg');
}
.flip-box-front.seccion3 {
    background-image: url('imagenes/fondoprueba123456.jpg');
}
.flip-box-back.seccion3 {
   background-image: url('imagenes/fondoprueba123456.jpg');
}


.flip-box-back {
    transform: rotateY(180deg);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fef6e4;
    margin: 10% auto;
    padding: 25px;
    width: 90%;
    max-width: 350px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #5a3e2b;
    cursor: pointer;
}

.modal-content form input,
.modal-content form button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
}

.modal-content form input {
    border: 1px solid #d1a38f;
}

.modal-content form button {
    background-color: #d4b28d;
    color: #3e2c1c;
    border: none;
    transition: background-color 0.3s;
}

.modal-content form button:hover {
    background-color: #bfa07a;
}

/* ===== FOOTER ===== */
footer {
    background-color: #d7bfa7;
    color: #3e2c1c;
    padding: 30px 20px;
    text-align: center;
    width: 100%;
    margin-top: 40px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    text-align: center;
}

.footer-section a {
    color: #3e2c1c;
    text-decoration: none;
    margin: 5px 0;
    display: block;
}

.footer-section a:hover {
    color: #fff8dc;
}

/* ===== JUSTIFICADO ===== */
.justificado {
    text-align: justify;
    text-justify: inter-word;
}

/* ===== FUENTES PERSONALIZADAS ===== */
@font-face {
    font-family: 'Mayan';
    src: url('fonts/Mayan.ttf') format('truetype');
}

@font-face {
    font-family: 'Xis';
    src: url('fonts/Xisfani.ttf') format('truetype');
}

@font-face {
    font-family: 'ele';
    src: url('fonts/Elegante.ttf') format('truetype');
}

/* --- Ajustes Flipbox para pantallas menores --- */
@media screen and (max-width: 768px) {
    /* Header ya está ajustado bien */
    
    .flip-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        max-width: 100%;
        padding: 0 10px;
    }

    .flip-box, .flip-box4 {
        width: 90%;
        max-width: 400px; /* No tan grande en móviles */
        height: auto;
        min-height: 280px; /* Mantener altura decente */
        font-size: 18px; /* Reducir tamaño letra para que no se corte */
        padding: 20px;
    }

    .flip-box-front,
    .flip-box-back {
        font-size: 16px; /* Texto más legible en móvil */
        padding: 15px;
    }

    /* Ajustar tamaño de fuente en título led */
    .titulo-led h1 {
        font-size: 2.5rem;
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Ajuste botones en menú */
    .menu-banner button {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 20px;
    }

    /* Ajuste general de sección para no saturar */
    .sections {
        padding: 2em 1em;
        font-size: 16px;
        gap: 30px;
    }
}

/* --- Ajustes para pantallas muy pequeñas --- */
@media screen and (max-width: 480px) {
    .flip-box, .flip-box4 {
        max-width: 320px;
        min-height: 220px;
        font-size: 14px;
        padding: 12px;
    }

    .flip-box-front,
    .flip-box-back {
        font-size: 13px;
        padding: 10px;
    }

    .menu-banner button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .titulo-led h1 {
        font-size: 2rem;
    }

    h1 {
        font-size: 20px;
    }
}


