:root{--verde:#2b3b35;--crema:#f6f1e8;--madera:#9a6a3f;--texto:#1d2a25}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,Segoe UI,Roboto,sans-serif;color:var(--texto);background:var(--crema)}
.pantalla { display: none; min-height: 100vh; padding: 24px 16px 40px; max-width: 1000px; margin: 0 auto; text-align: center; }
.pantalla.activa{display:block}
h1{font-size:clamp(2rem,8vw,4rem);margin:.3em 0}
h2{font-family:Georgia,serif;font-size:clamp(1.8rem,6vw,2.8rem);margin:.6em 0}
.hero{
  max-width:none;
  display:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#fff;
  background: linear-gradient(rgba(0,0,0,.25),rgba(0,0,0,.35)), url("fondo.jpg") center/cover no-repeat;
}
.hero.activa{display:flex}
.hero p{font-size:clamp(1rem,3.5vw,1.5rem);max-width:600px}
.logo{display:block;width:130px;height:130px;object-fit:contain;margin:0 auto 8px;}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:12px;background:var(--madera);color:#fff;
 font-weight:700;cursor:pointer;text-decoration:none;padding:12px 22px;font-size:1rem}
.btn.grande{padding:18px 40px;font-size:1.2rem;margin-top:16px;max-width:100%}
.btn.wa{background:#1f8f4d;width:100%}
.btn.off{background:#999;pointer-events:none}
.volver{position:absolute;left:16px;top:16px;background:none;border:0;font-size:1rem;cursor:pointer;color:inherit;font-weight:600}
.pantalla{position:relative}
.tipos{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px}
.tipo-btn{border:0;border-radius:18px;background:#fff;padding:12px;cursor:pointer;box-shadow:0 4px 14px #0002;font-size:1.6rem;font-family:Georgia,serif}
.tipo-btn:hover{transform:translateY(-3px)}
.foto{display:flex;align-items:center;justify-content:center;aspect-ratio:1;border-radius:12px;background:#eee center/cover;font-size:4rem;margin-bottom:8px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:20px}
.card{background:#fff;border-radius:16px;padding:14px;box-shadow:0 4px 14px #0002;display:flex;flex-direction:column;gap:6px}
.card .foto{font-size:3rem}
.card h3{margin:4px 0 0}.card small{color:#666}
.precio{font-size:1.4rem;font-weight:700}.precio.falta{font-size:1rem;color:#b3261e}
.resumen{background:#fff;border-radius:16px;padding:20px;max-width:520px;margin:20px auto;box-shadow:0 4px 14px #0002;text-align:left}
.fila{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #eee}
.fila.total{font-size:1.4rem;border:0}
.qty{display:flex;align-items:center;gap:14px}
.qty button{width:36px;height:36px;border-radius:50%;border:1px solid var(--verde);background:#fff;font-size:1.3rem;cursor:pointer}
.aviso{color:#b3261e;font-weight:600}.nota{font-size:.85rem;color:#666;text-align:center}
@media(max-width:520px){.tipos{gap:10px}.btn.grande{padding:16px 24px}}
#inicio .logo {
  display: block !important;
  width: 200px !important;
  height: 200px !important;
  object-fit: contain !important;
  margin: 0 auto 16px !important;
}
/* Diseño de la pantalla para elegir el tipo de huevo */
#tipo {
  position: relative;
  background: linear-gradient(135deg, #fffaf0, #f0e3cf);
  color: #24352d;
  min-height: 100vh;
  padding: 35px 24px 60px;
  box-sizing: border-box;
}

#tipo h2 {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 30px 0;
  color: #24352d;
}

#tipo .tipos {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 300px)) !important;
  justify-content: center !important;
  gap: 24px !important;
  max-width: 650px;
  margin: 35px auto !important;
}

#tipo .tipo-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px;
  min-height: 230px !important;
  padding: 28px 20px !important;
  border: 2px solid #dfc7a8 !important;
  border-radius: 22px !important;
  background: #fffdf8 !important;
  color: #24352d !important;
  font-family: inherit;
  font-size: 1.25rem !important;
  cursor: pointer !important;
  box-shadow: 0 8px 24px rgba(65, 43, 20, 0.10) !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

#tipo .tipo-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(65, 43, 20, 0.16) !important;
  border-color: #a97445 !important;
}

#tipo .foto {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100px !important;
  height: 100px !important;
  margin: 0 auto 8px !important;
  border-radius: 50% !important;
  background: #f5eadc !important;
  font-size: 3rem !important;
}
#tipo .volver {
  position: static !important;
  display: inline-block !important;
  margin: 0 auto 15px !important;
  padding: 10px 18px !important;
  border: 1px solid #d8c2a6 !important;
  border-radius: 10px !important;
  background: #fffdf8 !important;
  color: #24352d !important;
  cursor: pointer;
}

@media (max-width: 600px) {
  #tipo .tipos {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 340px;
  }

  #tipo .tipo-btn {
    min-height: 180px !important;
  }
}
/* Corrección visual de la pantalla de selección de huevos */
#tipo {
  background: linear-gradient(135deg, #fffaf0, #f0e3cf) !important;
  color: #24352d !important;
  min-height: 100vh !important;
  padding: 40px 24px !important;
  box-sizing: border-box !important;
}

#tipo h2 {
  font-family: Georgia, serif !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  margin: 30px 0 !important;
  color: #24352d !important;
}

#tipo .tipos {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(220px, 300px)) !important;
  justify-content: center !important;
  gap: 24px !important;
  margin: 30px auto !important;
}

#tipo button.tipo-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 180px !important;
  padding: 24px !important;
  border: 2px solid #d8c2a6 !important;
  border-radius: 20px !important;
  background: #fff !important;
  color: #24352d !important;
  font-size: 1.3rem !important;
  cursor: pointer !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
}

#tipo button.tipo-btn:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14) !important;
}

#tipo .foto {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 90px !important;
  height: 90px !important;
  min-height: 90px !important;
  margin: 0 auto 16px !important;
  border-radius: 50% !important;
  background: #f5eadc !important;
  font-size: 2.5rem !important;
}

#tipo button.volver {
  position: static !important;
  display: inline-block !important;
  margin: 0 auto 20px !important;
  padding: 10px 18px !important;
  border: 1px solid #d8c2a6 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #24352d !important;
}
@media (max-width: 600px) {
  #tipo .tipos {
    grid-template-columns: 1fr !important;
  }

  #tipo button.tipo-btn {
    min-height: 140px !important;
  }
}

/* Corrección de la pantalla de selección */
#tipo.pantalla.activa {
  display: block !important;
  min-height: 100vh;
  max-width: none;
  width: 100%;
  padding: 40px 24px;
  background: linear-gradient(135deg, #fffaf0, #f0e3cf);
  color: #24352d;
  text-align: center;
}

#tipo .tipos {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(220px, 300px)) !important;
  justify-content: center !important;
  gap: 24px !important;
  margin: 30px auto !important;
}

#tipo .tipo-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 180px !important;
  border: 2px solid #d8c2a6 !important;
  border-radius: 20px !important;
  background: #fff !important;
  color: #24352d !important;
  padding: 24px !important;
  font-size: 1.3rem !important;
}

#tipo .foto {
  width: 90px !important;
  height: 90px !important;
  margin: 0 auto 16px !important;
  border-radius: 50% !important;
  background: #f5eadc !important;
  font-size: 2.5rem !important;
}

@media (max-width: 600px) {
  #tipo .tipos {
    grid-template-columns: 1fr !important;
  }
}
/* Corrección final de las tarjetas BLANCO y COLOR */
#tipo .tipos {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(220px, 300px)) !important;
  justify-content: center !important;
  gap: 24px !important;
  margin: 30px auto !important;
}

#tipo .tipo-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 180px !important;
  padding: 24px !important;
  border: 2px solid #d8c2a6 !important;
  border-radius: 20px !important;
  background: #fff !important;
  color: #24352d !important;
  font-size: 1.3rem !important;
  cursor: pointer !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
}

#tipo .foto {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 90px !important;
  height: 90px !important;
  margin: 0 auto 16px !important;
  border-radius: 50% !important;
  background: #f5eadc !important;
  font-size: 2.5rem !important;
}

@media (max-width: 600px) {
  #tipo .tipos {
    grid-template-columns: 1fr !important;
  }
}
/* Fondo fotográfico en las pantallas interiores */
#productos,
#tipo,
#confirmar {
  background-image:
    linear-gradient(rgba(248, 241, 228, 0.30), rgba(248, 241, 228, 0.30)),
    url("./fondo-huevos-original.png") !important;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: transparent;
}
/* Mantener legibles las tarjetas y el pedido */
#productos .card,
#confirmar .resumen,
#tipo .tipo-btn {
  position: relative;
}

/* Fondo de las pantallas: una sola imagen, sin mosaico */
#productos.pantalla,
#tipo.pantalla,
#confirmar.pantalla {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  box-sizing: border-box;

  background-image:
    linear-gradient(rgba(248, 241, 228, 0.25), rgba(248, 241, 228, 0.25)),
    url("./fondo-huevos-original.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0;
}

/* Evitar que el fondo se repita */
body {
  background-repeat: no-repeat;
}

/* Adaptación a celulares */
@media (max-width: 600px) {
  #productos.pantalla,
  #tipo.pantalla,
  #confirmar.pantalla {
    padding: 16px;
  }
}

/* Corrección definitiva del fondo de la pantalla de selección */
#tipo.pantalla,
#tipo.pantalla.activa {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh !important;
  margin: 0 !important;
  background-image:
    linear-gradient(rgba(248, 241, 228, 0.20), rgba(248, 241, 228, 0.20)),
    url("./fondo-huevos-original.png") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
}

#tipo .foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

