/* Variables de colores de Catitas Donuts */
:root {
    --rosa-donut: #e267b0;
    --celeste-glaseado: #3ec6ea;
    --rosa-fondo: #ffe0f0;
    --gris-oscuro: #333;
    --gris-claro: #666;
    --blanco: #fff;
    --sombra: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- ESTILOS GENERALES Y FUENTES --- */
body {
    font-family: 'Baloo 2', cursive; /* Usa la fuente de Catita */
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
    color: var(--gris-oscuro);
    line-height: 1.6;
    overflow-x: hidden; /* Evita scroll horizontal */
}

h1, h2, h3 {
    font-family: 'Fredoka One', cursive; /* Fuente para títulos */
    color: var(--rosa-donut);
    text-align: center;
    margin-bottom: 20px;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.2em; }

p {
    font-family: 'Quicksand', sans-serif;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.boton, .boton-juego, .next-step-button {
    display: inline-block;
    background-color: var(--celeste-glaseado);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none; /* Asegura que no tenga borde por defecto */
    cursor: pointer;
    font-family: 'Baloo 2', cursive;
    font-size: 1.1em;
    margin: 25px;
}

.boton:hover, .boton-juego:hover, .next-step-button:hover:not(:disabled) {
    background-color: var(--rosa-donut);
    transform: translateY(-3px);
}

.next-step-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* --- HEADER --- */
header {
    background-color: var(--blanco);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--sombra);
    position: sticky;
    top: 0;
    z-index: 10;
    height: auto;
}

.logo img {
    /* height: clamp(80px, 10vw, 140px);  */
    height: 120px;
    width: auto;
    animation: flotar 3s ease-in-out infinite alternate;
}

.logo-animado {
    animation: flotar 3s ease-in-out infinite alternate;
}

@keyframes flotar {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--rosa-donut);
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--celeste-glaseado);
}

/* Botón hamburguesa */
.hamburger-menu { display:none; background:none; border:0; cursor:pointer; z-index:1001; }
.hamburger-menu .bar{ display:block; width:28px; height:3px; margin:6px 0; background:#333; transition:transform .3s, opacity .3s; }

/* Animación a X */
.hamburger-menu.is-open .bar:nth-child(1){ transform: translateY(9px) rotate(45deg); }
.hamburger-menu.is-open .bar:nth-child(2){ opacity:0; }
.hamburger-menu.is-open .bar:nth-child(3){ transform: translateY(-9px) rotate(-45deg); }

/* Nav desktop por defecto */
#main-nav ul{ display:flex; gap:1.5rem; list-style:none; margin:0; padding:0; }

/* MOBILE */
@media (max-width:768px){
  .hamburger-menu{ display:block; }

  /* Panel lateral oculto por defecto */
  #main-nav{
    position:fixed; top:0; right:0; height:100vh; width:75%; max-width:320px;
    background:#fff; box-shadow:-8px 0 24px rgba(0,0,0,.15);
    transform:translateX(100%); transition:transform .3s ease;
    z-index:1000; display:flex; align-items:flex-start;
  }
  #main-nav.is-open{ transform:translateX(0); }

  #main-nav ul{ flex-direction:column; gap:1rem; padding:2rem 1.5rem; width:100%; }

  /* Evitar scroll del body cuando abre el menú */
  body.no-scroll{ overflow:hidden; }
}


/* --- HERO SECTION --- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 40px;
  background: var(--rosa-fondo);
  flex-wrap: wrap;
}

/* --- Texto a la izquierda --- */
.hero-texto {
  flex: 1 1 400px;
  max-width: 500px;
}

.hero-texto h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--rosa-principal);
  margin-bottom: 10px;
}

.hero-texto p {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 20px;
}

.boton {
  background-color: var(--celeste);
  color: var(--rosa-donut);
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 198, 230, 0.4);
  transition: transform 0.2s ease;
}

.boton:hover {
   transform: scale(1.05);
   background-color: var(--celeste);

}

/* --- Video a la derecha --- */
.hero-video-container {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

.hero-video {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 9 / 16; /* mantiene el formato historia vertical */
  border-radius: 20px;
  object-fit: cover; /* evita deformaciones */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-texto {
    max-width: 100%;
  }

  .hero-video {
    max-width: 300px;
  }
}


/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-video {
        height: auto;
        width: 100%;
        max-width: 350px;
    }
}



/*SECCION ID SABORES CANTIDAD DE DONAS SELECCIONADAS*/

button.active {
  background-color: var(--rosa-principal);
  color: #fff;
  transform: scale(1.05);
}


/* --- SECCIÓN SABORES (Ajustes para la lógica del carrito) --- */
.sabores {
    padding: 40px 20px;
    background-color: var(--blanco);
    text-align: center;
}

.sabores h2 {
    margin-bottom: 30px;
}

.limit-selection {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column; /* Para apilar en móvil */
    align-items: center;
    gap: 10px;
}

.limit-selection p {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--gris-oscuro);
    margin-bottom: 5px;
}

.limit-selection button {
    background-color: var(--celeste-glaseado);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.limit-selection button.active {
    background-color: var(--rosa-donut);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.limit-selection button:hover {
    opacity: 0.9;
}

.total-selected {
    margin-top: 20px;
    font-size: 1.4em;
    font-weight: bold;
    color: var(--rosa-donut);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
    padding: 0 15px;
}

.card {
    background-color: var(--rosa-fondo);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-7px);
}

.card img {
    width: 120px; /* Tamaño más grande para las donas */
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 4px solid var(--rosa-donut);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: var(--rosa-donut);
    font-size: 1.4em;
    margin-bottom: 10px;
}

.card p {
    color: var(--gris-claro);
    font-size: 1em;
    margin-bottom: 15px;
    flex-grow: 1; /* Para que el texto ocupe el espacio */
}

.cantidad-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    background-color: var(--blanco);
    border-radius: 30px;
    padding: 5px 10px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    width: fit-content;
}

.cantidad-selector button {
    background-color: var(--celeste-glaseado);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.4em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease;
    margin: 0 5px;
}

.cantidad-selector button:hover {
    background-color: #2dafd4; /* Un celeste un poco más oscuro */
}

.cantidad-selector span {
    margin: 0 15px;
    font-size: 1.3em;
    font-weight: bold;
    color: var(--rosa-donut);
    min-width: 25px; /* Para que no se mueva mucho */
    text-align: center;
}

/* --- SECCIÓN SOBRE CATITA --- */
.sobre {
    background-color: var(--blanco);
    padding: 60px 20px;
    text-align: center;
    
}

/* --- SECCIÓN JUEGOS --- */
.juegos-catita {
    background-color: var(--celeste-glaseado);
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.juegos-catita h2, .juegos-catita p {
    color: white;
}

.boton-juego {
    background-color: var(--rosa-donut);
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 1.2em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* --- SECCIÓN PEDIDOS (Ajustes para el resumen del carrito) --- */
.pedidos {
    padding: 40px 20px;
    background-color: var(--blanco);
    text-align: center;
}

.pedidos form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pedidos input[type="text"],
.pedidos input[type="tel"],
.pedidos textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1em;
    width: 100%; /* Asegura que ocupen todo el ancho disponible */
    box-sizing: border-box; /* Incluye padding y border en el width */
}

.pedidos textarea {
    resize: vertical; /* Permite redimensionar verticalmente */
}

.pedidos button[type="submit"] {
    background-color: var(--rosa-donut);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pedidos button[type="submit"]:hover:not(:disabled) {
    background-color: #d15a9f; /* Un rosa un poco más oscuro */
}

.pedidos button[type="submit"]:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

#sabores-seleccionados-resumen {
    background-color: var(--rosa-fondo);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#sabores-seleccionados-resumen p {
    font-weight: bold;
    color: var(--gris-oscuro);
    font-size: 1.1em;
    margin-bottom: 10px;
}

#lista-sabores-resumen {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    color: var(--gris-claro);
    font-size: 0.95em;
    max-height: 150px; /* Para que no ocupe mucho espacio si hay muchos sabores */
    overflow-y: auto; /* Permite scroll si la lista es larga */
}

#lista-sabores-resumen li {
    padding: 5px 0;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.1);
}

#lista-sabores-resumen li:last-child {
    border-bottom: none;
}


/* --- WHATSAPP FLOAT BUTTON --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 9;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@media (max-width: 640px) {
  .whatsapp-float { bottom: 90px; width: 50px; height: 50px; font-size: 24px; }
}

/* --- FOOTER --- */
footer {
    background-color: var(--rosa-donut);
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    nav {
        display: none; /* Ocultar nav por defecto en móvil */
        width: 100%;
        order: 3; /* Para que aparezca debajo de logo y hamburguesa */
    }
    nav.active {
        display: block; /* Mostrar cuando está activo */
    }
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    nav ul li {
        margin: 10px 0;
    }
    .hamburger-menu {
        display: flex; /* Mostrar en móvil */
        position: absolute;
        right: 20px;
        top: 25px;
    }

    .hero-texto h1 {
        font-size: 2.5em;
    }
    .hero-texto p {
        font-size: 1.1em;
    }

    .cards {
        grid-template-columns: 1fr; /* Una columna en móvil */
        max-width: 300px; /* Ancho máximo para tarjetas en móvil */
        margin-left: auto;
        margin-right: auto;
    }

    .limit-selection {
        flex-direction: column;
    }
}

/* Badge "Sin TACC" sobre la tarjeta */
.card { position: relative; }

.badge-sintacc {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #2ecc71;       /* verde */
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  pointer-events: none;       /* no interfiere con clicks */
  user-select: none;
}


/* Pegatina base (responsive) */
.sticker-float{
  position: fixed;
  z-index: 120;                 /* por encima del header */
  pointer-events: none;
  width: clamp(46px, 14vw, 90px);
  height: auto;
  opacity: .95;
  will-change: transform;
  animation: floatUpDown 6s ease-in-out infinite alternate;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.12));
}

@keyframes floatUpDown{
  from{ transform: translateY(0) rotate(0deg); }
  to  { transform: translateY(-12px) rotate(2deg); }
}

.sticker-zigzag{ animation: zigzag 5s ease-in-out infinite; }
@keyframes zigzag{
  0%{ transform: translate(0,0) rotate(0); }
  25%{ transform: translate(14px,-8px) rotate(-2deg); }
  50%{ transform: translate(-14px,-4px) rotate(2deg); }
  100%{ transform: translate(0,0) rotate(0); }
}

/* posiciones móviles */
.sticker-top-left      { top: 74px; left: 10px; }
.sticker-top-right     { top: 74px; right: 12px; }
.sticker-bottom-left   { left: 10px; bottom: calc(20px + env(safe-area-inset-bottom)); }
.sticker-bottom-right  { right: 12px; bottom: calc(96px + env(safe-area-inset-bottom)); } /* arriba del botón WA */


@media (min-width: 992px){
  .sticker-float{ animation-duration: 8s; }
}


  /* pegadas a los bordes de la ventana, por debajo del header */
  .sticker-top-left  { top: calc(var(--header-h) + 12px); left: 24px; }
  .sticker-top-right { top: calc(var(--header-h) + 12px); right: 24px; }
  .sticker-bottom-left  { bottom: 40px; left: 24px; }
  .sticker-bottom-right { bottom: 140px; right: 24px; } /* evita WhatsApp */

  /* OPCIONAL: anclar a los bordes del CONTENEDOR, no de la ventana
     (así nunca pisan el título/texto). Agregá estas clases a las imágenes
     que quieras “fuera” del contenido. */
  .sticker-edge-left  { left: calc(50% - var(--container-max)/2 - 56px); }
  .sticker-edge-right { right: calc(50% - var(--container-max)/2 - 56px); }


:root{
    --container-max:1000px;
    --header-h:200px
}


/*Contruccion de dona*/
.dona-builder {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
            background-color: #ffffff;
            padding: 30px;
            border-radius: 20px;
            box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        }
        .dona-preview {
            position: relative;
            width: 250px; 
            height: 250px;
            margin-bottom: 20px;
        }
        .dona-part {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
        }
      
        #dona-base { z-index: 1; }
        #dona-glaze { z-index: 2; }
        #dona-sprinkles { z-index: 3; }

        .controls {
            display: flex;
            flex-direction: column;
            gap: 15px;
            width: 100%;
            max-width: 400px;
        }
        .control-group {
            display: flex;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .control-group button {
            background-color: #ffe0b2; 
            color: #880e4f; 
            padding: 10px 15px;
            border: 2px solid #ffab91;
            border-radius: 10px;
            font-size: 1em;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 4px #ff8a65;
        }
        .control-group button:hover {
            background-color: #ffcc80;
            transform: translateY(-2px);
            box-shadow: 0 6px #ff8a65;
        }
        .control-group button.active {
            background-color: #ffab91;
            color: white;
            box-shadow: 0 2px #d84315;
            transform: translateY(2px);
        }
        #reset-button {
            background-color: #ff7043; 
            color: white;
            padding: 15px 25px;
            border: none;
            border-radius: 30px;
            font-size: 1.1em;
            cursor: pointer;
            margin-top: 20px;
            transition: background-color 0.3s ease;
            box-shadow: 0 5px #bf360c;
        }
        #reset-button:hover {
            background-color: #e64a19;
            transform: translateY(-2px);
            box-shadow: 0 7px #bf360c;
        }

    
        .base-img { background-image: url('images/arma tu dona/Glaseado Blanco.png'); } 
        .glaseado-blanco { background-image: url('images/arma tu dona/Glaseado Blanco.png'); }
        .glaseado-chocolate { background-image: url('images/arma tu dona/Glaseado Chocolate.png'); }
        .glaseado-rosa { background-image: url('images/arma tu dona/Glaseado Rosa.png'); }

        .chispitas-colores { background-image: url('images/arma tu dona/sprinkles colorfull.png'); }
        .chispitas-corazones { background-image: url('images/arma tu dona/heart sprinkles.png'); }
        .chispitas-estrellas { background-image: url('images/arma tu dona/stars sprinkles.png'); }