/* ============================================================
 *  PaisajismoBotanica — site.css
 *  Rediseño editorial/botánico
 *  Paleta cálida · Serif Fraunces · Acentos terracota
 * ============================================================ */

/* ============================================================
 *  1. DESIGN TOKENS
 * ============================================================ */
:root {
    /* Fondos — salvia pálido, como neblina matinal sobre un jardín del sur */
    --bg:           #E8EEE9;
    --bg-card:      #FFFFFF;
    --bg-section:   #DCE4DD;

    /* Tintas — verde bosque casi negro */
    --ink:          #1A2620;
    --ink-soft:     #3A4239;
    --muted:        #6E726A;

    /* Marca — Paisajismo: verde profundo de coihues y ñires */
    --brand:        #1F4128;
    --brand-light:  #4F7C53;

    /* Marca — Riego: teal del Lago Villarrica */
    --brand-teal:       #2A5F6B;
    --brand-teal-light: #5A8A93;

    /* Acento — Terracota tierra volcánica (más profundo, menos brillante) */
    --accent:       #B85A2E;
    --accent-hover: #9A4A22;
    --accent-soft:  #EFD3BD;

    /* WhatsApp */
    --whatsapp:     #1FA85B;

    /* Líneas y sombras */
    --line:         rgba(26, 38, 32, 0.15);
    --line-soft:    rgba(26, 38, 32, 0.08);
    --shadow-soft:  0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-lift:  0 18px 36px -16px rgba(26, 38, 32, 0.24);

    /* Radius */
    --r-sm: 3px;
    --r-md: 6px;
    --r-lg: 10px;

    /* Tipografía */
    --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body:    'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Layout */
    --wrap-max: 1180px;
    --pad: 24px;

    /* Transiciones */
    --t-fast: 0.18s ease;
    --t:      0.28s cubic-bezier(0.4, 0, 0.2, 1);

    /* Alias retro-compat */
    --brand-green:       var(--brand);
    --brand-green-light: var(--brand-light);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }

a, a:visited, a:hover, a:active {
    color: inherit;
    text-decoration: none;
}

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

* { -webkit-tap-highlight-color: transparent; }

::selection {
    background: var(--accent);
    color: #fff;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 12px 18px;
    font-weight: 600;
    z-index: 100000;
}
.skip-link:focus { left: 0; }

/* ============================================================
 *  2. TIPOGRAFÍA DISPLAY
 * ============================================================ */
h1, h2, h3, h4, .display, .title {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0 0 0.5em;
    font-variation-settings: 'opsz' 60, 'SOFT' 50, 'WONK' 0;
}

h1, .h1 {
    font-size: clamp(34px, 6vw, 68px);
    letter-spacing: -0.02em;
}

h2, .h2 {
    font-size: clamp(26px, 4vw, 42px);
}

h3, .h3 { font-size: clamp(20px, 2.5vw, 26px); }

.title { color: var(--ink); }

.lead {
    color: var(--ink-soft);
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.6;
    max-width: 65ch;
}

/* Eyebrow — marca de sección editorial con línea horizontal */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 18px;
}
.eyebrow::before {
    content: '';
    display: block;
    width: 36px;
    height: 1px;
    background: currentColor;
    flex-shrink: 0;
}
.eyebrow.a { color: var(--accent); }
.eyebrow.b { color: var(--brand-teal); }

/* ============================================================
 *  3. LAYOUT
 * ============================================================ */
.wrap {
    max-width: var(--wrap-max);
    margin: 0 auto;
    padding: 0 var(--pad);
}

body.menu-open { overflow: hidden; }

/* ============================================================
 *  4. TOPBAR
 * ============================================================ */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 40px;
}

.brand {
    display: flex;
    align-items: center;
    transition: opacity var(--t-fast);
}
.brand:hover { opacity: 0.85; }
.brand img.logo {
    height: 96px;
    width: auto;
}

.right {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav.primary {
    display: flex;
    gap: 2px;
    align-items: center;
}
nav.primary a {
    position: relative;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
    border-bottom: 1px solid transparent;
    transition: color var(--t-fast), border-color var(--t-fast);
}
nav.primary a:hover {
    color: var(--ink);
    border-bottom-color: var(--accent);
}
nav.primary a.active {
    color: var(--ink);
    font-weight: 600;
    border-bottom-color: var(--ink);
}

.burger {
    display: none;
    border: 0;
    background: transparent;
    padding: 10px;
    cursor: pointer;
    border-radius: var(--r-sm);
    transition: background var(--t-fast);
    z-index: 10000;
}
.burger:hover { background: rgba(27, 32, 29, 0.05); }
.burger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.burger-icon {
    width: 22px;
    height: 16px;
    position: relative;
    display: block;
}
.burger-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--ink);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.burger-icon span:nth-child(1) { top: 0; }
.burger-icon span:nth-child(2) { top: 7px; }
.burger-icon span:nth-child(3) { top: 14px; }
.burger.open .burger-icon span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.burger.open .burger-icon span:nth-child(2) { opacity: 0; }
.burger.open .burger-icon span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* ============================================================
 *  5. MOBILE MENU
 * ============================================================ */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(27, 32, 29, 0);
    display: none;
    z-index: 9999;
    transition: background 0.3s ease;
}
.mobile-menu.open {
    display: block;
    background: rgba(27, 32, 29, 0.5);
}
.mobile-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(86vw, 380px);
    background: var(--bg);
    border-left: 1px solid var(--line);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open .mobile-panel { transform: translateX(0); }

.mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line-soft);
}
.mobile-head strong {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.mobile-close {
    border: 0;
    background: transparent;
    color: var(--ink);
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
    transition: opacity var(--t-fast);
}
.mobile-close:hover { opacity: 0.6; }

.mobile-panel > a {
    padding: 14px 0;
    font-size: 17px;
    font-weight: 500;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line-soft);
    transition: color var(--t-fast), padding-left var(--t-fast);
}
.mobile-panel > a:hover { color: var(--accent); padding-left: 8px; }
.mobile-panel > a.active {
    color: var(--ink);
    font-weight: 600;
}
.mobile-divider {
    border: none;
    height: 1px;
    background: var(--line-soft);
    margin: 20px 0 12px;
}

/* ============================================================
 *  6. SOCIAL ICONS
 * ============================================================ */
.social {
    display: flex;
    gap: 12px;
    align-items: center;
}
.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    transition: all var(--t-fast);
}
.social a:hover {
    border-color: var(--ink);
    color: var(--accent);
    transform: translateY(-1px);
}
.social svg { fill: currentColor; }

/* ============================================================
 *  7. CHIPS (inline editorial — "Pucón · Villarrica · ...")
 * ============================================================ */
.chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0;
}
.chip {
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color var(--t-fast);
}
.chip + .chip::before {
    content: '·';
    margin: 0 12px;
    color: var(--accent);
    font-weight: 700;
}
.chip:hover { color: var(--brand); }

/* ============================================================
 *  8. BREADCRUMB
 * ============================================================ */
.breadcrumb {
    font-size: 13px;
    margin-bottom: 28px;
    color: var(--muted);
    letter-spacing: 0.02em;
}
.breadcrumb a {
    color: var(--ink-soft);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-fast);
}
.breadcrumb a:hover { border-bottom-color: var(--accent); }

/* ============================================================
 *  9. HERO SECTIONS
 * ============================================================ */
.hero-section {
    padding: 40px 0 60px;
    margin: 0 0 60px;
    background: none;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
}
.hero-section h1 {
    max-width: 18ch;
    margin: 0 0 24px;
    color: var(--ink);
}
.hero-section .lead {
    max-width: 60ch;
    margin: 0 0 24px;
}
.hero-section .lead a {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    font-weight: 500;
    transition: opacity var(--t-fast);
}
.hero-section .lead a:hover { opacity: 0.75; }

.hero-section .chips { margin-top: 32px; }

.hero-section.left { text-align: left; }
.hero-section.teal h1 { color: var(--ink); }

/* ============================================================
 *  9b. HERO CON IMAGEN (full-width, texto superpuesto)
 * ============================================================ */
.hero-image {
    position: relative;
    margin: 0 0 60px;
    padding: 0;
    border-bottom: 0;
    border-radius: var(--r-md);
    overflow: hidden;
    aspect-ratio: 21 / 10;
    min-height: 460px;
    isolation: isolate;
}
.hero-image-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-image-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            to top,
            rgba(26, 38, 32, 0.82) 0%,
            rgba(26, 38, 32, 0.5) 35%,
            rgba(26, 38, 32, 0.05) 70%,
            rgba(26, 38, 32, 0) 100%
        );
    pointer-events: none;
}
.hero-image-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 56px 56px 52px;
    color: #fff;
}
.hero-image-content .eyebrow {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}
.hero-image-content .eyebrow::before {
    background: rgba(255, 255, 255, 0.9);
}
.hero-image-content h1 {
    color: #fff;
    max-width: 18ch;
    margin: 0 0 18px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}
.hero-image-content .lead {
    color: rgba(255, 255, 255, 0.94);
    max-width: 56ch;
    margin: 0 0 32px;
    font-size: clamp(16px, 1.5vw, 19px);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}
.hero-image-content .lead a {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.7);
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
/* Variante CTA blanco sobre imagen */
.btn.on-image {
    background: #fff;
    color: var(--ink) !important;
    border-color: #fff;
}
.btn.on-image:hover {
    background: var(--accent);
    color: #fff !important;
    border-color: var(--accent);
}
.btn.on-image-ghost {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.6);
}
.btn.on-image-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

/* Intro debajo del hero con imagen */
.hero-image-below {
    margin: 0 0 60px;
    padding: 0 0 36px;
    border-bottom: 1px solid var(--line-soft);
}
.hero-image-below .chips {
    margin-top: 0;
}

/* ============================================================
 *  10. CARD BASE
 * ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    padding: 36px;
}

/* ============================================================
 *  11. BUTTONS
 * ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.005em;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast),
                border-color var(--t-fast), transform var(--t-fast);
    text-decoration: none;
    line-height: 1.2;
}
.btn.large {
    padding: 16px 28px;
    font-size: 16px;
}
.btn.primary {
    background: var(--ink);
    color: #fff !important;
    border-color: var(--ink);
}
.btn.primary:hover {
    background: var(--accent);
    border-color: var(--accent);
}
.btn.primary.full {
    width: 100%;
}
.btn.secondary {
    background: var(--accent);
    color: #fff !important;
    border-color: var(--accent);
}
.btn.secondary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}
.btn.ghost {
    background: transparent;
    color: var(--ink) !important;
    border-color: var(--line);
}
.btn.ghost:hover {
    border-color: var(--ink);
    background: var(--bg-section);
}

/* ============================================================
 *  12. HOME — SERVICE CARDS
 * ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 50px;
    align-items: stretch;
}
.service-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    overflow: hidden;
    color: inherit;
    transition: transform var(--t), border-color var(--t), box-shadow var(--t);
    position: relative;
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--ink);
    box-shadow: var(--shadow-lift);
}
.service-card-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.service-card h2 {
    font-size: clamp(22px, 2.6vw, 30px);
    margin: 0 0 16px;
    color: var(--ink);
}
.service-card .lead {
    font-size: 16px;
    margin-bottom: 24px;
    flex-grow: 1;
}
.service-card .cta-arrow {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    transition: gap 0.2s ease;
}
.service-card:hover .cta-arrow { gap: 14px; }

/* ============================================================
 *  13. CAROUSEL
 * ============================================================ */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--bg-section);
    isolation: isolate;
}
.carousel .track {
    display: flex;
    width: 100%;
    aspect-ratio: 4 / 3;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}
.carousel-indicators {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.carousel-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all var(--t-fast);
}
.carousel-indicator.active {
    background: #fff;
    width: 22px;
    border-radius: 3px;
}
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    opacity: 0;
    transition: opacity var(--t-fast);
    pointer-events: none;
}
.service-card:hover .carousel-controls,
.carousel:hover .carousel-controls {
    opacity: 1;
    pointer-events: auto;
}
.carousel-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(27, 32, 29, 0.55);
    color: #fff;
    border: 0;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-fast);
}
.carousel-btn:hover { background: var(--ink); }

/* ============================================================
 *  14. CTA BAND
 * ============================================================ */
.cta-section {
    margin: 70px 0 60px;
    padding: 48px 44px;
    background: var(--ink);
    color: #fff;
    border-radius: var(--r-md);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 36px;
    row-gap: 8px;
}
.cta-section h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(26px, 3.5vw, 38px);
    max-width: 22ch;
    grid-column: 1;
    grid-row: 1;
}
.cta-section p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    max-width: 50ch;
    grid-column: 1;
    grid-row: 2;
}
.cta-btn {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    background: #fff;
    color: var(--ink) !important;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--r-sm);
    border: 1px solid #fff;
    transition: background var(--t-fast), border-color var(--t-fast),
                color var(--t-fast), transform var(--t-fast);
    white-space: nowrap;
}
.cta-btn:hover {
    background: var(--brand-light);
    border-color: var(--brand-light);
    color: #fff !important;
    transform: translateY(-1px);
}
.cta-section.teal { background: var(--brand-teal); }
.cta-section.teal .cta-btn:hover {
    background: var(--brand-teal-light);
    border-color: var(--brand-teal-light);
}

/* ============================================================
 *  15. PROYECTOS — listado y página individual
 * ============================================================ */
.proyectos-section { margin: 60px 0; }
.proyectos-section h2 { margin: 0 0 28px; }

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}
.proyecto-card {
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    overflow: hidden;
    color: inherit;
    transition: transform var(--t), border-color var(--t), box-shadow var(--t);
    display: flex;
    flex-direction: column;
}
.proyecto-card:hover {
    transform: translateY(-4px);
    border-color: var(--ink);
    box-shadow: var(--shadow-lift);
}
.proyecto-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}
.proyecto-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.proyecto-card h3 {
    font-size: 22px;
    color: var(--ink);
    margin: 0 0 12px;
    min-height: 50px;
}
.proyecto-card p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.6;
    flex-grow: 1;
    font-size: 15px;
}
.proyecto-card .btn-ver {
    display: inline-flex;
    margin-top: 14px;
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.proyecto-hero {
    background: var(--bg-section);
    padding: 48px 40px;
    border-radius: var(--r-md);
    margin-bottom: 40px;
}
.proyecto-hero h1 {
    color: var(--ink);
    margin: 0 0 18px;
    max-width: 24ch;
}
.proyecto-hero .lead { margin: 0; }

.proyecto-descripcion {
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    padding: 40px;
    border-radius: var(--r-md);
    margin: 40px 0;
}
.proyecto-descripcion h2 {
    margin: 0 0 24px;
    color: var(--ink);
}
.proyecto-descripcion ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.proyecto-descripcion li {
    padding: 14px 0 14px 36px;
    position: relative;
    line-height: 1.7;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line-soft);
}
.proyecto-descripcion li:last-child { border-bottom: 0; }
.proyecto-descripcion li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 14px;
    color: var(--accent);
    font-weight: 700;
}
.proyecto-descripcion li strong { color: var(--ink); font-weight: 600; }

.ficha {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    margin: 40px 0;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    overflow: hidden;
}
.ficha .item {
    background: var(--bg-card);
    padding: 24px;
}
.ficha .item strong {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.galeria-section { margin: 60px 0; }
.galeria-section h2 {
    margin: 0 0 28px;
    color: var(--ink);
}
.grid-fotos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.grid-fotos img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--r-sm);
    cursor: zoom-in;
    transition: transform var(--t), filter var(--t);
}
.grid-fotos img:hover {
    transform: scale(1.01);
    filter: brightness(0.95);
}

.otros {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 1px solid var(--line-soft);
}
.otros h2 { margin: 0 0 32px; }
.masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.card-proyecto {
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: inherit;
    transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.card-proyecto:hover {
    transform: translateY(-4px);
    border-color: var(--ink);
    box-shadow: var(--shadow-lift);
}
.card-proyecto img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}
.card-proyecto .info {
    padding: 20px 24px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-proyecto .info h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: var(--ink);
    min-height: 48px;
    display: flex;
    align-items: center;
}
.card-proyecto .info p {
    margin: 0;
    flex-grow: 1;
    color: var(--ink-soft);
    line-height: 1.55;
    font-size: 14px;
}

/* ============================================================
 *  16. GALLERY (botánica + riego)
 * ============================================================ */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.gallery a {
    display: block;
    overflow: hidden;
    border-radius: var(--r-sm);
    transition: filter var(--t);
}
.gallery a:hover { filter: brightness(0.95); }
.gallery img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery a:hover img { transform: scale(1.04); }

/* ============================================================
 *  17. LIGHTBOX
 * ============================================================ */
.lb {
    position: fixed;
    inset: 0;
    background: rgba(27, 32, 29, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.lb.open { display: flex; }
.lb-inner {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
}
.lb-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: var(--r-sm);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}
.lb-cap {
    color: #eee;
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    font-style: italic;
    font-family: var(--font-display);
}
.lb-btn, .lb-close {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    transition: background var(--t-fast), border-color var(--t-fast);
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lb-btn:hover, .lb-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}
.lb-btn { top: 50%; transform: translateY(-50%); }
.lb-prev  { left: -64px; }
.lb-next  { right: -64px; }
.lb-close { top: -56px; right: 0; }

/* ============================================================
 *  18. QUIENES — Equipo / Valores / Cobertura
 * ============================================================ */
.intro-section {
    text-align: left;
    max-width: 100%;
}
.intro-section h1 { max-width: 18ch; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
    align-items: stretch;
}
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    height: 100%;
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
}
.avatar { margin: 0; }
.avatar img {
    width: clamp(140px, 24vw, 200px);
    height: clamp(140px, 24vw, 200px);
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-section);
    border: 1px solid var(--line-soft);
    transition: transform var(--t);
}
.profile:hover .avatar img { transform: scale(1.02); }

.profile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex: 1 1 auto;
    width: 100%;
}
.role {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.role::before,
.role::after {
    content: '';
    width: 24px;
    height: 1px;
    background: currentColor;
}
.role.a { color: var(--accent); }
.role.b { color: var(--brand-teal); }
.profile h2 {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2rem);
}
.profile-description {
    line-height: 1.7;
    color: var(--ink-soft);
    margin: 4px auto 18px;
    font-size: 16px;
    max-width: 42ch;
}
.profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: auto;
    padding-top: 8px;
}

.values-section { margin-top: 28px; }
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    margin-top: 32px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    overflow: hidden;
}
.value-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px 24px;
    background: var(--bg-card);
    transition: background var(--t-fast);
}
.value-item:hover { background: var(--bg-section); }
.value-icon {
    font-size: 1.6rem;
    margin-bottom: 4px;
    color: var(--accent);
}
.value-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 19px;
    color: var(--ink);
    margin: 0;
}
.value-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0;
}

.coverage-section { margin-top: 28px; }
.coverage-intro {
    margin: 0 0 28px;
    line-height: 1.7;
    color: var(--ink-soft);
    max-width: 65ch;
}
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    margin-top: 24px;
}
.location-chip {
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-sm);
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: all var(--t-fast);
}
.location-chip:hover {
    border-color: var(--ink);
    color: var(--ink);
}
.location-chip.primary {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    font-weight: 600;
}
.location-chip.primary:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* ============================================================
 *  19. OPINIONES
 * ============================================================ */
.reviews-hero {
    text-align: left;
    max-width: 100%;
    margin-bottom: 40px;
}
.reviews-hero h1 { max-width: 20ch; }
.reviews-hero .subtitle {
    color: var(--ink-soft);
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 65ch;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    background: var(--bg-section);
    border-radius: var(--r-md);
    margin-bottom: 40px;
}
.rating-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -0.02em;
}
.rating-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.rating-stars {
    color: var(--accent);
    font-size: 1.2rem;
    letter-spacing: 3px;
}
.rating-count {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 340px);
    gap: 36px;
    align-items: start;
}
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.review-card {
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-left: 2px solid var(--accent);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    padding: 28px 32px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.review-card:hover {
    border-color: var(--line);
    border-left-color: var(--accent);
    box-shadow: var(--shadow-soft);
}
.review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 16px;
}
.review-author { flex: 1; }
.review-author h3 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.3;
}
.review-stars {
    color: var(--accent);
    font-size: 14px;
    letter-spacing: 2px;
}
.review-date {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}
.review-text {
    color: var(--ink-soft);
    line-height: 1.75;
    font-size: 17px;
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
}
.review-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 8px;
    border-radius: var(--r-sm);
}

.reviews-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    padding: 28px;
}
.sidebar-card h3 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 22px;
}
.sidebar-card p {
    color: var(--ink-soft);
    line-height: 1.65;
    margin: 0 0 18px;
    font-size: 15px;
}
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--whatsapp);
    color: #fff !important;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--r-sm);
    transition: background var(--t-fast);
    width: 100%;
    border: 1px solid var(--whatsapp);
}
.btn-whatsapp:hover { background: #168a48; border-color: #168a48; }
.contact-link {
    text-align: center;
    margin-top: 14px;
    font-size: 14px;
}
.contact-link a {
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
    transition: border-color var(--t-fast);
}
.contact-link a:hover { border-bottom-color: var(--accent); }

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}
.stat-item {
    text-align: left;
    padding: 14px 16px;
    background: var(--bg-section);
    border-radius: var(--r-sm);
}
.stat-number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}
.service-tag {
    padding: 4px 10px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: var(--r-sm);
}

.reviews-cta {
    text-align: left;
    padding: 48px 40px;
    background: var(--bg-section);
    border: 1px solid var(--line-soft);
    margin-top: 32px;
}
.reviews-cta h2 {
    margin: 0 0 12px;
    color: var(--ink);
}
.reviews-cta p {
    color: var(--ink-soft);
    line-height: 1.65;
    margin: 0 0 28px;
    max-width: 60ch;
}
.cta-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================================================
 *  20. CONTACTO — Formulario
 * ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    margin-top: 32px;
}
.form-card, .info-card {
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    padding: 36px;
    border-radius: var(--r-md);
}
.form-card h2, .info-card h2 {
    margin: 0 0 24px;
    color: var(--ink);
}
.info-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin: 28px 0 12px;
}

.fl { position: relative; margin-bottom: 18px; }
.fl-input {
    width: 100%;
    padding: 22px 14px 10px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: var(--bg-card);
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.fl-input:hover { border-color: var(--ink-soft); }
.fl-input:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(197, 107, 63, 0.12);
}
.fl-label {
    position: absolute;
    left: 14px;
    top: 18px;
    font-size: 15px;
    color: var(--muted);
    pointer-events: none;
    background: var(--bg-card);
    padding: 0 6px;
    transition: all 0.2s ease;
}
.fl-input:focus + .fl-label,
.fl-input:not(:placeholder-shown) + .fl-label,
.fl-input.has-value + .fl-label {
    top: -8px;
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.fl textarea.fl-input {
    min-height: 140px;
    resize: vertical;
    padding-top: 22px;
}
.fl select.fl-input {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' width='12' height='8'><path fill='%231B201D' d='M6 8 0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.val {
    color: #c0392b;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}
.ok {
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: var(--accent-soft);
    border-left: 2px solid var(--accent);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    display: block;
}
.helper {
    color: var(--muted);
    font-size: 13px;
    margin-top: 14px;
    line-height: 1.5;
}

.contact-info p {
    margin: 6px 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-soft);
}
.contact-info a {
    color: var(--ink);
    font-weight: 500;
    border-bottom: 1px solid var(--accent);
    transition: opacity var(--t-fast);
}
.contact-info a:hover { opacity: 0.7; }

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--whatsapp);
    color: #fff !important;
    padding: 13px 22px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 14px;
    margin-top: 12px;
    transition: background var(--t-fast);
    border: 1px solid var(--whatsapp);
}
.whatsapp-btn:hover { background: #168a48; }
.whatsapp-btn::before { content: "→"; font-size: 16px; }

.zones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 14px;
}
.zones .chip { color: var(--ink-soft); }

.info-card .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 14px;
}

/* ============================================================
 *  21. FOOTER
 * ============================================================ */
.site-footer {
    margin: 80px auto 0;
    max-width: var(--wrap-max);
    padding: 48px var(--pad) 28px;
    color: var(--ink-soft);
    font-size: 14px;
    border-top: 1px solid var(--line-soft);
}
.footer-cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 32px;
}
.footer-col p { margin: 0; line-height: 1.6; }
.footer-brand {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 20px;
    color: var(--ink);
    display: block;
    margin-bottom: 8px;
}
.footer-tagline { color: var(--muted); font-size: 14px; max-width: 36ch; }
.footer-h {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}
.footer-col a {
    color: var(--ink);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-fast);
}
.footer-col a:hover { border-bottom-color: var(--accent); }
.footer-base {
    padding-top: 24px;
    border-top: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: 13px;
}

/* ============================================================
 *  22. WHATSAPP FAB
 * ============================================================ */
.wa-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff !important;
    box-shadow: 0 10px 28px rgba(31, 168, 91, 0.35);
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    border: 2px solid #fff;
}
.wa-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(31, 168, 91, 0.45);
}
.wa-fab svg { width: 28px; height: 28px; }

/* ============================================================
 *  23. ERROR PAGE
 * ============================================================ */
.error-page {
    text-align: left;
    max-width: 600px;
    padding: 80px 0;
}
.error-code {
    font-family: var(--font-display);
    font-size: clamp(80px, 15vw, 160px);
    font-weight: 500;
    color: var(--ink);
    line-height: 1;
    margin: 0 0 12px;
    letter-spacing: -0.04em;
}
.error-page h1 {
    color: var(--ink);
    margin: 0 0 16px;
}
.error-page p {
    color: var(--ink-soft);
    font-size: 17px;
    margin: 0 0 32px;
}

/* ============================================================
 *  24. RESPONSIVE
 * ============================================================ */
@media (max-width: 900px) {
    nav.primary { display: none; }
    .burger { display: inline-flex; }
    .brand img.logo { height: 76px; }
    .topbar { padding: 14px 0; margin-bottom: 28px; }

    .services-grid    { grid-template-columns: 1fr; }
    .proyectos-grid   { grid-template-columns: repeat(2, 1fr); }
    .gallery          { grid-template-columns: repeat(3, 1fr); }
    .contact-grid     { grid-template-columns: 1fr; }
    .reviews-grid     { grid-template-columns: 1fr; }
    .reviews-sidebar  { position: static; }
    .team-grid        { grid-template-columns: 1fr; gap: 16px; }
    .masonry          { grid-template-columns: 1fr; }

    .cta-section {
        grid-template-columns: 1fr;
        padding: 36px 28px;
    }
    .cta-section h2,
    .cta-section p,
    .cta-btn { grid-column: 1; }
    .cta-section h2 { grid-row: 1; }
    .cta-section p  { grid-row: 2; }
    .cta-btn {
        grid-row: 3;
        grid-column: 1;
        justify-self: stretch;
        justify-content: center;
        margin-top: 16px;
    }

    .footer-cols { grid-template-columns: 1fr; gap: 28px; }
    .site-footer { padding: 36px var(--pad) 24px; }

    /* Hero con imagen — ajustes mobile */
    .hero-image {
        aspect-ratio: 4 / 5;
        min-height: 480px;
    }
    .hero-image-content { padding: 32px 28px; }
    .hero-image-content .lead { font-size: 16px; }

    .lb-prev   { left: 10px;  transform: translateY(-50%); }
    .lb-next   { right: 10px; transform: translateY(-50%); }
    .lb-close  { top: 10px; right: 10px; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .brand img.logo { height: 62px; }
    .wrap { padding: 0 18px; }
    .wa-fab { width: 52px; height: 52px; right: 16px; bottom: 16px; }
    .wa-fab svg { width: 26px; height: 26px; }

    .proyectos-grid { grid-template-columns: 1fr; }
    .gallery        { grid-template-columns: repeat(2, 1fr); }

    .hero-section { padding: 24px 0 36px; margin-bottom: 36px; }
    .card, .form-card, .info-card,
    .proyecto-descripcion, .proyecto-hero,
    .reviews-cta, .review-card,
    .profile, .sidebar-card { padding: 24px; }
    .cta-section { padding: 32px 24px; }

    .rating-summary { padding: 20px 24px; gap: 18px; }
    .rating-number { font-size: 2.6rem; }

    .cta-buttons { flex-direction: column; align-items: stretch; }
    .cta-buttons .btn { width: 100%; }

    .review-header { flex-direction: column; gap: 6px; }
    .review-date { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
