/* ==========================================================
   1. VARIABLES Y BASES
========================================================== */
:root {
    --bg-color: #f2e3bb;
    --accent-color: #8b0a1a;
    --text-main: #2c2c2c;
    --text-light: #6B6B6B;
    --gold-brown: #8B5E3C;
    --green-accent: #2a9401;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    overflow-x: hidden; 
}

/* ==========================================================
   2. NAVEGACIÓN
========================================================== */
.minimal-nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 30px 8%; 
    position: absolute; 
    width: 100%; 
    z-index: 100; 
}

.logo { 
    font-family: 'Playfair Display', serif; 
    font-weight: 700; 
    letter-spacing: 4px; 
    font-size: 2rem; 
    color: var(--text-main);
}

.nav-cta a { 
    text-decoration: none; 
    color: var(--text-main); 
    border-bottom: 2px solid var(--green-accent); 
    padding-bottom: 4px; 
    font-weight: 600;
}

/* ==========================================================
   3. HERO (RESTAURADO)
========================================================== */
.hero-minimal {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    gap: 60px;
}

.product-display {
    flex: 0.9;
    display: grid;
    place-items: center;
    position: relative;
    height: 600px;
}

.decorative-ring-img {
    grid-area: 1 / 1;
    width: 620px;
    height: auto;
    z-index: 2;
    pointer-events: none;
    margin-top: -10px; 
    opacity: 1 !important; 
    transform: rotate(0deg); /* Aquí puedes añadir animación de rotación si gustas */
}

.hero-img {
    grid-area: 1 / 1;
    width: 290px;
    z-index: 3;
    filter: drop-shadow(0 40px 60px rgba(0,0,0,0.15));
    animation: floatOriginal 6s ease-in-out infinite;
    position: relative; 
    left: -7px;
}

.hero-text {
    flex: 1.1;
    z-index: 10;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==========================================================
   4. BENEFICIOS
========================================================== */
.hero-benefits { 
    display: flex;
    gap: 20px; 
    margin-top: 30px; 
}
.benefit-item { text-align: center; flex: 1; }
.benefit-icon { width: 45px; height: 45px; object-fit: contain; margin-bottom: 10px; }
.benefit-item h4 { font-size: 0.85rem; text-transform: uppercase; color: var(--gold-brown); letter-spacing: 1px; }
.benefit-item p { font-size: 0.75rem; color: var(--text-light); }

.btn-pedir-ahora { 
    display: inline-block; 
    margin-top: 40px; 
    padding: 18px 50px; 
    background: var(--gold-brown); 
    color: white; 
    text-decoration: none; 
    border-radius: 50px; 
    font-weight: 700; 
    transition: 0.3s ease;
}
.btn-pedir-ahora:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(139, 94, 60, 0.3); }

/* ==========================================================
   5. SECCIONES NARRATIVAS (ESTILO HUMANO)
========================================================== */
.philosophy { padding: 100px 5%; background-color: #FDF5E6; text-align: center; }

.tag {
    display: inline-block;
    background-color: rgba(42, 148, 1, 0.1);
    color: var(--green-accent);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.philosophy-section { padding: 100px 10%; background-color: var(--bg-color); }

.about-narrative { max-width: 800px; margin: 0 auto 50px; text-align: center; }

.human-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-main);
    font-style: italic;
}

.info-container { max-width: 1200px; margin: 0 auto; }

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: var(--text-main);
    text-align: center;
}

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.info-card {
    background: #fff;
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.info-card:hover { transform: translateY(-10px); }
.info-card h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin-bottom: 20px; }
.nutrition-card { border-top: 6px solid var(--green-accent); }
.ingredients-card { border-top: 6px solid var(--gold-brown); }

.ingredient-list { list-style: none; padding: 0; }
.ingredient-list li {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-light);
    position: relative;
    padding-left: 20px;
}
.ingredient-list li::before {
    content: "•";
    color: var(--gold-brown);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ==========================================================
   6. CARRUSEL (RESTAURADO Y ESTABLE)
========================================================== */
.product-viewer { padding: 80px 5%; text-align: center; }

.main-window { 
    width: 100%; 
    max-width: 800px; 
    height: 500px; 
    margin: 0 auto; 
    background-color: #fff; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Importante: Mantener estas reglas para que el carrusel no "salte" */
.carousel, .carousel-inner, .carousel-item { width: 100%; height: 100%; }

.carousel-item img { 
    width: 100% !important;
    height: 100% !important;
    object-fit: contain; 
    padding: 40px;
    display: block;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: invert(1) grayscale(100%) brightness(0.2);
    width: 40px; height: 40px;
}

.thumb-indicators { position: static; margin-top: 30px; display: flex; justify-content: center; gap: 12px; }
.thumb-indicators li {
    width: 40px; height: 6px; border-radius: 10px;
    background-color: var(--gold-brown) !important;
    opacity: 0.2; transition: all 0.3s ease; border: none;
}
.thumb-indicators li.active { opacity: 1; width: 70px; background-color: var(--accent-color) !important; }

/* ==========================================================
   7. FORMULARIO DE PEDIDO
========================================================== */
.order-page-bg { background-color: #FDF5E6; min-height: 100vh; }
.order-full-screen { display: flex; justify-content: center; align-items: center; padding: 120px 5% 60px; }
.order-card { background: #fff; padding: 50px; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); max-width: 550px; width: 100%; text-align: center; }
.order-header-main h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--text-main); margin-bottom: 10px; }
.order-form-standalone { text-align: left; }
.input-field { margin-bottom: 25px; }
.input-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gold-brown); margin-bottom: 8px; text-transform: uppercase; }
.input-field input, .input-field select, .input-field textarea { 
    width: 100%; padding: 15px; border: 1px solid #E0E0E0; border-radius: 10px; background-color: #FAFAFA; 
}

.legal-disclosure {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 20px 0;
    line-height: 1.4;
    border-left: 2px solid var(--accent-color);
    padding-left: 10px;
}

.btn-confirm { width: 100%; padding: 18px; background-color: var(--green-accent); color: #fff; border: none; border-radius: 50px; font-weight: 700; cursor: pointer; transition: transform 0.3s ease; }
.btn-confirm:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(42, 148, 1, 0.3); }

/* ==========================================================
   8. FOOTER Y RESPONSIVE
========================================================== */
.minimal-footer { padding: 60px 40px; text-align: center; font-size: 0.9rem; color: var(--text-light); }
.footer-links { margin-bottom: 10px; }
.footer-links a { color: var(--text-main); text-decoration: none; font-weight: 600; }

@media (max-width: 768px) {
    .hero-minimal { flex-direction: column; padding: 120px 5% 60px 5%; text-align: center; min-height: auto; }
    .product-display { order: -1; height: 350px; }
    .decorative-ring-img { width: 380px; opacity: 0.5; }
    .hero-img { width: 175px; left: -5px;}
    .hero-text h1 { font-size: 2.1rem; }
    .info-grid { grid-template-columns: 1fr; }
    .main-window { height: 350px; }
}

/* ==========================================================
   9. KEYFRAMES
========================================================== */
@keyframes floatOriginal {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ==========================================================
   10. ESTILOS DE REDES SOCIALES (NUEVO - SIN AFECTAR LO ANTERIOR)
========================================================== */
.card {
  max-width: fit-content;
  margin: 20px auto; /* Centrado automático */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: 0.5s;
  background-color: transparent;
  border: none;
}

.card ul {
  padding: 1rem;
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

.card ul li { cursor: pointer; position: relative; list-style: none; }

.svg {
  transition: all 0.3s;
  padding: 1rem;
  height: 60px;
  width: 60px;
  border-radius: 100%;
  color: var(--gold-brown);
  fill: currentColor;
  background: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  position: relative;
  z-index: 10;
}

.text {
  opacity: 0;
  border-radius: 5px;
  padding: 5px 10px;
  transition: all 0.3s;
  color: white;
  background-color: var(--accent-color);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  font-size: 0.75rem;
}

.iso-pro:hover .text { opacity: 1; bottom: -45px; }
.iso-pro:hover a > .svg { transform: translate(10px, -10px); }

.iso-pro span {
  opacity: 0;
  position: absolute;
  top: 0; left: 0;
  border: 1px solid var(--gold-brown);
  background-color: rgba(139, 94, 60, 0.1);
  border-radius: 50%;
  transition: all 0.3s;
  height: 60px;
  width: 60px;
  z-index: 5;
}

.iso-pro:hover span { opacity: 1; }
.iso-pro:hover span:nth-child(1) { opacity: 0.2; transform: translate(3px, -3px); }
.iso-pro:hover span:nth-child(2) { opacity: 0.4; transform: translate(6px, -6px); }
.iso-pro:hover span:nth-child(3) { opacity: 0.6; transform: translate(9px, -9px); }

/* ==========================================================
   11. ANIMACIONES DE ENTRADA Y SCROLL (NUEVO)
========================================================== */
/* Animaciones de carga (Entrada) */
.fade-in-load {
    animation: fadeInLoad 1.2s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.fade-in-load-delay-1 { animation-delay: 0.3s; }
.fade-in-load-delay-2 { animation-delay: 0.6s; }

@keyframes fadeInLoad {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animaciones al hacer scroll */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   12. MENÚ MODAL (NUEVO)
========================================================== */
.modal-content {
    background-color: #FDF5E6;
    border: none;
    border-radius: 20px;
}

.modal-header {
    border-bottom: none;
}

.menu-item-card {
    background: #fff;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.menu-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.menu-item-card:hover {
    transform: translateY(-5px);
}

.menu-item-card .carousel-item img {
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
}

/* ==========================================================
   13. TEXTO BRILLANTE (GLOW TEXT)
========================================================== */
.glow-text-btn {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(
        120deg,
        var(--accent-color) 0%,
        var(--accent-color) 40%,
        #FFFFFF 50%,
        var(--accent-color) 60%,
        var(--accent-color) 100%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textShine 3s linear infinite;
    transition: transform 0.3s ease;
}

.glow-text-btn:hover {
    transform: scale(1.05);
    text-decoration: none;
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}
