/* ============================================================
   Finca La Brasa — hoja de estilos compartida (EN y ES)
   Paleta: marrón #3D2817 · naranja #D97236 (solo fondos/acentos
   grandes) · naranja oscuro #B85A28 (texto de acento, cumple
   WCAG AA) · beige #F5E6D3
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --brown: #3D2817;
    --brown-2: #5a3d2a;
    --orange: #D97236;
    --orange-dark: #B85A28;
    --beige: #F5E6D3;
    --cream: #FBF5EC;
    --text: #4a4a4a;
    --white: #FFFFFF;
    --success: #2E7D32;
    --error: #B3261E;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--brown);
    line-height: 1.6;
    background: var(--white);
}

h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 700; }

img { max-width: 100%; height: auto; display: block; }

/* Accesibilidad ------------------------------------------------ */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--brown);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    z-index: 2000;
    border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
    outline: 3px solid var(--orange-dark);
    outline-offset: 2px;
}
.contact a:focus-visible, .contact button:focus-visible,
.contact input:focus-visible, .contact textarea:focus-visible,
.contact select:focus-visible {
    outline-color: var(--beige);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Barra superior fija ------------------------------------------ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 5%;
    background: rgba(251, 245, 236, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(61, 40, 23, 0.12);
}

.topbar-logo img { height: 38px; width: auto; }

.topbar-nav { display: flex; align-items: center; gap: 0.75rem; }

.topbar-cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.4rem 1.3rem;
    background: var(--orange-dark);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.topbar-cta:hover { background: var(--brown); }

.topbar-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.4rem 0.6rem;
    color: var(--brown);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}
.topbar-link:hover { color: var(--orange-dark); }
@media (max-width: 560px) { .topbar-link { display: none; } }

.lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0.4rem 0.9rem;
    border: 2px solid var(--brown);
    border-radius: 30px;
    color: var(--brown);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}
.lang-link:hover { background: var(--beige); }

/* Hero --------------------------------------------------------- */
.hero {
    background: linear-gradient(135deg, var(--beige) 0%, #ffffff 60%);
    padding: 3.5rem 5% 4rem;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.logo-header { max-width: 240px; margin-bottom: 1.75rem; }

.hero-content h1 { font-size: 3rem; margin-bottom: 1rem; line-height: 1.12; }

.hero-tagline {
    font-size: 1.35rem;
    color: var(--orange-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-text { font-size: 1.15rem; margin-bottom: 1.75rem; color: var(--text); max-width: 34rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 52px;
    padding: 0.9rem 2.2rem;
    background: var(--orange-dark);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 6px 22px rgba(184, 90, 40, 0.35);
}
.cta-primary:hover { background: var(--brown); transform: translateY(-2px); }

.cta-note { font-size: 0.9rem; color: var(--text); }

.trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(61, 40, 23, 0.15);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--brown-2);
    list-style: none;
}

.hero-image img { width: 100%; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }

/* Secciones ---------------------------------------------------- */
.section { padding: 4.5rem 5%; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-title { text-align: center; font-size: 2.6rem; margin-bottom: 0.75rem; }
.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--orange-dark);
    margin-bottom: 3rem;
    font-weight: 500;
}

/* Beneficios --------------------------------------------------- */
.benefits { background: var(--white); }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
}

.benefit-card {
    background: var(--beige);
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--orange);
}

.benefit-card h3 { font-size: 1.35rem; margin-bottom: 0.75rem; color: var(--orange-dark); }
.benefit-card p { font-size: 1rem; color: var(--text); }

/* Línea de productos ------------------------------------------- */
.product-line { background: var(--cream); }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(61, 40, 23, 0.12);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
a.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }

.pc-media { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.pc-media.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--beige) 0%, #E7D2B6 100%);
    color: var(--brown);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.4rem;
}

.pc-body { padding: 1.1rem 1.25rem 1.4rem; }
.product-card h3 { font-size: 1.2rem; margin-bottom: 0.35rem; color: var(--brown); }
.product-card p { font-size: 0.95rem; color: var(--text); }

.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.22rem 0.65rem;
    border-radius: 30px;
    margin-bottom: 0.55rem;
}
.badge.available { background: #E6F2E7; color: var(--success); }
.badge.soon { background: var(--beige); color: var(--orange-dark); }

.product-line-note {
    text-align: center;
    margin-top: 2rem;
    color: var(--text);
    font-size: 1.05rem;
}
.product-line-note a { color: var(--orange-dark); font-weight: 600; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--orange-dark);
    margin-bottom: 0.4rem;
}

/* Producto ----------------------------------------------------- */
.product { background: var(--beige); }

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
    align-items: center;
}

.product-image img { width: 100%; border-radius: 20px; box-shadow: 0 15px 50px rgba(0,0,0,0.15); }

.product-info h2 { font-size: 2.6rem; margin-bottom: 1.25rem; }
.product-info > p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 1.5rem; color: var(--text); }

.product-highlight {
    background: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    margin-bottom: 1rem;
}
.product-highlight strong { color: var(--orange-dark); }

.spec-list { list-style: none; margin: 0 0 1.5rem; }
.spec-list li {
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(61, 40, 23, 0.12);
    font-size: 1rem;
    color: var(--text);
}
.spec-list li:last-child { border-bottom: none; }
.spec-list strong { color: var(--brown); }

/* Proceso ------------------------------------------------------ */
.process { background: var(--white); }

.process-steps {
    max-width: 1050px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.step { text-align: left; }
.step img { width: 100%; border-radius: 15px; margin-bottom: 1rem; box-shadow: 0 5px 20px rgba(0,0,0,0.15); }
.step h3 { font-size: 1.35rem; margin-bottom: 0.6rem; color: var(--orange-dark); }
.step p { font-size: 1rem; color: var(--text); line-height: 1.7; }

/* Historia / capacidad ---------------------------------------- */
.story { background: linear-gradient(135deg, var(--brown) 0%, var(--brown-2) 100%); color: var(--white); }

.story-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
    align-items: center;
}
.story-container h2 { font-size: 2.6rem; margin-bottom: 1.25rem; }
.story-container p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 1.25rem; color: var(--beige); }
.story-image img { width: 100%; border-radius: 20px; box-shadow: 0 15px 50px rgba(0,0,0,0.35); }

/* FAQ ---------------------------------------------------------- */
.faq { background: var(--cream); }
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 0.9rem;
    border: 1px solid rgba(61, 40, 23, 0.12);
}
.faq-item summary {
    cursor: pointer;
    padding: 1.1rem 1.4rem;
    font-weight: 700;
    font-size: 1.05rem;
    list-style: none;
    position: relative;
    padding-right: 3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--orange-dark);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item div { padding: 0 1.4rem 1.2rem; color: var(--text); font-size: 1rem; }

/* Contacto ----------------------------------------------------- */
.contact {
    padding: 5rem 5%;
    background: linear-gradient(135deg, var(--brown) 0%, var(--brown-2) 100%);
    color: var(--white);
}

.contact-container { max-width: 900px; margin: 0 auto; }
.contact h2 { font-size: 2.6rem; margin-bottom: 0.75rem; text-align: center; }
.contact-subtitle { font-size: 1.2rem; margin-bottom: 2.5rem; color: var(--beige); text-align: center; }

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    color: var(--brown);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.form-grid .full { grid-column: 1 / -1; }

.form-group { margin-bottom: 1.4rem; }

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
    color: var(--brown);
    font-size: 0.98rem;
}
.form-group .hint { font-weight: 400; color: var(--text); font-size: 0.85rem; }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--beige);
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--brown);
    background: var(--white);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--orange-dark); }

.form-group textarea { resize: vertical; min-height: 110px; }

/* honeypot: fuera de pantalla, no display:none (algunos bots lo detectan) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submit-btn {
    width: 100%;
    min-height: 56px;
    padding: 1.1rem;
    background: var(--orange-dark);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(184, 90, 40, 0.4);
}
.submit-btn:hover { background: var(--brown); transform: translateY(-1px); }
.submit-btn[disabled] { opacity: 0.7; cursor: wait; transform: none; }

.form-note { margin-top: 0.9rem; font-size: 0.85rem; color: var(--text); text-align: center; }
.form-note a { color: var(--orange-dark); }

.form-status { display: none; padding: 1.1rem 1.3rem; border-radius: 10px; margin-bottom: 1.4rem; font-weight: 600; }
.form-status.show { display: block; }
.form-status.ok { background: #E6F2E7; color: var(--success); border: 1px solid var(--success); }
.form-status.fail { background: #F9E7E5; color: var(--error); border: 1px solid var(--error); }
.form-status a { color: inherit; }

/* Contacto directo (sobre el fondo marrón, no dentro de la tarjeta) */
.direct-contact { text-align: center; margin-top: 2.25rem; }
.direct-contact p { color: var(--beige); margin-bottom: 0.4rem; }
.direct-contact a {
    color: var(--beige);
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.direct-contact a:hover { color: var(--white); }

/* Footer ------------------------------------------------------- */
footer {
    background: var(--brown);
    color: var(--beige);
    padding: 2.25rem 5%;
    text-align: center;
    font-size: 0.95rem;
}
footer p { margin-bottom: 0.5rem; }
footer a { color: var(--beige); text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; margin-bottom: 0.75rem; }

/* Botón flotante de WhatsApp (activar cuando exista número) ---- */
.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 52px;
    padding: 0.8rem 1.4rem;
    background: #1FAF38;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.wa-float:hover { background: #168C2C; }

/* Responsive --------------------------------------------------- */
@media (max-width: 968px) {
    .hero-container,
    .product-container,
    .story-container { grid-template-columns: 1fr; gap: 2.5rem; }

    .hero-content h1 { font-size: 2.3rem; }
    .hero-tagline { font-size: 1.2rem; }
    .section-title, .product-info h2, .story-container h2, .contact h2 { font-size: 2rem; }

    .process-steps { grid-template-columns: 1fr; gap: 2rem; max-width: 560px; }
    .form-grid { grid-template-columns: 1fr; }
    .logo-header { max-width: 200px; margin-left: auto; margin-right: auto; }
    .hero-content { text-align: center; }
    .hero-text { margin-left: auto; margin-right: auto; }
    .cta-row { justify-content: center; }
    .trust-bar { justify-content: center; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.9rem; }
    .cta-primary { width: 100%; justify-content: center; }
    .contact-form { padding: 1.5rem; }
    .topbar-cta { font-size: 0.85rem; padding: 0.4rem 1rem; }
}
