/* ==========================================================
   QUIERO VENDER — Hoja de estilos principal
   Arquitectura: Home · Comunidad · Provincia · Comarca · Pueblo
   ========================================================== */

/* ——————————————————————————————————————
   1. VARIABLES Y RESET
   —————————————————————————————————————— */
:root {
    --gold:      #9d7d43;
    --gold-dark: #7d6335;
    --dark:      #1a1a1a;
    --white:     #ffffff;
    --light-bg:  #f9f9f9;
    --shadow:    0 10px 30px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
}

/* ——————————————————————————————————————
   2. TIPOGRAFÍA Y BOTONES
   —————————————————————————————————————— */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }
h1 {
    font-size: clamp(2.2rem, 7vw, 4rem);
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-bottom: 3px solid var(--gold);
    display: inline-block;
}

.btn-cta,
.btn-gold,
.btn-outline-white {
    display: inline-block;
    padding: 18px 30px;
    background-color: var(--gold);
    color: var(--white) !important;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}
.btn-cta:hover,
.btn-gold:hover {
    background-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-outline {
    display: inline-block;
    padding: 16px 28px;
    background: transparent;
    color: var(--white) !important;
    border: 2px solid rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 600;
    border-radius: 3px;
    transition: 0.3s;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* ——————————————————————————————————————
   3. NAVEGACIÓN
   —————————————————————————————————————— */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.97);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(157, 125, 67, 0.3);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 20px;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white) !important;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.5px;
}
.nav-logo span { color: var(--gold); }

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 28px;
    align-items: center;
}

.nav-menu a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}
.nav-menu a:hover { color: var(--gold); }

.nav-cta {
    background: var(--gold) !important;
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 3px;
    font-size: 0.85rem !important;
    transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-dark) !important; color: var(--white) !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: 0.3s;
}

/* Offset para que el hero no quede tapado por el nav fijo */
.hero,
.local-hero,
.hub-hero-premium {
    padding-top: calc(64px + 60px) !important;
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(26,26,26,0.98);
        flex-direction: column;
        gap: 0;
        padding: 12px 0 20px;
        border-top: 1px solid rgba(157,125,67,0.2);
    }
    .nav-menu.is-open { display: flex; }
    .nav-menu li { width: 100%; }
    .nav-menu a {
        display: block;
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    .nav-cta {
        margin: 8px 25px 0;
        display: block !important;
        text-align: center;
    }
}

/* ——————————————————————————————————————
   4. HEROS
   —————————————————————————————————————— */
.hero,
.local-hero,
.hub-hero-premium {
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    width: 100%;
}

.hero {
    min-height: 85vh;
    padding: 100px 20px 140px;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
    background-color: var(--dark);
}
.local-hero     { min-height: 45vh; padding: 60px 20px; }
.hub-hero-premium { min-height: 55vh; padding: 80px 20px; }

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    border-bottom: 3px solid var(--gold);
    display: inline-block;
    padding-bottom: 8px;
    line-height: 1.2;
}
.hero .badge { margin-bottom: 16px; font-size: 0.7rem; letter-spacing: 1.5px; }

.badge {
    background: var(--gold);
    padding: 5px 12px;
    font-weight: bold;
    font-size: 0.75rem;
    color: var(--white);
    display: inline-block;
    margin-bottom: 10px;
}

.hero-sub,
.subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 300;
    font-style: italic;
    margin-top: 10px;
}

.hero-inner     { max-width: 800px; margin: 0 auto; }
.hero-microcopy {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    margin-top: 12px;
    letter-spacing: 0.5px;
}

/* ——————————————————————————————————————
   5. LAYOUT Y CONTENEDOR
   —————————————————————————————————————— */
.container { max-width: 1100px; margin: 0 auto; padding: 0 25px; }

.home-layout #contacto {
    margin-top: -100px;
    position: relative;
    z-index: 10;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.landing-flex {
    display: flex;
    gap: 50px;
    margin: 40px auto;
    align-items: flex-start;
}
.propuesta-valor  { flex: 2; }
.sidebar-form     { flex: 1; min-width: 340px; position: sticky; top: 80px; }

/* ——————————————————————————————————————
   6. FORMULARIO
   —————————————————————————————————————— */
.form-card {
    background: var(--white);
    padding: 35px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--gold);
    color: var(--dark);
}
.form-group              { margin-bottom: 20px; text-align: left; }
.form-group label        { display: block; font-weight: 700; margin-bottom: 5px; font-size: 0.85rem; color: #555; }
.form-group input,
.form-group select       { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-size: 1rem; }

.form-header             { margin-bottom: 20px; }
.form-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin: 0 0 6px;
}
.form-header h3  { margin: 0 0 8px; font-size: 1.3rem; }
.form-sub        { font-size: 0.88rem; color: #666; margin: 0; }
.form-microcopy  {
    font-size: 0.78rem;
    color: #999;
    text-align: center;
    margin-top: 12px;
}

/* ——————————————————————————————————————
   7. CARDS Y GRIDS
   —————————————————————————————————————— */
.pueblos-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}
.premium-card {
    text-decoration: none;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: 0.3s;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}
.premium-card:hover { transform: translateY(-5px); }
.card-img   { height: 200px; background-size: cover; background-position: center; background-repeat: no-repeat; }
.card-info  { padding: 20px; text-align: center; }
.card-info h3    { margin: 0; color: var(--dark); font-size: 1.4rem; }
.card-action     { color: var(--gold); font-size: 0.8rem; font-weight: bold; text-transform: uppercase; }

/* ——————————————————————————————————————
   8. TRUST BAR
   —————————————————————————————————————— */
.trust-bar {
    background: var(--dark);
    padding: 12px 0;
    border-bottom: 2px solid var(--gold);
}
.trust-bar-inner {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.trust-bar span {
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ——————————————————————————————————————
   9. BLOQUES DE CONTENIDO
   —————————————————————————————————————— */
.bloque-confianza {
    margin-top: 40px;
    padding: 25px;
    background: var(--light-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.bloque-confianza h2 { margin-top: 0; }
.bloque-confianza h3 { margin-top: 25px; font-size: 1.2rem; }

.check-list {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}
.check-list li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
}
.check-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

.bloque-proceso {
    margin-top: 40px;
    padding: 28px;
    background: var(--light-bg);
    border-radius: 10px;
    border-left: 4px solid var(--gold);
}
.bloque-proceso h2 { margin-top: 0; }
.proceso-lista     { padding-left: 20px; margin: 0; }
.proceso-lista li  { margin-bottom: 14px; line-height: 1.6; color: #444; }
.proceso-lista li strong { color: var(--dark); }

.conversion {
    margin-top: 40px;
    padding: 25px;
    background: #f8f8f8;
    border-radius: 10px;
}

.conversion-final {
    margin-top: 50px;
    padding: 35px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    text-align: center;
    color: var(--white);
}
.conversion-final h2             { color: var(--white); margin-top: 0; border-bottom-color: var(--gold); }
.conversion-final p              { color: rgba(255,255,255,0.8); margin-bottom: 20px; }
.conversion-final .beneficios-lista {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}
.conversion-final .beneficios-lista li { font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.btn-cta-grande { padding: 20px 40px; font-size: 1rem; }

/* ——————————————————————————————————————
   10. FAQ
   —————————————————————————————————————— */
.faq            { margin-top: 40px; }
.faq h2         { margin-bottom: 20px; }

.faq-item {
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: 0.3s ease;
}
.faq-item summary         { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-question {
    cursor: pointer;
    padding: 18px 20px;
    font-weight: 700;
    position: relative;
    font-size: 1rem;
    transition: 0.3s;
}
.faq-question::after            { content: "+"; position: absolute; right: 20px; font-size: 1.4rem; transition: 0.3s; }
.faq-item[open] .faq-question::after { content: "−"; }
.faq-question:hover             { background: var(--light-bg); }
.faq-answer { padding: 0 20px 20px 20px; color: #555; line-height: 1.5; }

/* ——————————————————————————————————————
   11. ENLACES SEO CONTEXTUALES
   —————————————————————————————————————— */
.seo-enlaces-contextuales {
    margin: 50px 0;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.seo-enlaces-contextuales h2   { margin-top: 0; margin-bottom: 15px; }
.seo-enlaces-contextuales p    { margin-bottom: 20px; color: #555; }

.seo-enlaces-contextuales details {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.seo-enlaces-contextuales summary { list-style: none; }
.seo-enlaces-contextuales summary::-webkit-details-marker { display: none; }
.seo-enlaces-contextuales summary {
    cursor: pointer;
    padding: 18px 20px;
    font-weight: 700;
    position: relative;
    transition: 0.3s;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}
.seo-enlaces-contextuales summary:hover              { background: var(--light-bg); }
.seo-enlaces-contextuales summary::after             { content: "+"; position: absolute; right: 20px; font-size: 1.4rem; transition: 0.3s; }
.seo-enlaces-contextuales details[open] summary::after { content: "−"; }

.seo-enlaces-contextuales ul   { list-style: none; padding: 15px 20px 20px; margin: 0; }
.seo-enlaces-contextuales li   { margin-bottom: 10px; }
.seo-enlaces-contextuales a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
}
.seo-enlaces-contextuales a:hover { color: var(--gold); transform: translateX(3px); }

/* ——————————————————————————————————————
   12. SECCIONES HOME
   —————————————————————————————————————— */
.home-editorial {
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 0 2rem;
}
.home-editorial h2  { font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.home-editorial p   { font-size: 1.05rem; line-height: 1.8; color: #444; margin-bottom: 1.2rem; }

.home-como-trabajamos {
    background: var(--light-bg);
    padding: 60px 0;
    margin: 40px 0;
}
.como-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2.5rem;
}
.como-header h2  { font-size: 1.8rem; margin: 8px 0 12px; }
.como-intro      { color: #555; font-size: 1rem; line-height: 1.7; }

.proceso-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    list-style: none;
    padding: 0;
    counter-reset: proceso-counter;
    margin: 0 0 2rem;
}
.proceso-home li {
    background: var(--white);
    border-radius: 10px;
    padding: 24px;
    box-shadow: var(--shadow);
    position: relative;
    counter-increment: proceso-counter;
    padding-top: 48px;
}
.proceso-home li::before {
    content: counter(proceso-counter);
    position: absolute;
    top: 20px;
    left: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
}
.proceso-home li strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.proceso-home li span   { font-size: 0.88rem; color: #666; line-height: 1.5; }

/* ——————————————————————————————————————
   13. SOBRE NOSOTROS (INCLUDE)
   —————————————————————————————————————— */
.sobre-nosotros {
    margin-top: 50px;
    padding: 35px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--gold);
}
.sobre-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin: 0 0 8px;
}
.sobre-nosotros h2 { margin-top: 0; font-size: 1.5rem; }
.sobre-nosotros p  { color: #555; line-height: 1.7; }
.sobre-nosotros p strong { color: var(--dark); }
.sobre-inner {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: start;
}

/* ——————————————————————————————————————
   14. MISCELÁNEA
   —————————————————————————————————————— */
.back-link-wrap { margin-top: 30px; }
.back-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.2s;
}
.back-link:hover { color: var(--gold-dark); }

.hub-form-bg {
    background: var(--light-bg);
    padding: 60px 0;
    margin: 40px 0;
}
.hub-form-wrapper { max-width: 650px; margin: 0 auto; }

.directory-section   { padding-top: 60px; padding-bottom: 40px; }
.directory-title     { text-align: center; font-size: 1.8rem; margin-bottom: 10px; }

.cta-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background-color: var(--gold);
    color: var(--white) !important;
    padding: 14px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: 0.3s;
    white-space: nowrap;
}
.cta-flotante:hover { background-color: var(--gold-dark); transform: translateY(-2px); }

/* Directorio página gracias */
.gracias-landing-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.gracias-landing-list li a {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}
.gracias-landing-list li a:hover { color: var(--gold-dark); }

/* ——————————————————————————————————————
   15. FOOTER
   —————————————————————————————————————— */
.main-footer {
    background-color: var(--dark);
    color: #e0e0e0;
    padding: 60px 0 20px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.gold-text { color: var(--gold); margin-top: 0; }
.footer-nav p,
.footer-meta p {
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 20px;
}
.footer-links         { list-style: none; padding: 0; }
.footer-links li      { margin-bottom: 10px; }
.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
}
.footer-links a:hover { color: var(--gold); padding-left: 5px; }
.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #999;
}

/* ——————————————————————————————————————
   16. RESPONSIVE
   —————————————————————————————————————— */
@media (max-width: 850px) {
    .hero          { min-height: 70vh; padding-bottom: 100px; }
    .landing-flex  { flex-direction: column; }
    .sidebar-form  { width: 100%; min-width: auto; position: static; }
    .home-layout #contacto { margin-top: -40px; margin-bottom: 40px; padding: 0 15px; }
    .hero-btns     { flex-direction: column; align-items: stretch; width: 90%; margin: 30px auto 0; }
    .btn-cta,
    .btn-gold      { width: 100%; }
    .footer-grid   { grid-template-columns: 1fr 1fr; gap: 30px; }
    .sobre-inner   { grid-template-columns: 1fr; gap: 20px; }
    .proceso-home  { grid-template-columns: 1fr; }
    .home-editorial { padding: 2rem 0 1rem; }
}

@media (max-width: 600px) {
    .trust-bar-inner { gap: 10px; }
    .trust-bar span  { font-size: 0.78rem; }
    .footer-grid     { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .seo-enlaces-contextuales { padding: 20px; }
    .seo-enlaces-contextuales summary { font-size: 0.9rem; }
}
