/* ============================================================
   Binding Partners — brand palette extracted from the PPTX
   ============================================================ */
:root {
    --navy: #0B1F33;          /* primary dark */
    --navy-soft: #1F2933;
    --teal: #14B8A6;          /* bright accent */
    --teal-dark: #0E8C85;
    --blue: #135D8C;
    --gold: #D9A441;
    --gray: #637381;
    --gray-light: #7A8A99;
    --bg-light: #F7FAFC;
    --bg-tint: #EAF4F7;
    --line: #D6E6EA;
    --white: #FFFFFF;

    --radius: 12px;
    --shadow: 0 4px 20px rgba(11, 31, 51, 0.08);
    --shadow-lg: 0 12px 40px rgba(11, 31, 51, 0.14);
    --font: "Inter", "Aptos", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--navy);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============ Typography helpers ============ */
.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--teal-dark);
    margin-bottom: 0.75rem;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.15; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; font-weight: 700; }
h3 { font-weight: 700; }

.accent { color: var(--teal); }

.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-tint); }

.section-head {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-lead {
    margin-top: 1rem;
    color: var(--gray);
    font-size: 1.05rem;
}

/* ============ Buttons ============ */
.btn {
    display: inline-block;
    padding: 0.8rem 1.7rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.35);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--white);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-block { width: 100%; border: none; font-family: var(--font); }

/* ============ Navbar ============ */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.25s, border-color 0.25s;
}
.navbar.scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 2px 16px rgba(11, 31, 51, 0.08);
}

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

.brand-logo { height: 46px; width: auto; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.2s;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: var(--teal);
    transition: width 0.25s;
}
.nav-link:hover, .nav-link.active { color: var(--teal-dark); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta { padding: 0.6rem 1.4rem; font-size: 0.98rem; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.hamburger span {
    width: 24px; height: 2.5px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: url("assets/hero-bg.png") center/cover no-repeat;
    color: var(--white);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,
        rgba(11, 31, 51, 0.93) 0%,
        rgba(11, 31, 51, 0.82) 45%,
        rgba(19, 93, 140, 0.45) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    padding-top: 74px;
}
.hero .eyebrow { color: var(--teal); }
.hero-sub {
    margin: 1.4rem 0 2.2rem;
    font-size: 1.12rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.scroll-hint {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    width: 36px; height: 36px;
    animation: bounce 2.2s infinite;
    z-index: 1;
}
@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

/* ============ Cards ============ */
.card-grid {
    display: grid;
    gap: 1.4rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal);
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.92rem; color: var(--gray); }

.card-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: var(--bg-tint);
    color: var(--teal-dark);
    display: grid;
    place-items: center;
    margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; }

/* ============ Callout ============ */
.callout {
    margin-top: 2.6rem;
    padding: 1.6rem 2rem;
    border-radius: var(--radius);
    background: var(--navy);
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    font-size: 1.04rem;
}
.callout strong { color: var(--teal); }
.callout-teal {
    background: linear-gradient(120deg, var(--teal-dark), var(--blue));
}
.callout-teal strong { color: var(--white); }

/* ============ Lifecycle (slide 4) ============ */
.lifecycle {
    display: flex;
    align-items: stretch;
    gap: 0.6rem;
    margin-bottom: 4rem;
}
.lifecycle-step {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--teal);
    border-radius: var(--radius);
    padding: 1.7rem 1.5rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
}
.lifecycle-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.step-phase {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-light);
    margin: 0.6rem 0 0.4rem;
}
.lifecycle-step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.lifecycle-step p { font-size: 0.88rem; color: var(--gray); }
.lifecycle-arrow {
    align-self: center;
    font-size: 1.6rem;
    color: var(--teal);
    font-weight: 700;
}

/* ============ Scope ============ */
.scope {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.5rem;
}
.scope-text h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.scope-text > p { color: var(--gray); }
.scope-list {
    margin-top: 1.3rem;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}
.scope-list li {
    position: relative;
    padding-left: 1.6rem;
    font-weight: 600;
    font-size: 0.95rem;
}
.scope-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 800;
}
.scope-img img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* ============ Services detail (dark) ============ */
.section-dark {
    background: var(--navy);
    color: var(--white);
}
.section-dark .eyebrow { color: var(--teal); }
.section-dark .section-lead { color: rgba(255, 255, 255, 0.7); }

.tabs {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 2.8rem;
}
.tab-btn {
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tab-btn:hover { border-color: var(--teal); color: var(--white); }
.tab-btn.active {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.45s ease; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-head { max-width: 800px; margin: 0 auto 2.2rem; text-align: center; }
.panel-phase {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--teal);
    margin-bottom: 0.6rem;
}
.panel-head h3 { font-size: 1.5rem; margin-bottom: 0.9rem; }
.panel-objective { color: rgba(255, 255, 255, 0.75); font-size: 0.98rem; }
.panel-objective strong { color: var(--gold); }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
.step-card {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    padding: 1.3rem 1.1rem;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.step-card:hover {
    background: rgba(20, 184, 166, 0.12);
    border-color: var(--teal);
    transform: translateY(-4px);
}
.step-card span {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--teal);
}
.step-card h4 { font-size: 0.95rem; margin: 0.5rem 0 0.4rem; }
.step-card p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.65); }

.panel-framework { margin-top: 2.6rem; }
.panel-framework h4 { text-align: center; font-size: 1.15rem; }
.framework-sub {
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    margin: 0.4rem 0 1.5rem;
}
.chip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
}
.chip {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--teal);
    border-radius: 8px;
    padding: 0.95rem 1.1rem;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.7);
}
.chip strong {
    display: block;
    color: var(--white);
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
}

.panel-outcome {
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.98rem;
}
.panel-outcome strong { color: var(--gold); }

/* ============ About ============ */
.about-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    max-width: 980px;
    margin: 0 auto;
}
.about-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.about-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal);
}
.about-photo { width: 130px; margin-bottom: 1.2rem; }
.about-photo img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow);
}
.about-perspective {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal-dark);
    margin-bottom: 0.5rem;
}
.about-text h3 { font-size: 1.3rem; }
.about-role {
    color: var(--teal-dark);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0.2rem 0 1rem;
}
.about-bio { color: var(--gray); margin-bottom: 1rem; text-align: left; }
.about-list-label {
    width: 100%;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.about-highlights {
    list-style: none;
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
    text-align: left;
    width: 100%;
}
.about-highlights li {
    position: relative;
    padding-left: 1.6rem;
    font-size: 0.92rem;
}
.about-highlights li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 800;
}
.about-linkedin {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blue);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.2s;
}
.about-linkedin:hover { border-bottom-color: var(--blue); }
.about-linkedin svg { width: 20px; height: 20px; }

/* ============ Engagement ============ */
.deliverables {
    margin-top: 2.4rem;
    text-align: center;
    color: var(--gray);
    font-size: 0.96rem;
}
.deliverables strong { color: var(--navy); }

/* ============ Contact ============ */
.contact {
    position: relative;
    background: url("assets/cta-bg.png") center/cover no-repeat;
    color: var(--white);
}
.contact-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(11, 31, 51, 0.96) 30%, rgba(14, 140, 133, 0.85) 100%);
}
.contact-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
/* Variante sin formulario: una sola columna centrada (form oculto temporalmente) */
.contact-inner--solo { grid-template-columns: 1fr; max-width: 720px; }
.contact-text .eyebrow { color: var(--teal); }
.contact-text h2 { margin-bottom: 1.1rem; }
.contact-text > p { color: rgba(255, 255, 255, 0.82); margin-bottom: 1rem; }
.contact-cta-line { font-weight: 600; color: var(--white) !important; }

.contact-schedule { margin-top: 0.6rem; }

.contact-details {
    list-style: none;
    margin-top: 1.6rem;
    display: grid;
    gap: 0.9rem;
}
.contact-details li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.contact-details svg { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; }
.contact-details a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.contact-details a:hover { border-bottom-color: var(--teal); }

.contact-form {
    background: var(--white);
    color: var(--navy);
    border-radius: var(--radius);
    padding: 2.2rem;
    box-shadow: var(--shadow-lg);
}
.contact-form h3 { margin-bottom: 1.3rem; font-size: 1.2rem; }
.form-row { margin-bottom: 1rem; }
.form-row label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.form-row input,
.form-row textarea {
    width: 100%;
    font-family: var(--font);
    font-size: 0.94rem;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    background: var(--bg-light);
    color: var(--navy);
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}
.form-row input.invalid,
.form-row textarea.invalid { border-color: #d9534f; }

.form-status {
    margin-top: 0.9rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 1.3rem;
}
.form-status.ok { color: var(--teal-dark); }
.form-status.error { color: #d9534f; }

/* ============ Footer ============ */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 0 1.5rem;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-logo {
    height: 46px;
    width: auto;
    background: var(--white);
    border-radius: 8px;
    padding: 6px 12px;
    margin-bottom: 0.9rem;
}
.footer-brand p { font-size: 0.88rem; max-width: 320px; }
.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-nav a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--teal); }
.footer-bottom {
    padding-top: 1.4rem;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============ Back to top ============ */
.back-to-top {
    position: fixed;
    right: 1.6rem;
    bottom: 1.6rem;
    width: 46px; height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s;
    z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--teal-dark); }
.back-to-top svg { width: 22px; height: 22px; }

/* ============ Scroll reveal ============ */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
    .chip-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-inner { grid-template-columns: 1fr; }
    .about-wrap { grid-template-columns: 1fr; max-width: 480px; }
}

/* Navbar pasa a menú hamburguesa antes (logo/menú más grandes no caben en tablet) */
@media (max-width: 992px) {
    .hamburger { display: flex; }
    .nav-menu {
        position: fixed;
        top: 74px;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        padding: 0.6rem 1.5rem 1.2rem;
        transform: translateY(-130%);
        transition: transform 0.3s ease;
    }
    .nav-menu.open { transform: translateY(0); }
    .nav-link { padding: 0.85rem 0; border-bottom: 1px solid var(--bg-tint); }
    .nav-cta { margin-top: 0.9rem; text-align: center; }
}

@media (max-width: 768px) {
    .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .chip-grid { grid-template-columns: 1fr; }
    .lifecycle { flex-direction: column; }
    .lifecycle-arrow { transform: rotate(90deg); align-self: center; }
    .scope { grid-template-columns: 1fr; padding: 1.6rem; }
    .scope-list { grid-template-columns: 1fr; }
    .section { padding: 3.5rem 0; }
    .hero { min-height: 100vh; }
}

@media (max-width: 480px) {
    .steps-grid { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; text-align: center; }
}
