/* José Barragán — estilos (inspiración: Mondial Foods + Yo Exporto Aceite) */
:root {
  /* Colores de la marca (etiquetas José Barragán) */
  --green: #3e5f3a;      /* Olive Green */
  --green-dark: #2a4227;
  --yellow: #d4af37;     /* Gold */
  --yellow-soft: #f3ead0;
  --bg: #ffffff;
  --bg-alt: #f7f3e8;     /* Cream */
  --ink: #2b2b2b;        /* Charcoal */
  --muted: #5c5d55;
  --line: #e4ddca;
  --radius: 10px;
  --title: "Montserrat", system-ui, sans-serif;
  --display: "Oswald", "Montserrat", sans-serif;
  --text: "Open Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--text); color: var(--ink); background: var(--bg); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 960px; }
.center { text-align: center; }

h1, h2, h3, h4 { font-family: var(--title); line-height: 1.2; }
h2 { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--green-dark); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: .35rem; }

/* Idiomas: se muestra solo el texto del idioma activo */
html[lang="en"] [data-l="es"],
html[lang="es"] [data-l="en"] { display: none !important; }

/* Páginas: solo una visible */
.page { display: none; }
.page.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.btn { display: inline-block; background: var(--green); color: #fff; padding: .85rem 1.6rem; border-radius: 4px; text-decoration: none; font: 700 .85rem var(--title); text-transform: uppercase; letter-spacing: .06em; border: 0; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--green-dark); }
.btn--light { background: var(--yellow); color: var(--green-dark); }
.btn--light:hover { background: #e2c25a; }
.muted { color: var(--muted); }
.link { color: var(--green); font-weight: 600; text-decoration: none; }

/* Barra superior */
.topbar { background: var(--green-dark); color: #e9ecd9; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar__contact { display: flex; gap: 1.5rem; }
.topbar a { text-decoration: none; }
.langs button { background: none; border: 0; color: #e9ecd9; font: 600 .8rem var(--title); padding: .2rem .45rem; cursor: pointer; opacity: .6; }
.langs button.on { opacity: 1; color: var(--yellow); }

/* Cabecera estilo Mondial: logo en caja blanca + barra de color */
.header { position: sticky; top: 0; z-index: 50; display: flex; height: 84px; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.header__logo { background: #fff; padding: 6px 28px; display: flex; align-items: center; }
.header__logo img { height: 72px; width: auto; }
.header__bar { flex: 1; background: var(--green); display: flex; align-items: center; justify-content: flex-end; padding-right: max(16px, (100vw - 1160px) / 2); }
.nav { display: flex; height: 100%; }
.nav a { display: flex; align-items: center; padding: 0 1.3rem; color: #fff; text-decoration: none; font: 600 .88rem var(--title); text-transform: uppercase; letter-spacing: .05em; border-bottom: 4px solid transparent; transition: background .2s; }
.nav a:hover { background: var(--green-dark); }
.nav a.current { border-bottom-color: var(--yellow); background: var(--green-dark); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem 1rem; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* Portada a pantalla completa, titular centrado (estilo Aceites de las Heras) */
.hero { position: relative; min-height: calc(100vh - 122px); display: flex; align-items: center; justify-content: center; text-align: center; background-size: cover; background-position: center; background-attachment: fixed; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(25, 30, 10, .55); }
.hero__content { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero__kicker { display: inline-block; border-top: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); color: var(--yellow); font: 500 .85rem var(--display); text-transform: uppercase; letter-spacing: .3em; padding: .35rem .2rem; margin-bottom: 1.4rem; }
.hero h1 { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .03em; font-size: clamp(2.2rem, 5.2vw, 4rem); max-width: 900px; text-shadow: 0 3px 16px rgba(0, 0, 0, .35); }
.hero__text { font-size: 1.12rem; max-width: 640px; margin: 1.2rem 0 2.2rem; opacity: .95; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.btn--outline { background: transparent; border: 2px solid #fff; }
.btn--outline:hover { background: #fff; color: var(--green-dark); }

/* Banner de página estilo Mondial */
.banner { position: relative; height: 300px; display: grid; place-items: center; background-size: cover; background-position: center; }
.banner::before { content: ""; position: absolute; inset: 0; background: rgba(30, 38, 8, .55); }
.banner h1 { position: relative; color: #fff; font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: .05em; text-shadow: 0 3px 12px rgba(0, 0, 0, .4); text-align: center; padding: 0 16px; }

.section { padding: 4.5rem 0; }
.lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 2rem; }

/* Inicio */
.intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; padding: 4.5rem 0; align-items: start; }
.intro p { color: var(--muted); margin-bottom: 1rem; }
.highlights { list-style: none; display: grid; gap: 1rem; }
.highlights li { background: var(--bg-alt); border-left: 5px solid var(--yellow); padding: 1rem 1.2rem; color: var(--muted); }
.highlights strong { display: block; font: 700 1rem var(--title); color: var(--green-dark); text-transform: uppercase; letter-spacing: .06em; }

.band { background: var(--bg-alt); padding: 4.5rem 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 1.5rem; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .07); transition: transform .25s; }
.card:hover { transform: translateY(-4px); }
.card__img { aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.card__img.card__img--bottle, .product__img.product__img--bottle { background-color: #efe9dc; background-size: contain; background-repeat: no-repeat; }
.card__img.card__img--logo, .product__img.product__img--logo { background-color: #fff; background-size: contain; background-repeat: no-repeat; }
.card__body { padding: 1.4rem 1.6rem; border-top: 5px solid var(--green); }
.card__body p { color: var(--muted); }

/* Pasos numerados estilo Yo Exporto */
.num { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); color: var(--green-dark); font: 800 1.4rem var(--title); flex-shrink: 0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2rem; text-align: center; }
.steps .num { margin-bottom: .8rem; }
.steps p { color: var(--muted); font-size: .95rem; }

.intro__ctas { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.2rem; }

/* Bloque "La empresa": fichas con foto */
.company { padding: 4.5rem 0; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.5rem; }
.tile { position: relative; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.6rem; color: #fff; text-decoration: none; background-size: cover; background-position: center; border-radius: var(--radius); overflow: hidden; }
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25, 30, 10, .05) 30%, rgba(25, 30, 10, .85)); transition: background .3s; }
.tile:hover::before { background: linear-gradient(180deg, rgba(85, 105, 31, .35), rgba(25, 30, 10, .9)); }
.tile h3, .tile p { position: relative; }
.tile h3 { font: 500 1.5rem var(--display); text-transform: uppercase; letter-spacing: .05em; }
.tile p { opacity: .9; font-size: .95rem; }

.cta { background: var(--green); color: #fff; padding: 2.6rem 0; }
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0; }

/* Quiénes somos */
.logos { display: flex; justify-content: center; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin: 0 auto 1rem; }
.logos img { height: 170px; width: auto; }
.logos + p { margin-bottom: 3rem; font-style: italic; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 3.5rem; }
.mv > div { background: var(--bg-alt); padding: 2rem; border-top: 5px solid var(--green); }
.mv p { color: var(--muted); }
.values { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.values li { border: 1px solid var(--line); padding: 1.4rem; border-radius: var(--radius); }
.values h3 { color: var(--green); }
.values p { color: var(--muted); font-size: .95rem; }

/* Productos */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 4rem; }
.product--reverse .product__img { order: 2; }
.product__img { aspect-ratio: 4 / 3; background-size: cover; background-position: center; border-radius: var(--radius); }
.product__text p { color: var(--muted); margin-bottom: 1.2rem; }
.product__text h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--yellow); margin-bottom: .6rem; }
.product__logo { height: 110px; width: auto; margin-bottom: 1rem; }
.soon { text-align: center; border: 2px dashed var(--yellow); border-radius: var(--radius); padding: 2rem; background: var(--yellow-soft); }
.soon h3 { font: 500 1.4rem var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--green-dark); }
.soon p { color: var(--muted); }
.footer__tagline { font: 400 .8rem var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); margin-top: .4rem; }
.ticks { list-style: none; margin-bottom: 1.8rem; display: grid; gap: .4rem; }
.ticks li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: .6rem; }

/* Exportación */
.process { list-style: none; display: grid; gap: 1.2rem; margin-bottom: 3.5rem; }
.process li { display: flex; gap: 1.4rem; align-items: flex-start; background: var(--bg-alt); padding: 1.4rem 1.6rem; border-radius: var(--radius); }
.process p { color: var(--muted); }
.markets { background: var(--yellow-soft); padding: 2.4rem; border-radius: var(--radius); }
.markets p { color: var(--muted); }
.route { display: flex; align-items: center; gap: .8rem; margin-top: 1.6rem; font: 700 1rem var(--title); color: var(--green-dark); flex-wrap: wrap; }
.route__line { flex: 1; min-width: 30px; border-top: 3px dashed var(--green); }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact > div > p { color: var(--muted); }
.contact__list { list-style: none; display: grid; gap: 1rem; margin: 1.8rem 0; }
.contact__list li { display: grid; }
.contact__list strong { font: 700 .75rem var(--title); text-transform: uppercase; letter-spacing: .1em; color: var(--green); }
.contact__list a { text-decoration: none; font-size: 1.05rem; }
.map { width: 100%; height: 240px; border: 0; border-radius: var(--radius); }
.form { background: var(--bg-alt); padding: 2rem; border-radius: var(--radius); display: grid; gap: 1rem; align-content: start; border-top: 5px solid var(--yellow); }
.form label { display: grid; gap: .3rem; font-size: .88rem; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--green); border-color: transparent; }
.form .btn { justify-self: start; }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--green); flex-shrink: 0; }
.form .check a { color: var(--green); }
.form__legal { font-size: .75rem; color: var(--muted); line-height: 1.5; }
.map--placeholder { display: grid; place-items: center; align-content: center; gap: .8rem; text-align: center; padding: 1.5rem; background: var(--bg-alt) url("../img/contenedores.jpg") center / cover; position: relative; overflow: hidden; }
.map--placeholder::before { content: ""; position: absolute; inset: 0; background: rgba(247, 243, 232, .88); }
.map--placeholder > * { position: relative; }
.map--placeholder p { font-size: .8rem; color: var(--muted); max-width: 320px; }

/* Páginas legales */
.legal h1 { font: 500 clamp(1.8rem, 4vw, 2.6rem) var(--display); text-transform: uppercase; color: var(--green-dark); margin-bottom: 1.5rem; }
.legal h2 { font: 700 1.1rem var(--title); text-transform: none; letter-spacing: 0; margin: 1.8rem 0 .5rem; }
.legal p, .legal li { color: var(--muted); margin-bottom: .6rem; }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--green); }
.footer__legal { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; margin-top: .4rem; }

.form .btn:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { font-size: .92rem; }
.form__status.ok { color: var(--green); font-weight: 600; }
.form__status.fallback { color: var(--muted); }

/* Pie */
.footer { background: var(--green-dark); color: #dfe3cc; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding: 3rem 0; }
.footer__logo { width: 90px; border-radius: 50%; margin-bottom: 1rem; }
.footer h4 { color: var(--yellow); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .8rem; }
.footer__grid > div { display: grid; gap: .35rem; align-content: start; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); text-align: center; padding: 1rem; font-size: .82rem; opacity: .75; }

.whatsapp { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); z-index: 60; }

/* Móvil */
@media (max-width: 960px) {
  .header { height: 70px; }
  .header__logo { padding: 4px 14px; }
  .header__logo img { height: 60px; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; height: auto; flex-direction: column; background: var(--green); }
  .nav.open { display: flex; }
  .nav a { padding: 1rem 1.4rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .intro, .cards, .mv, .product, .contact, .footer__grid, .tiles { grid-template-columns: 1fr; }
  .hero { background-attachment: scroll; min-height: 80vh; }
  .tile { min-height: 220px; }
  .product--reverse .product__img { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .banner { height: 200px; }
}
@media (max-width: 560px) {
  .topbar__contact a:first-child { display: none; }
  .hero__kicker { letter-spacing: .12em; font-size: .72rem; }
  .steps, .values { grid-template-columns: 1fr; }
  .process li { flex-direction: column; }
}
