/* =========================================================
   Yantra — Sistema de diseño
   Paleta: bienestar corporativo (salvia, azul calma, terracota)
   ========================================================= */

:root {
    --sage-50:  #f2f6f2;
    --sage-100: #dfebe0;
    --sage-200: #b9d4bc;
    --sage-400: #6f9c74;
    --sage-500: #4f8156;
    --sage-600: #3d6844;
    --sage-700: #2f5136;

    --calm-500: #5b8aa6;
    --calm-600: #446a80;

    --terra-400: #d99a6c;
    --terra-500: #c97f4a;

    --neutral-0:   #ffffff;
    --neutral-50:  #faf9f6;
    --neutral-100: #f3f1ec;
    --neutral-200: #e6e2d8;
    --neutral-600: #6b6b63;
    --neutral-700: #4a4a44;
    --neutral-900: #23241f;

    --font-heading: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, Segoe UI, sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;

    --shadow-sm: 0 2px 10px rgba(35, 36, 31, 0.06);
    --shadow-md: 0 12px 30px rgba(35, 36, 31, 0.10);

    --container: 1180px;
    --header-h: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--neutral-900);
    background: var(--neutral-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.5em;
    color: var(--sage-700);
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 88px 0;
}

.section--alt {
    background: var(--sage-50);
}

.section-head {
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: center;
}

.kicker {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--terra-500);
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin-bottom: 14px;
}

.section-head p {
    color: var(--neutral-700);
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
    background: var(--sage-600);
    color: var(--neutral-0);
    box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--sage-700); box-shadow: var(--shadow-md); }

.btn--outline {
    background: transparent;
    border-color: var(--neutral-0);
    color: var(--neutral-0);
}
.btn--outline:hover { background: rgba(255,255,255,0.15); }

.btn--terra {
    background: var(--terra-500);
    color: var(--neutral-0);
}
.btn--terra:hover { background: #b06c39; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1400px;
    flex-wrap: nowrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--sage-700);
    white-space: nowrap;
    flex-shrink: 0;
}
.brand img { height: 44px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neutral-700);
    position: relative;
    padding: 4px 0;
    white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--sage-600); }

.nav-links a.is-active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--terra-500);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.header-actions .btn { white-space: nowrap; }

.lang-switch {
    display: flex;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--neutral-600);
}
.lang-switch a { padding: 2px 6px; border-radius: 6px; }
.lang-switch a.is-active { background: var(--sage-100); color: var(--sage-700); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--sage-700);
    cursor: pointer;
}

/* ---------- Page hero (páginas internas) ---------- */
.page-hero {
    margin-top: var(--header-h);
    padding: 64px 0 56px;
    background: linear-gradient(135deg, var(--sage-700), var(--sage-500) 65%, var(--calm-500));
    color: var(--neutral-0);
    text-align: center;
}
.page-hero .kicker { color: var(--terra-400); }
.page-hero h1 { color: var(--neutral-0); font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.88); max-width: 640px; margin: 0 auto; }

.logo-placeholder {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neutral-0);
    border: 1px dashed var(--neutral-200);
    border-radius: var(--radius-sm);
    color: var(--neutral-600);
    font-size: 0.8rem;
    text-align: center;
    padding: 8px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    margin-top: var(--header-h);
    min-height: 640px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--sage-700), var(--sage-500) 55%, var(--calm-500));
    color: var(--neutral-0);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 85% 20%, rgba(255,255,255,0.14), transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(255,255,255,0.10), transparent 40%);
}

.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-content .kicker { color: var(--terra-400); }

.hero h1 {
    color: var(--neutral-0);
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--sage-100);
    margin-bottom: 14px;
}

.hero-desc {
    color: rgba(255,255,255,0.88);
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(160deg, var(--sage-200), var(--calm-500));
    color: var(--neutral-0);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    padding: 20px;
    aspect-ratio: 4 / 3;
    width: 100%;
}

.placeholder-img i { font-size: 2rem; display: block; margin-bottom: 10px; opacity: 0.85; }

.placeholder-img.photo {
    background: none;
    padding: 0;
    position: relative;
}
.placeholder-img.photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image .placeholder-img {
    aspect-ratio: 5 / 4;
    background: linear-gradient(160deg, rgba(255,255,255,0.25), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.3);
}

/* ---------- Grids genéricos ---------- */
.grid {
    display: grid;
    gap: 24px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Quiénes somos ---------- */
.about .container {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: center;
}

.about-text h2 { margin-bottom: 18px; }
.about-text p { color: var(--neutral-700); }

/* ---------- Tarjetas de soluciones ---------- */
.card {
    background: var(--neutral-0);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 28px 22px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--sage-200);
}
.card.card--photo { padding: 0; overflow: hidden; text-align: left; }
.card.card--photo .card-photo { aspect-ratio: 4/3; position: relative; }
.card.card--photo .card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card.card--photo .card-body { padding: 22px; }
.card.card--photo .icon { margin: 0 0 14px; width: 46px; height: 46px; font-size: 1.1rem; }

.card .icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--sage-100);
    color: var(--sage-600);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}
.card h3 {
    font-size: 1.02rem;
    margin-bottom: 0;
}

/* ---------- Diferenciadores ---------- */
.diff-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.diff-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--neutral-0);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}
.diff-item i {
    color: var(--sage-600);
    font-size: 1.2rem;
    margin-top: 3px;
}
.diff-item span { font-weight: 600; color: var(--neutral-900); }

/* ---------- Beneficios ---------- */
.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 22px;
}
.benefit-item .icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--terra-400);
    color: var(--neutral-0);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.benefit-item h3 { font-size: 1rem; margin: 0; }

/* ---------- Sectores ---------- */
.sector-pill {
    background: var(--neutral-0);
    border: 1px solid var(--neutral-200);
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 600;
    color: var(--sage-700);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.sector-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* ---------- Cómo trabajamos ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.step {
    text-align: center;
}
.step .num {
    width: 52px; height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--sage-600);
    color: var(--neutral-0);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}
.step p { color: var(--neutral-700); font-size: 0.95rem; margin: 0; }

/* ---------- Testimonios ---------- */
.testimonial-card {
    background: var(--neutral-0);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.testimonial-card i.fa-quote-left {
    color: var(--terra-400);
    font-size: 1.8rem;
    margin-bottom: 18px;
}
.testimonial-card p.quote {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--sage-700);
    margin-bottom: 18px;
}
.testimonial-card .author {
    font-weight: 700;
    color: var(--neutral-900);
}
.testimonial-card .role {
    font-size: 0.88rem;
    color: var(--neutral-600);
}

/* ---------- Galería ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 160px;
    gap: 14px;
}
.gallery-grid .placeholder-img {
    height: 100%;
    aspect-ratio: auto;
    border-radius: var(--radius-sm);
}
.gallery-grid > *:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid > *:nth-child(6) { grid-column: span 2; }

.category-block { margin-bottom: 56px; }
.category-block:last-child { margin-bottom: 0; }
.category-block h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    margin-bottom: 18px;
}
.category-block h3 i { color: var(--terra-500); }
.mini-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 140px;
    gap: 12px;
}
.mini-gallery .placeholder-img { height: 100%; aspect-ratio: auto; border-radius: var(--radius-sm); font-size: 0.85rem; }

/* ---------- Blog ---------- */
.blog-card {
    background: var(--neutral-0);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-card .placeholder-img { aspect-ratio: 16/10; border-radius: 0; }
.blog-card-body { padding: 20px; }
.blog-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.blog-card p { color: var(--neutral-700); font-size: 0.92rem; margin-bottom: 14px; }
.blog-card .read-more { font-weight: 700; color: var(--sage-600); font-size: 0.88rem; }

/* ---------- Contacto ---------- */
.contact-section {
    background: var(--sage-700);
    color: var(--neutral-0);
}
.contact-wrap {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    align-items: start;
}
.contact-intro .kicker { color: var(--terra-400); }
.contact-intro h2 { color: var(--neutral-0); }
.contact-intro p { color: rgba(255,255,255,0.85); }

.contact-form {
    background: var(--neutral-0);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--neutral-700);
}
.form-field input,
.form-field select,
.form-field textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px 14px;
    border: 1.5px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    background: var(--neutral-50);
    color: var(--neutral-900);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--sage-500);
    background: var(--neutral-0);
}
.contact-form .btn { width: 100%; justify-content: center; margin-top: 6px; }

.form-message {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-weight: 600;
    font-size: 0.92rem;
}
.form-message.success { background: var(--sage-100); color: var(--sage-700); }
.form-message.error { background: #fbe4e0; color: #a0402c; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--neutral-900);
    color: rgba(255,255,255,0.75);
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 42px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-col h4 {
    color: var(--neutral-0);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}
.footer-col p, .footer-col a {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.footer-col a:hover { color: var(--neutral-0); }
.social-row { display: flex; gap: 12px; }
.social-row a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0;
}
.social-row a:hover { background: var(--sage-600); }

.footer-bottom {
    padding: 22px 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.55);
}
.footer-bottom .credit {
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-bottom .credit img { height: 20px; }
.footer-bottom nav a { color: rgba(255,255,255,0.55); margin-left: 18px; }
.footer-bottom nav a:hover { color: var(--neutral-0); }

/* ---------- Utilidades AOS-lite ---------- */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-image { order: -1; max-width: 420px; }
    .about .container { grid-template-columns: 1fr; }
    .contact-wrap { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid > *:nth-child(1) { grid-column: span 2; }
    .mini-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1080px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .site-header.is-open .nav-links {
        display: flex;
        position: absolute;
        top: var(--header-h);
        left: 0; right: 0;
        background: var(--neutral-0);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px 28px;
        gap: 18px;
        box-shadow: var(--shadow-md);
    }
    .site-header.is-open .nav-links .lang-switch { font-size: 0.85rem; }
}

@media (max-width: 720px) {
    .diff-list { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr; }
}
