/* ================================
   GRADO CERO — Hoja de estilos
   Paleta corporativa extraída de la
   presentación PowerPoint del cliente.
   ================================ */

:root {
    /* Paleta corporativa */
    --c-green: #1F6B5C;          /* Verde corporativo principal */
    --c-green-dark: #154A40;     /* Verde oscuro (hover / acentos) */
    --c-green-light: #2E8B7A;    /* Verde claro */
    --c-dark: #1F2429;           /* Gris oscuro / casi negro */
    --c-dark-2: #2A323A;
    --c-text: #2A323A;
    --c-muted: #6B7480;
    --c-line: #E4E7EB;
    --c-bg: #FFFFFF;
    --c-bg-soft: #F5F6F7;
    --c-bg-cream: #EFEDE7;       /* Beige/crema de la ppt */

    /* Tipografía */
    --ff-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ff-display: 'Playfair Display', Georgia, serif;

    /* Layout */
    --container: 1200px;
    --radius: 6px;
    --radius-lg: 14px;
    --shadow-sm: 0 2px 8px rgba(31, 36, 41, 0.06);
    --shadow-md: 0 12px 32px rgba(31, 36, 41, 0.08);

    /* Transiciones */
    --t: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--ff-sans);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color var(--t); }

h1, h2, h3, h4 {
    margin: 0 0 0.6em;
    line-height: 1.15;
    color: var(--c-dark);
    font-weight: 700;
    letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--t);
    letter-spacing: 0.01em;
}
.btn--primary {
    background: var(--c-green);
    color: #fff;
}
.btn--primary:hover {
    background: var(--c-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.btn--ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}
.btn--full { width: 100%; }

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all var(--t);
}
.header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--c-line);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}
.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--c-dark);
}
.logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--c-green);
    color: #fff;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 800;
}
.logo__text {
    font-size: 0.95rem;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav__link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--c-text);
    position: relative;
    padding: 4px 0;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--c-green);
    transition: width var(--t);
}
.nav__link:hover { color: var(--c-green); }
.nav__link:hover::after { width: 100%; }
.nav__link--cta {
    background: var(--c-green);
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: var(--radius);
}
.nav__link--cta:hover { background: var(--c-green-dark); }
.nav__link--cta::after { display: none; }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.nav__toggle span {
    display: block;
    width: 26px; height: 2px;
    background: var(--c-dark);
    transition: all var(--t);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background: var(--c-dark);
}
.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top right, rgba(31, 107, 92, 0.45), transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(46, 139, 122, 0.25), transparent 50%),
        linear-gradient(135deg, #1F2429 0%, #2A323A 100%);
    z-index: 0;
}
.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero__container {
    position: relative;
    z-index: 1;
    padding: 140px 24px 100px;
    max-width: 980px;
}
.hero__eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 28px;
    color: rgba(255,255,255,0.9);
}
.hero__title {
    font-family: var(--ff-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}
.hero__lead {
    font-size: 1.15rem;
    max-width: 640px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 40px;
    line-height: 1.6;
}
.hero__cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    z-index: 1;
}
.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Sections ---------- */
.section {
    padding: 110px 0;
}
.section__head {
    margin-bottom: 64px;
    max-width: 760px;
}
.section__head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.section__eyebrow {
    display: inline-block;
    color: var(--c-green);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section__eyebrow--light { color: #6FCBB3; }
.section__title {
    font-family: var(--ff-display);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 600;
    line-height: 1.15;
    margin: 0;
}
.section__title--light { color: #fff; }
.section__sub {
    font-size: 1.05rem;
    color: var(--c-muted);
    margin-top: 18px;
}

/* ---------- About ---------- */
.section--about { background: var(--c-bg); }
.about__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    align-items: start;
}
.about__text p {
    font-size: 1.05rem;
    color: var(--c-text);
    line-height: 1.75;
}
.about__points {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
}
.about__points li {
    padding: 14px 0 14px 28px;
    border-top: 1px solid var(--c-line);
    position: relative;
    font-weight: 500;
}
.about__points li:last-child { border-bottom: 1px solid var(--c-line); }
.about__points li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 14px; height: 2px;
    background: var(--c-green);
}
.about__stats {
    display: grid;
    gap: 16px;
}
.stat {
    background: var(--c-bg-cream);
    padding: 28px 30px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.stat__num {
    font-family: var(--ff-display);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--c-green-dark);
    line-height: 1;
}
.stat__label {
    font-size: 0.92rem;
    color: var(--c-muted);
}

/* ---------- Story / Concept ---------- */
.section--story {
    background: var(--c-dark);
    color: #fff;
}
.section--story .section__title { color: #fff; }
.story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.story__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 50px 30px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
}
.phase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.phase__dot {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    position: relative;
}
.phase__dot--active {
    background: var(--c-green);
    border-color: var(--c-green-light);
    box-shadow: 0 0 0 8px rgba(31, 107, 92, 0.2),
                0 0 0 16px rgba(31, 107, 92, 0.1);
    animation: pulse 2.5s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 8px rgba(31, 107, 92, 0.2), 0 0 0 16px rgba(31, 107, 92, 0.1); }
    50% { box-shadow: 0 0 0 12px rgba(31, 107, 92, 0.15), 0 0 0 24px rgba(31, 107, 92, 0.05); }
}
.phase__label {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.85);
}
.phase__arrow {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.4);
    align-self: center;
    margin-bottom: 18px;
}

.story__text p {
    color: rgba(255,255,255,0.85);
    font-size: 1.02rem;
    line-height: 1.75;
}
.story__lead {
    font-family: var(--ff-display);
    font-size: 1.6rem !important;
    color: #fff !important;
    font-weight: 500;
    margin-bottom: 24px !important;
}
.story__lead em {
    color: #6FCBB3;
    font-style: italic;
}
.story__text strong { color: #fff; }

/* ---------- Services ---------- */
.section--services { background: var(--c-bg-soft); }
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service {
    background: #fff;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-line);
    transition: all var(--t);
    display: flex;
    flex-direction: column;
}
.service:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.service--accent {
    background: var(--c-green);
    color: #fff;
    border-color: var(--c-green);
}
.service--accent h3,
.service--accent .service__desc { color: #fff; }
.service--accent .service__list li { color: rgba(255,255,255,0.9); }
.service--accent .service__list li::before { background: #fff; }

.service__icon {
    width: 56px;
    height: 56px;
    background: var(--c-bg-cream);
    color: var(--c-green);
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 24px;
}
.service--accent .service__icon {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.service__title {
    font-size: 1.4rem;
    margin-bottom: 14px;
}
.service__desc {
    color: var(--c-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}
.service__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.service__list li {
    padding: 10px 0 10px 20px;
    position: relative;
    font-size: 0.92rem;
    border-top: 1px solid var(--c-line);
}
.service__list li:last-child { border-bottom: 1px solid var(--c-line); }
.service__list li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 10px; height: 2px;
    background: var(--c-green);
}

/* ---------- Founder ---------- */
.section--founder { background: var(--c-bg); }
.founder {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 64px;
    align-items: start;
}
.founder__photo {
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--c-green) 0%, var(--c-green-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.founder__photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 30px 30px;
}
.founder__initials {
    font-family: var(--ff-display);
    font-size: 6rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    letter-spacing: 0.05em;
}
.founder__name {
    font-family: var(--ff-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    margin-bottom: 8px;
}
.founder__role {
    font-size: 0.95rem;
    color: var(--c-green);
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.founder__creds {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
    padding: 20px 24px;
    background: var(--c-bg-cream);
    border-left: 3px solid var(--c-green);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.founder__creds span {
    font-size: 0.9rem;
    color: var(--c-text);
    font-weight: 500;
}
.founder__bio {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--c-text);
}
.founder__bio strong { color: var(--c-dark); font-weight: 600; }

/* ---------- Clients ---------- */
.section--clients {
    background: var(--c-bg-cream);
}
.clients__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}
.client {
    background: #fff;
    padding: 50px 30px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: all var(--t);
    border: 1px solid transparent;
}
.client:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-green);
}
.client__mark {
    width: 70px; height: 70px;
    background: var(--c-bg-cream);
    color: var(--c-green-dark);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
}
.client__name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--c-dark);
    text-align: center;
}

/* ---------- Contact ---------- */
.section--contact {
    background: var(--c-dark);
    color: #fff;
}
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.contact__lead {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 40px;
}
.contact__person {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.contact__person strong {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 6px;
}
.contact__person span {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 14px;
}
.contact__link {
    color: #6FCBB3;
    font-weight: 500;
    font-size: 0.95rem;
}
.contact__link:hover { color: #fff; }

.contact__form {
    background: rgba(255,255,255,0.04);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.08);
}
.field {
    margin-bottom: 20px;
}
.field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.85);
}
.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--t);
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--c-green-light);
    background: rgba(255,255,255,0.08);
}
.field textarea { resize: vertical; min-height: 110px; }
.form__status {
    margin-top: 16px;
    font-size: 0.9rem;
    color: #6FCBB3;
    text-align: center;
}

/* ---------- Footer ---------- */
.footer {
    background: #14181B;
    color: rgba(255,255,255,0.6);
    padding: 40px 0;
    text-align: center;
}
.footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}
.footer__tag {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    margin: 0;
}
.footer__copy {
    font-size: 0.8rem;
    margin: 0;
}

/* ---------- Animaciones on-scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .about__grid,
    .story,
    .founder,
    .contact {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .services__grid,
    .clients__grid {
        grid-template-columns: 1fr;
    }
    .section { padding: 80px 0; }
}

@media (max-width: 720px) {
    .nav { display: none; }
    .nav.is-open {
        display: block;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--c-line);
        box-shadow: var(--shadow-md);
    }
    .nav.is-open .nav__list {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 24px 24px;
        gap: 0;
    }
    .nav.is-open .nav__list li {
        border-top: 1px solid var(--c-line);
    }
    .nav.is-open .nav__list li:last-child {
        border-bottom: 1px solid var(--c-line);
    }
    .nav.is-open .nav__link {
        display: block;
        padding: 16px 0;
    }
    .nav.is-open .nav__link--cta {
        margin-top: 12px;
        text-align: center;
    }
    .nav__toggle { display: flex; }
    .nav__toggle.is-active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .nav__toggle.is-active span:nth-child(2) { opacity: 0; }
    .nav__toggle.is-active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

    .hero__container { padding-top: 120px; }
    .hero__cta { flex-direction: column; align-items: stretch; }
    .hero__cta .btn { justify-content: center; }
    .founder__photo { max-width: 320px; margin: 0 auto; }
    .contact__form { padding: 28px 20px; }
}
