/* ============================================================
   CINTA CONSULTORES — Hoja de Estilos
   Diseño industrial · Tipografía bold · Layout asimétrico
   Paleta: Azul #091a33 · Dorado #b8862c · Cemento #e8e5df
   ============================================================ */

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --ink:       #0c1829;
    --steel:     #132842;
    --navy:      #0d1f3c;
    --gold:      #b8862c;
    --gold-dim:  #9a7020;
    --gold-bright:#cf9f3e;
    --concrete:  #e8e5df;
    --cement:    #d5d1c8;
    --white:     #ffffff;
    --smoke:     #f4f2ed;
    --charcoal:  #2a2a2a;
    --muted:     #6b6b6b;
    --line:      rgba(0,0,0,0.08);
    --line-dark: rgba(255,255,255,0.10);
    --font-head: 'Barlow Condensed', 'Impact', 'Arial Narrow', sans-serif;
    --font-mono: 'Ubuntu Mono', 'Courier New', monospace;
    --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--smoke);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- TIPOGRAFÍA ---------- */
.heading {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.heading--light { color: var(--white); }

.label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 0.75rem;
}
.label--dark { color: var(--gold-bright); }

/* ---------- BOTONES ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 2.2rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}
.btn--primary {
    background: var(--gold);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}
.btn--primary:hover { background: var(--gold-dim); }
.btn--ghost {
    border: 2px solid rgba(255,255,255,0.35);
    color: var(--white);
    background: transparent;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn--block { width: 100%; justify-content: center; }

/* ============================================================
   SPLASH SCREEN
   ============================================================ */
.splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.splash--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.splash__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}
.splash__logo img {
    width: clamp(180px, 40vw, 320px);
    height: auto;
    animation: splashPulse 1.6s ease-in-out infinite alternate;
}
.splash__loader {
    display: flex;
    gap: 0.7rem;
}
.splash__loader span {
    display: block;
    width: 10px;
    height: 10px;
    background: var(--gold);
    animation: splashDot 1.2s ease-in-out infinite;
}
.splash__loader span:nth-child(2) { animation-delay: 0.15s; }
.splash__loader span:nth-child(3) { animation-delay: 0.30s; }

@keyframes splashPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.04); }
}
@keyframes splashDot {
    0%, 80%, 100% { opacity: 0.25; transform: scale(0.7); }
    40% { opacity: 1; transform: scale(1); }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header.scrolled {
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.header__inner {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.header__logo { height: 44px; }
.header__logo img { height: 100%; width: auto; }
.header__nav { display: flex; gap: 0.2rem; }
.header__nav a {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0.5rem 1.1rem;
    transition: color 0.25s;
}
.header__nav a:hover,
.header__nav a.active { color: var(--ink); }

.header__login-btn {
    background: var(--gold) !important;
    color: var(--white) !important;
    padding: 0.45rem 1.2rem !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.08em !important;
    transition: background 0.25s !important;
    margin-left: 0.8rem;
}
.header__login-btn:hover {
    background: var(--gold-dim) !important;
    color: var(--white) !important;
}

.header__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.header__toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--ink);
    transition: all 0.3s;
}
.header__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.header__toggle.active span:nth-child(2) { opacity: 0; }
.header__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--navy);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.45);
}
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(184,134,44,0.08) 0%, transparent 60%),
        linear-gradient(180deg, rgba(9,26,51,0.45) 0%, rgba(9,26,51,0.70) 100%);
}
.hero__bg {
    display: none;
}
.hero__body {
    position: relative;
    z-index: 2;
    max-width: 1340px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}
.hero__logo-block {
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero__logo-img {
    width: 100%;
    max-width: 420px;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.4));
}
.hero__text-block {
    max-width: 560px;
}
.hero__overline {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}
.hero__title {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 1.5rem;
}
.hero__sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 460px;
}
.hero__cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.hero__scroll {
    position: absolute;
    bottom: 3rem;
    right: 2rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}
.hero__scroll span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.3);
    writing-mode: vertical-rl;
}
.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
    padding: 7rem 2rem;
    background: var(--white);
}
.about__grid {
    max-width: 1340px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}
.about__accent {
    width: 48px;
    height: 4px;
    background: var(--gold);
    margin: 1.5rem 0 2rem;
}
.about__mission {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--steel);
    margin-bottom: 1.5rem;
    font-style: italic;
}
.about__text {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 480px;
}
.about__badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.about__badge {
    border: 2px solid var(--line);
    padding: 0.9rem 1.4rem;
    text-align: center;
    min-width: 90px;
}
.about__badge span {
    display: block;
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--ink);
}
.about__badge small {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.2rem;
}
.about__right {
    display: flex;
    justify-content: center;
}
.about__img-frame {
    background: var(--concrete);
    padding: 3rem;
    position: relative;
}
.about__img-frame::after {
    content: '';
    position: absolute;
    top: 16px; left: 16px;
    width: 100%; height: 100%;
    border: 2px solid var(--gold);
    z-index: -1;
}

/* ============================================================
   COURSES
   ============================================================ */
.courses {
    padding: 7rem 2rem;
    background: var(--smoke);
}
.courses__head {
    max-width: 1340px;
    margin: 0 auto 4rem;
}
.courses__head p {
    max-width: 520px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 1rem;
}
.courses__list {
    max-width: 1340px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1px;
    background: var(--cement);
    border: 1px solid var(--cement);
}

/* Course card — estilo ficha industrial */
.course {
    background: var(--white);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: background 0.3s;
    position: relative;
}
.course:hover {
    background: var(--ink);
}
.course:hover .course__title,
.course:hover .course__items li,
.course:hover .course__link,
.course:hover .course__icon,
.course:hover .course__num {
    color: var(--white);
}
.course:hover .course__icon {
    color: var(--gold);
}
.course:hover .course__num {
    color: rgba(255,255,255,0.2);
}
.course:hover .course__items li::before {
    background: var(--gold);
}
.course:hover .course__link {
    color: var(--gold);
}

.course__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}
.course__num {
    font-family: var(--font-head);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--concrete);
    line-height: 1;
    transition: color 0.3s;
}
.course__icon {
    font-size: 1.4rem;
    color: var(--gold);
    transition: color 0.3s;
}
.course__title {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 1.4rem;
    transition: color 0.3s;
}
.course__items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.8rem;
}
.course__items li {
    font-size: 0.85rem;
    color: var(--muted);
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.5;
    transition: color 0.3s;
}
.course__items li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.55em;
    width: 5px; height: 5px;
    background: var(--concrete);
    transition: background 0.3s;
}
.course__link {
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s;
    margin-top: auto;
}

/* ============================================================
   CREDS — Acreditaciones
   ============================================================ */
.creds {
    padding: 7rem 2rem;
    background: var(--ink);
}
.creds__grid {
    max-width: 1340px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}
.creds__accent {
    width: 48px; height: 4px;
    background: var(--gold);
    margin: 1.5rem 0 0;
}
.creds__right {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.creds__item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}
.creds__dot {
    width: 10px; height: 10px;
    background: var(--gold);
    flex-shrink: 0;
    margin-top: 0.45rem;
}
.creds__item h4 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.3rem;
}
.creds__item p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
    padding: 7rem 2rem;
    background: var(--white);
}
.contact__grid {
    max-width: 1340px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
}
.contact__info {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-top: 2rem;
}
.contact__info-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.contact__info-icon {
    width: 40px; height: 40px;
    background: var(--smoke);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
    font-size: 0.9rem;
}
.contact__info-row small {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}
.contact__info-row p {
    font-size: 0.9rem;
    color: var(--ink);
    line-height: 1.5;
    margin-top: 0.15rem;
}
.contact__info-row a {
    color: var(--ink);
    font-weight: 600;
}
.contact__info-row a:hover { color: var(--gold); }

/* Form */
.contact__form {
    background: var(--smoke);
    padding: 2.5rem;
    border: 1px solid var(--cement);
}
.contact__form-title {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: var(--ink);
}
.contact__form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.field {
    position: relative;
}
.field--full { grid-column: 1 / -1; }
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 1rem 1rem 0.6rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--white);
    border: 1px solid var(--cement);
    color: var(--ink);
    outline: none;
    transition: border-color 0.25s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--gold);
}
.field label {
    position: absolute;
    top: 0.35rem; left: 1rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    pointer-events: none;
}
.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}
.field textarea {
    resize: vertical;
    min-height: 90px;
}
.contact__form .btn--block {
    margin-top: 1.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--ink);
    padding: 3.5rem 2rem 2rem;
    color: rgba(255,255,255,0.45);
}
.footer__top {
    max-width: 1340px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line-dark);
    flex-wrap: wrap;
}
.footer__logo {
    height: 40px;
    margin-bottom: 1rem;
}
.footer__top p {
    font-size: 0.85rem;
    max-width: 320px;
    line-height: 1.6;
}
.footer__links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer__links a {
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.25s;
}
.footer__links a:hover { color: var(--white); }
.footer__bottom {
    max-width: 1340px;
    margin: 0 auto;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}
.footer__fb {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.25s;
}
.footer__fb:hover { background: var(--gold); color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero__body {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 6rem 1.5rem 3rem;
    }
    .hero__logo-block { order: -1; }
    .hero__logo-img { max-width: 200px; margin: 0 auto; }
    .hero__text-block { max-width: 100%; }
    .hero__sub { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero__cta { justify-content: center; }
    .hero__scroll { display: none; }
    .hero__title { font-size: clamp(2rem, 6vw, 3.5rem); }

    .heading {
        font-size: clamp(2.2rem, 6vw, 4rem);
    }

    .about {
        padding: 5rem 1.5rem;
    }
    .about__grid { grid-template-columns: 1fr; gap: 2rem; }
    .about__right { display: none; }

    .courses {
        padding: 5rem 1.5rem;
    }
    .courses__head { margin-bottom: 2.5rem; }

    .creds {
        padding: 5rem 1.5rem;
    }
    .creds__grid { grid-template-columns: 1fr; gap: 2.5rem; }

    .contact {
        padding: 5rem 1.5rem;
    }
    .contact__grid { grid-template-columns: 1fr; gap: 3rem; }

    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }
}

@media (max-width: 768px) {
    html { font-size: 15px; }

    .header__inner {
        padding: 0 1.2rem;
        height: 60px;
    }
    .header__logo { height: 34px; }
    .header__toggle { display: flex; }
    .header__nav {
        position: fixed;
        top: 0; right: -100%;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        box-shadow: -8px 0 30px rgba(0,0,0,0.15);
        transition: right 0.35s ease;
        z-index: 999;
        overflow-y: auto;
    }
    .header__nav.open { right: 0; }
    .header__nav a {
        display: block;
        padding: 0.9rem 0;
        border-bottom: 1px solid var(--line);
        font-size: 1rem;
    }
    .header__login-btn {
        display: inline-block !important;
        text-align: center;
        margin: 0.8rem 0 0 0 !important;
        padding: 0.7rem 1.2rem !important;
    }

    .hero {
        min-height: 100vh;
        min-height: 100dvh;
    }
    .hero__body {
        padding: 5rem 1.2rem 3rem;
    }
    .hero__logo-img { max-width: 170px; }
    .hero__title { font-size: 2rem; line-height: 1.05; }
    .hero__sub { font-size: 0.9rem; }
    .hero__cta { flex-direction: column; align-items: center; }
    .hero__cta .btn { width: 100%; max-width: 320px; justify-content: center; }

    .about__badges { justify-content: center; }
    .about__badge { min-width: 80px; padding: 0.7rem 1rem; }
    .about__badge span { font-size: 1.1rem; }

    .courses__list {
        grid-template-columns: 1fr;
        gap: 1px;
    }
    .course {
        padding: 2rem 1.5rem;
    }
    .course__num { font-size: 2.8rem; }
    .course__title { font-size: 1.3rem; }

    .creds__item {
        gap: 0.8rem;
    }
    .creds__item h4 {
        font-size: 1.1rem;
    }

    .contact__form {
        padding: 1.8rem;
    }
    .contact__form-grid {
        grid-template-columns: 1fr;
    }
    .contact__form-title { font-size: 1.2rem; }

    .footer__top {
        flex-direction: column;
        gap: 1.5rem;
    }
    .footer__logo { height: 32px; }
    .footer__links {
        flex-direction: column;
        gap: 0.6rem;
    }
    .footer__bottom {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html { font-size: 14px; }

    .splash__logo img {
        width: clamp(150px, 55vw, 220px);
    }
    .splash__inner { gap: 2rem; }

    .header__inner { padding: 0 1rem; height: 56px; }
    .header__logo { height: 30px; }

    .hero__body { padding: 4.5rem 1rem 2.5rem; }
    .hero__logo-img { max-width: 140px; }
    .hero__title { font-size: 1.7rem; }
    .hero__overline { font-size: 0.62rem; letter-spacing: 0.18em; }
    .hero__sub { font-size: 0.85rem; }

    .about { padding: 4rem 1rem; }
    .about__mission { font-size: 1.1rem; }
    .about__text { font-size: 0.85rem; }
    .about__badges { flex-direction: column; align-items: stretch; }
    .about__badge { text-align: center; }

    .courses { padding: 4rem 1rem; }
    .course { padding: 1.8rem 1.2rem; }

    .creds { padding: 4rem 1rem; }
    .creds__right { gap: 2rem; }

    .contact { padding: 4rem 1rem; }
    .contact__form { padding: 1.5rem; }
    .contact__info-row { gap: 0.7rem; }
    .contact__info-icon { width: 34px; height: 34px; font-size: 0.8rem; }

    .footer { padding: 2.5rem 1rem 1.2rem; }
}
