:root {
    --marino: #0b1b4d;
    --marino-2: #12307f;
    --azul: #2563eb;
    --azul-claro: #eaf1ff;
    --oro: #f5b335;
    --oro-oscuro: #d99a1f;
    --texto: #0f172a;
    --suave: #64748b;
    --borde: #e2e8f0;
    --fondo: #ffffff;
    --verde: #16a34a;
    --serif: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--texto); background: var(--fondo); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.contenedor { width: min(1180px, 100% - 3rem); margin-inline: auto; }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: transform .2s, box-shadow .2s, background .2s; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.boton.grande { padding: .95rem 1.7rem; font-size: 1rem; }
.boton.acento { background: var(--oro); color: #3b2a00; box-shadow: 0 10px 24px -10px rgba(245,179,53,.8); }
.boton.acento:hover { background: #ffc24d; transform: translateY(-2px); }
.boton.vidrio { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.boton.vidrio:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }

/* Cabecera */
header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; color: #fff; }
header.solida { background: rgba(11,27,77,.88); backdrop-filter: blur(14px); border-color: rgba(255,255,255,.1); box-shadow: 0 10px 30px -20px rgba(0,0,0,.6); }
.barra { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.marca { display: flex; align-items: center; gap: .7rem; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.marca img { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.2); }
header nav { display: flex; align-items: center; gap: 2rem; font-size: .95rem; font-weight: 500; }
header nav a:not(.boton) { opacity: .8; transition: opacity .2s; position: relative; }
header nav a:not(.boton):hover { opacity: 1; }
header nav a:not(.boton)::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--oro); transition: width .25s; }
header nav a:not(.boton):hover::after { width: 100%; }
.menu-boton { display: none; width: 44px; height: 44px; background: transparent; border: 0; position: relative; cursor: pointer; }
.menu-boton span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; transition: .3s; }
.menu-boton span:first-child { top: 17px; } .menu-boton span:last-child { top: 25px; }
.menu-boton.abierto span:first-child { top: 21px; transform: rotate(45deg); }
.menu-boton.abierto span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: 11rem 0 9rem; color: #fff; background: radial-gradient(1200px 600px at 85% -10%, #2f55d4 0%, transparent 60%), linear-gradient(160deg, #081437 0%, var(--marino) 45%, var(--marino-2) 100%); overflow: hidden; }
.hero-rejilla { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; z-index: 2; }
.etiqueta { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem 1rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); font-size: .85rem; margin-bottom: 1.5rem; }
.etiqueta i { width: 8px; height: 8px; border-radius: 50%; background: var(--oro); box-shadow: 0 0 0 4px rgba(245,179,53,.25); animation: pulso 2s infinite; }
h1 { font-family: var(--serif); font-size: clamp(2.5rem, 5.4vw, 4.2rem); line-height: 1.05; letter-spacing: -.02em; font-weight: 700; }
h1 em { font-style: normal; background: linear-gradient(100deg, var(--oro), #ffe08a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-texto p { margin-top: 1.5rem; font-size: 1.2rem; color: #cbd8ff; max-width: 34rem; }
.acciones { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.sellos { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.5rem; font-size: .9rem; color: #a9bdf5; font-weight: 500; }

.granos svg { height: auto; position: absolute; fill: rgba(245,179,53,.16); animation: flota 9s ease-in-out infinite; }
.g1 { width: 46px; top: 18%; left: 4%; transform: rotate(25deg); }
.g2 { width: 30px; top: 62%; left: 44%; transform: rotate(-30deg); animation-delay: -3s; }
.g3 { width: 60px; top: 12%; right: 6%; transform: rotate(40deg); animation-delay: -5s; }
.g4 { width: 36px; bottom: 20%; right: 10%; transform: rotate(-20deg); animation-delay: -2s; }
.g5 { width: 52px; bottom: 12%; left: 12%; transform: rotate(15deg); animation-delay: -6s; }

.ola { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; fill: #fff; z-index: 3; }

/* Maqueta */
.maqueta { position: relative; perspective: 1400px; }
.ventana { background: #fff; color: var(--texto); border-radius: 1.25rem; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.1); transform: rotateY(-10deg) rotateX(4deg); transition: transform .5s; overflow: hidden; }
.maqueta:hover .ventana { transform: rotateY(-3deg) rotateX(1deg); }
.ventana-barra { display: flex; align-items: center; gap: .4rem; padding: .8rem 1rem; background: #f1f5f9; border-bottom: 1px solid var(--borde); font-size: .75rem; color: var(--suave); }
.ventana-barra i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.ventana-barra i:nth-child(1) { background: #f87171; } .ventana-barra i:nth-child(2) { background: #fbbf24; } .ventana-barra i:nth-child(3) { background: #4ade80; }
.ventana-barra span { margin-left: .75rem; }
.ventana-cuerpo { padding: 1.5rem; }
.lote-cab { display: flex; justify-content: space-between; align-items: center; }
.lote-cab small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--suave); }
.lote-cab strong { font-family: var(--serif); font-size: 2.2rem; color: var(--azul); line-height: 1; }
.estado { background: #dcfce7; color: #166534; font-weight: 600; font-size: .78rem; padding: .3rem .75rem; border-radius: 999px; }
.lote-prod { margin: .75rem 0 1.25rem; font-weight: 600; }
.linea { position: relative; display: grid; gap: .95rem; padding-left: 1.6rem; }
.linea::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--verde), #bbf7d0); }
.linea li { position: relative; font-size: .86rem; }
.linea li::before { content: ''; position: absolute; left: -1.6rem; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 3px #dcfce7; }
.linea li.act::before { background: var(--oro); box-shadow: 0 0 0 4px rgba(245,179,53,.3); animation: pulso 2s infinite; }
.linea b { display: block; }
.linea span { color: var(--suave); font-size: .78rem; }
.flota { position: absolute; background: #fff; color: var(--texto); border-radius: 1rem; padding: .8rem 1.1rem; box-shadow: 0 20px 40px -15px rgba(0,0,0,.5); font-size: .8rem; animation: flota 7s ease-in-out infinite; }
.flota strong { display: block; font-size: 1rem; color: var(--azul); }
.flota span { color: var(--suave); }
.f1 { left: -2.5rem; bottom: -1.75rem; }
.f2 { right: -1rem; top: -1.5rem; animation-delay: -3s; }

/* Cinta */
.cinta { background: #fff; overflow: hidden; padding: 1.4rem 0; border-bottom: 1px solid var(--borde); }
.cinta-pista { display: flex; gap: 3rem; width: max-content; animation: cinta 40s linear infinite; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: #94a3b8; }
.cinta-pista span::after { content: '✦'; color: var(--oro); margin-left: 3rem; font-size: 1rem; }

/* Secciones */
section { padding: 6.5rem 0; }
.titulo { max-width: 42rem; margin-bottom: 3.5rem; }
.titulo small, .sistema small { color: var(--azul); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.titulo h2, .sistema h2, .contacto h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.02em; margin-top: .6rem; }
.titulo p { color: var(--suave); margin-top: 1rem; font-size: 1.1rem; }
.titulo.claro small { color: var(--oro); }
.titulo.claro p { color: #a9bdf5; }

/* Productos */
.rejilla { display: grid; gap: 1.75rem; grid-template-columns: repeat(3, 1fr); }
.producto { position: relative; background: #fff; border: 1px solid var(--borde); border-radius: 1.5rem; padding: 1.5rem 1.5rem 1.75rem; transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden; }
.producto:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(18,48,127,.45); border-color: #bcd0ff; }
.arte { height: 180px; border-radius: 1.1rem; margin-bottom: 1.5rem; display: grid; place-items: center; overflow: hidden; }
.arte svg { width: 100%; height: 100%; transition: transform .5s; }
.producto:hover .arte svg { transform: scale(1.08); }
.arte-harina { background: linear-gradient(135deg, #fff4d6, #fde3a0); }
.arte-harina .plato { fill: #fff; opacity: .6; } .arte-harina .monton { fill: #f2c76b; } .arte-harina .puntos circle { fill: #b8862b; }
.arte-hojuela { background: linear-gradient(135deg, #e9efff, #cfdcff); }
.arte-hojuela .hoja ellipse { fill: #fff; stroke: #a9bdf5; stroke-width: 2; }
.arte-huevo { background: linear-gradient(135deg, #fff8e1, #ffe9a8); }
.arte-huevo .huevo { fill: #fff; stroke: #f2c76b; stroke-width: 3; } .arte-huevo .brillo { fill: #fff3c4; }
.foto-prod { position: absolute; inset: 1.5rem 1.5rem auto; height: 180px; width: calc(100% - 3rem); object-fit: cover; border-radius: 1.1rem; }
.producto h3 { font-family: var(--serif); font-size: 1.35rem; letter-spacing: -.01em; }
.producto p { color: var(--suave); font-size: .96rem; margin-top: .6rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.tags li { font-size: .75rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; background: var(--azul-claro); color: var(--azul); }
.nota-prod { margin-top: 2rem; text-align: center; color: var(--suave); font-size: .95rem; }

/* Proceso */
.oscuro { background: linear-gradient(160deg, #081437, var(--marino-2)); color: #fff; position: relative; overflow: hidden; }
.oscuro::before { content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%; right: -150px; top: -150px; background: radial-gradient(circle, rgba(245,179,53,.18), transparent 70%); }
.etapas { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: x; }
.etapas li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 1.25rem; padding: 1.75rem; backdrop-filter: blur(6px); transition: background .3s, transform .3s; }
.etapas li:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.etapas li span { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--oro); line-height: 1; opacity: .9; }
.etapas h3 { font-size: 1.15rem; margin: .8rem 0 .4rem; }
.etapas p { color: #a9bdf5; font-size: .94rem; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.bento-grande { grid-column: span 2; grid-row: span 2; background: linear-gradient(150deg, var(--marino), var(--marino-2)); color: #fff; border-radius: 1.75rem; padding: 2.25rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.bento-grande h3 { font-family: var(--serif); font-size: 1.8rem; line-height: 1.15; }
.bento-grande p { color: #b9c9ff; margin-top: .75rem; }
.ruta { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.ruta span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: .4rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.ruta i { width: 18px; height: 2px; background: var(--oro); }
.bento-card { background: #f8fafc; border: 1px solid var(--borde); border-radius: 1.5rem; padding: 1.6rem; transition: transform .3s, box-shadow .3s, background .3s; }
.bento-card:hover { transform: translateY(-5px); background: #fff; box-shadow: 0 24px 50px -28px rgba(18,48,127,.4); }
.ico { width: 3rem; height: 3rem; border-radius: 1rem; background: var(--azul-claro); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 1rem; }
.bento-card h3 { font-size: 1.05rem; }
.bento-card p { color: var(--suave); font-size: .9rem; margin-top: .4rem; }

/* Cifras */
.cifras-seccion { padding: 0; }
.cifras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; padding: 4rem 0; border-block: 1px solid var(--borde); }
.cifras strong { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--marino); }
.cifras span { color: var(--suave); font-size: .95rem; margin-top: .4rem; display: block; }

/* Sistema */
.sistema { padding: 5rem 0 0; }
.sistema-caja { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: 3rem 3.5rem; border-radius: 2rem; background: linear-gradient(120deg, var(--azul-claro), #fff 70%); border: 1px solid #cddcff; }
.sistema p { color: var(--suave); margin-top: .6rem; max-width: 34rem; }
.sistema .boton.acento { box-shadow: 0 14px 30px -12px rgba(245,179,53,.9); }

/* FAQ */
.faq-caja { max-width: 820px; }
.faq details { border: 1px solid var(--borde); border-radius: 1rem; padding: 1.1rem 1.4rem; margin-bottom: .75rem; background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #bcd0ff; box-shadow: 0 16px 36px -26px rgba(18,48,127,.5); }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--azul); transition: transform .3s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--suave); margin-top: .8rem; }

/* Contacto */
.contacto-seccion { padding-top: 0; }
.contacto { background: linear-gradient(150deg, #081437, var(--marino-2)); color: #fff; border-radius: 2rem; padding: 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; position: relative; overflow: hidden; }
.contacto::before { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(245,179,53,.22), transparent 70%); }
.contacto > * { position: relative; }
.contacto p { color: #b9c9ff; margin-top: .9rem; }
.datos { margin-top: 2rem; display: grid; gap: 1rem; }
.datos li { display: flex; gap: .9rem; align-items: center; }
.datos .i { width: 2.6rem; height: 2.6rem; border-radius: .9rem; background: rgba(255,255,255,.12); display: grid; place-items: center; }
form { display: grid; gap: .9rem; align-content: start; }
input, textarea, select { width: 100%; padding: .95rem 1.1rem; border-radius: .9rem; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff; font: inherit; }
select option { color: #0f172a; }
input::placeholder, textarea::placeholder { color: #8fa8ee; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--oro); border-color: transparent; }

/* Pie */
footer { padding: 3rem 0; color: var(--suave); font-size: .9rem; }
.pie { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.25rem; border-top: 1px solid var(--borde); padding-top: 2rem; }
.pie .marca { color: var(--marino); font-size: 1.15rem; }
.pie .marca img { box-shadow: none; width: 36px; height: 36px; }
.pie nav { display: flex; gap: 1.5rem; }
.pie nav a:hover { color: var(--azul); }

.whatsapp { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(37,211,102,.8); z-index: 40; transition: transform .2s; }
.whatsapp:hover { transform: scale(1.1); }

/* Animaciones */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes flota { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-16px); } }
@keyframes pulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(245,179,53,.5); } 50% { box-shadow: 0 0 0 8px rgba(245,179,53,0); } }
@keyframes cinta { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* Adaptable */
@media (max-width: 960px) {
    .hero { padding: 8.5rem 0 7rem; }
    .hero-rejilla { grid-template-columns: 1fr; }
    .ventana { transform: none; } .f1 { left: 0; } .f2 { right: 0; }
    .rejilla { grid-template-columns: 1fr; }
    .etapas { grid-template-columns: 1fr 1fr; }
    .bento { grid-template-columns: 1fr 1fr; }
    .bento-grande { grid-column: span 2; grid-row: auto; }
    .cifras { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
    .contacto { grid-template-columns: 1fr; padding: 2.25rem; }
    .menu-boton { display: block; }
    header nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.5rem 1.5rem; background: rgba(11,27,77,.97); backdrop-filter: blur(14px); transform: translateY(-120%); transition: transform .3s; }
    header nav.abierto { transform: none; }
    header nav a:not(.boton) { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
    header nav .boton { margin-top: 1rem; }
    section { padding: 4.5rem 0; }
    .sistema-caja { padding: 2rem; }
}
@media (max-width: 560px) {
    .etapas, .bento { grid-template-columns: 1fr; }
    .bento-grande { grid-column: auto; }
    .flota { display: none; }
}
