/* ==========================================================================
   ESTATENETX — Creative Artistic Design System
   Alquiler e instalación de aire acondicionado — España
   ========================================================================== */

:root {
    --verde-pizarra: #2F4B4A;
    --arena-calida: #E7D8C1;
    --terracota: #E0663C;
    --terracota-dark: #C24F29;
    --brisa: #7FA9A6;
    --papel: #FAF4E9;
    --tinta: #33322E;
    --muted: #6E6A60;
    --linea: rgba(47, 75, 74, 0.18);

    --font-display: 'Fraunces', serif;
    --font-body: 'Work Sans', sans-serif;
    --font-hand: 'Caveat', cursive;

    --wrap: 1200px;
    --radius-organic: 255px 15px 225px 15px / 15px 225px 15px 255px;
    --radius-organic-2: 15px 255px 15px 225px / 225px 15px 255px 15px;
    --shadow-ink: 6px 6px 0 rgba(47, 75, 74, 0.14);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--papel);
    color: var(--tinta);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--tinta); color: var(--papel); padding: 12px 20px; z-index: 10000;
}
.skip-link:focus { left: 12px; top: 12px; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--verde-pizarra);
    line-height: 1.15;
    margin: 0 0 0.5em;
    font-weight: 600;
}
h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1.1em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }

.italic-serif { font-style: italic; }
.hand { font-family: var(--font-hand); color: var(--terracota); font-size: 1.5em; font-weight: 600; }
.eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--terracota);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--terracota); display: inline-block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
section { position: relative; padding: 110px 0; }
.section-tight { padding: 70px 0; }
.bg-arena { background: var(--arena-calida); }
.bg-verde { background: var(--verde-pizarra); color: var(--papel); }
.bg-verde h2, .bg-verde h3 { color: var(--papel); }
.bg-papel { background: var(--papel); }

/* organic blob decorations */
.blob {
    position: absolute;
    border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
    z-index: 0;
    opacity: 0.55;
}
.blob-brisa { background: var(--brisa); }
.blob-arena { background: var(--arena-calida); }
.blob-terracota { background: var(--terracota); opacity: 0.18; }

/* wavy divider */
.wavy-divider { display: block; width: 100%; height: 40px; }
.wavy-divider path { fill: none; stroke: var(--verde-pizarra); stroke-width: 2.5; stroke-linecap: round; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 500;
    background: rgba(250, 244, 233, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 2px solid var(--linea);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-word {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--verde-pizarra);
    letter-spacing: -0.01em;
}
.logo-word em { font-style: italic; color: var(--terracota); }
.logo-footer .logo-word { color: var(--papel); }
.logo-footer .logo-word em { color: var(--brisa); }

.main-nav ul { display: flex; gap: 36px; }
.main-nav a {
    font-weight: 500; position: relative; padding: 6px 0;
}
.main-nav a::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
    background: var(--terracota); transition: width 0.3s ease;
}
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
.main-nav a.is-active { color: var(--terracota); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--verde-pizarra); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
    padding: 16px 32px;
    border-radius: var(--radius-organic);
    border: 2px solid transparent;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--terracota); color: var(--papel);
    box-shadow: var(--shadow-ink);
}
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 rgba(47,75,74,0.2); background: var(--terracota-dark); }
.btn-outline {
    background: transparent; color: var(--verde-pizarra); border-color: var(--verde-pizarra);
}
.btn-outline:hover { background: var(--verde-pizarra); color: var(--papel); transform: translate(-2px, -2px); }
.btn-small { padding: 11px 22px; font-size: 0.88rem; }
.btn-link {
    display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--terracota);
    position: relative;
}
.btn-link::after {
    content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: var(--terracota);
    transition: width 0.3s ease;
}
.btn-link:hover::after { width: 100%; }

/* ---------- Hero ---------- */
.hero {
    padding: 80px 0 120px;
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; position: relative; z-index: 2;
}
.hero-copy { position: relative; }
.hero-copy h1 { margin-top: 18px; }
.hero-copy h1 .accent { color: var(--terracota); }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; flex-wrap: wrap; }
.hero-note {
    position: absolute; top: -10px; right: 6%; font-family: var(--font-hand); color: var(--terracota);
    font-size: 1.6rem; transform: rotate(-4deg);
}
.hero-illustration { position: relative; z-index: 1; }
.hero-illustration svg { width: 100%; height: auto; }
.breeze-line { stroke-dasharray: 8 10; animation: dash-flow 6s linear infinite; }
@keyframes dash-flow { to { stroke-dashoffset: -180; } }

/* ---------- Lead form ---------- */
.lead-section { position: relative; }
.lead-grid {
    display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: start;
}
.lead-card {
    background: var(--papel);
    border: 2.5px solid var(--verde-pizarra);
    border-radius: var(--radius-organic-2);
    padding: 46px;
    box-shadow: var(--shadow-ink);
    position: relative;
}
.lead-aside { text-align: center; padding-top: 30px; }
.lead-aside svg { max-width: 260px; margin: 0 auto; }
.lead-aside .hand { display: block; margin-top: 18px; font-size: 1.7rem; transform: rotate(-2deg); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--verde-pizarra); }
.field input, .field select, .field textarea {
    font-family: var(--font-body); font-size: 1rem; color: var(--tinta);
    background: #fff;
    border: 2px solid var(--linea);
    border-radius: 14px;
    padding: 13px 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--terracota); box-shadow: 0 0 0 4px rgba(224,102,60,0.14);
}
.field textarea { resize: vertical; min-height: 110px; }
.consent {
    display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--muted);
}
.consent input { margin-top: 4px; }
.consent a { color: var(--verde-pizarra); text-decoration: underline; }
.form-msg {
    border-radius: 14px; padding: 16px 20px; margin-bottom: 22px; font-weight: 500;
}
.form-msg.success { background: rgba(127,169,166,0.25); color: var(--verde-pizarra); border: 2px solid var(--brisa); }
.form-msg.error { background: rgba(224,102,60,0.14); color: var(--terracota-dark); border: 2px solid var(--terracota); }

/* ---------- Cards / services ---------- */
.card-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 60px;
}
.service-card {
    background: var(--papel);
    border: 2px solid var(--linea);
    border-radius: var(--radius-organic);
    padding: 34px 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-ink);
    border-color: var(--terracota);
}
.service-card .icon-badge {
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--brisa); color: var(--papel);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 20px;
    transition: transform 0.3s ease;
}
.service-card:hover .icon-badge { transform: rotate(-8deg) scale(1.06); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 14px; }

/* ---------- How we work ---------- */
.steps-path { position: relative; margin-top: 70px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; z-index: 2; }
.step-item { text-align: left; }
.step-num { font-family: var(--font-hand); font-size: 3rem; color: var(--terracota); line-height: 1; }
.step-item h3 { margin-top: 6px; }
.step-item p { color: var(--muted); font-size: 0.96rem; }
.steps-path svg.path-line { position: absolute; top: 22px; left: 0; width: 100%; height: 60px; z-index: 1; }

/* ---------- About preview / split sections ---------- */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }
.split-text { position: relative; z-index: 2; }
.split-illustration { position: relative; }
.split-illustration svg { width: 100%; height: auto; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; }
.testi-card {
    background: var(--papel);
    border: 2.5px solid var(--verde-pizarra);
    border-radius: 26px 26px 26px 4px;
    padding: 32px 30px;
    position: relative;
    box-shadow: var(--shadow-ink);
}
.testi-card::after {
    content: ""; position: absolute; left: 26px; bottom: -14px;
    width: 0; height: 0;
    border: 14px solid transparent; border-top-color: var(--verde-pizarra); border-bottom: 0;
}
.testi-quote { font-family: var(--font-display); font-style: italic; font-size: 1.08rem; color: var(--tinta); margin-bottom: 20px; }
.testi-name { font-weight: 700; color: var(--verde-pizarra); }
.testi-role { color: var(--muted); font-size: 0.9rem; }

/* ---------- Coverage / trust ---------- */
.coverage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 30px; }
.stat-item .stat-number { font-family: var(--font-display); font-size: 2.6rem; color: var(--terracota); font-weight: 600; display: block; }
.stat-item .stat-label { color: var(--muted); font-size: 0.92rem; }
.trust-list { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.trust-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.trust-list i { color: var(--terracota); font-size: 1.3rem; }

/* ---------- Final CTA band ---------- */
.cta-band {
    text-align: center; padding: 100px 0;
    position: relative; overflow: hidden;
}
.cta-band h2 { max-width: 16ch; margin-left: auto; margin-right: auto; }
.cta-band .btn { margin-top: 18px; }

/* ---------- Values / team (about) ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 56px; }
.value-item { text-align: center; padding: 20px; }
.value-item svg { width: 64px; height: 64px; margin: 0 auto 18px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 56px; }
.team-card { text-align: center; }
.team-card svg { width: 140px; height: 140px; margin: 0 auto 18px; border-radius: 50%; background: var(--arena-calida); }
.team-card h4 { font-family: var(--font-display); color: var(--verde-pizarra); margin-bottom: 2px; font-size: 1.15rem; }
.team-card .team-role { color: var(--terracota); font-size: 0.86rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.team-card p { color: var(--muted); font-size: 0.92rem; }

.milestones-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }

/* ---------- Services page ---------- */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 70px 0; border-bottom: 2px dashed var(--linea); }
.service-block:last-of-type { border-bottom: none; }
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }
.service-block-illustration svg { width: 100%; height: auto; }
.service-block ul.detail-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.service-block ul.detail-list li { display: flex; gap: 10px; align-items: flex-start; }
.service-block ul.detail-list i { color: var(--terracota); margin-top: 4px; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px; }
.price-card {
    background: var(--verde-pizarra); color: var(--papel);
    border-radius: var(--radius-organic-2); padding: 32px 28px; text-align: center;
}
.price-card .price-amount { font-family: var(--font-display); font-size: 2.2rem; font-style: italic; color: var(--brisa); margin: 10px 0; }
.price-note { text-align: center; color: var(--muted); font-size: 0.88rem; margin-top: 30px; }

/* ---------- FAQ Accordion ---------- */
.faq-list { margin-top: 50px; max-width: 900px; margin-left: auto; margin-right: auto; }
.faq-item { border-bottom: 2px solid var(--linea); }
.faq-question {
    width: 100%; text-align: left; background: none; border: none;
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 4px; font-family: var(--font-display); font-size: 1.15rem; color: var(--verde-pizarra);
}
.faq-question i { transition: transform 0.3s ease; color: var(--terracota); font-size: 1.3rem; flex-shrink: 0; margin-left: 20px; }
.faq-item.is-open .faq-question i { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner { padding: 0 4px 24px; color: var(--muted); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: start; }
.contact-info-card {
    background: var(--arena-calida); border-radius: var(--radius-organic);
    padding: 40px; margin-bottom: 30px;
}
.contact-info-card ul { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-card i { color: var(--terracota); font-size: 1.3rem; margin-top: 2px; }
.contact-aside-note { text-align: center; margin-top: 20px; }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { margin-top: 2em; }
.legal-content h3 { margin-top: 1.4em; color: var(--terracota); }
.legal-content p, .legal-content li { color: var(--tinta); }
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 1.2em; }
.legal-header { background: var(--arena-calida); padding: 80px 0 60px; text-align: center; }
.legal-updated { color: var(--muted); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--verde-pizarra); color: var(--papel); padding: 80px 0 0; position: relative; overflow: hidden; }
.footer-blob { position: absolute; bottom: -80px; right: -80px; width: 320px; height: 320px; background: rgba(127,169,166,0.18); border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; position: relative; z-index: 2; }
.footer-tagline { color: rgba(250,244,233,0.75); font-size: 0.95rem; margin-top: 16px; max-width: 32ch; }
.footer-heading { color: var(--papel); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px; }
.footer-list { display: flex; flex-direction: column; gap: 12px; }
.footer-list a { color: rgba(250,244,233,0.82); transition: color 0.25s ease; }
.footer-list a:hover { color: var(--terracota); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; color: rgba(250,244,233,0.82); font-size: 0.94rem; }
.footer-contact i { color: var(--brisa); margin-top: 3px; }
.footer-bottom {
    margin-top: 60px; padding: 26px 32px; border-top: 1px solid rgba(250,244,233,0.15);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    font-size: 0.85rem; color: rgba(250,244,233,0.6); position: relative; z-index: 2;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }

.hero-copy .word { display: inline-block; opacity: 0; transform: translateY(16px); animation: word-in 0.7s ease forwards; }

@keyframes word-in { to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
    .wrap { padding: 0 26px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .testi-grid { grid-template-columns: 1fr; }
    .milestones-band { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .price-grid { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
    section { padding: 80px 0; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-illustration { order: -1; max-width: 420px; margin: 0 auto; }
    .lead-grid { grid-template-columns: 1fr; }
    .lead-aside { display: none; }
    .split-section, .split-section.reverse { grid-template-columns: 1fr; direction: ltr; }
    .split-illustration { order: -1; max-width: 380px; margin: 0 auto; }
    .coverage-grid { grid-template-columns: 1fr; }
    .service-block, .service-block.reverse { grid-template-columns: 1fr; direction: ltr; }
    .service-block-illustration { order: -1; max-width: 360px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-nav { position: fixed; top: 73px; left: 0; right: 0; background: var(--papel); border-bottom: 2px solid var(--linea); padding: 20px 32px; transform: translateY(-130%); transition: transform 0.3s ease; z-index: 400; }
    .main-nav.is-open { transform: translateY(0); }
    .main-nav ul { flex-direction: column; gap: 18px; }
    .nav-toggle { display: flex; }
    .header-actions .btn-small { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .milestones-band { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
    .wrap { padding: 0 20px; }
    section { padding: 60px 0; }
    .lead-card { padding: 28px 22px; }
    .btn { padding: 14px 24px; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .milestones-band { grid-template-columns: 1fr 1fr; }
}
