/* asesorias.css
 * AsesorIAs-specific layout components.
 * Assumes the base .ship-* styles (nav, hero, section, body, footer) are inlined
 * in each page's <style> block, matching the rest of the site.
 * All colors use rgba() literals (true black/white), no tokens — matches site convention.
 */
@import url('/shared/css/ship-scale.css');

.cta-button { max-width: 100%; text-align: center; justify-content: center; }
.cta-button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* ---------- Tool logo carousel (infinite scroll) ---------- */

.tool-carousel {
    --tool-slot: 230px;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    padding: 24px 0;
    position: relative;
}

/* Fade a stationary overlay, rather than masking the moving image layer. */
.tool-carousel::before, .tool-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 12%;
    z-index: 1;
    pointer-events: none;
}
.tool-carousel::before { left: 0; background: linear-gradient(to right, #000, transparent); }
.tool-carousel::after { right: 0; background: linear-gradient(to left, #000, transparent); }

.tool-carousel__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--tool-slot);
    width: max-content;
    transform: translateX(0);
}

.tool-carousel__track[data-carousel-ready] {
    animation: tool-scroll var(--tool-duration) linear infinite;
}
.tool-carousel__track[data-carousel-paused] { animation-play-state: paused; }

.tool-carousel__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: var(--tool-slot);
    min-width: 0;
    box-sizing: border-box;
    padding: 0 16px;
    height: 64px;
}

.tool-carousel__img {
    display: block;
    flex-shrink: 0;
    width: auto;
    object-fit: contain;
    opacity: 0.92;
}

/* Per-logo invert is applied via this modifier class set in JS */
.tool-carousel__img--invert {
    filter: brightness(0) invert(1);
}

@keyframes tool-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-1 * var(--tool-distance))); }
}

@media (prefers-reduced-motion: reduce) {
    .tool-carousel__track[data-carousel-ready] { animation: none; }
}

@media (max-width: 768px) {
    .tool-carousel { --tool-slot: 240px; }
    .tool-carousel__item { padding: 0 16px; height: 48px; gap: 6px; }
    .tool-carousel__img { max-height: 34px; }
}

/* ---------- Pricing grid (4 hairline cells) ---------- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.10);
    border-left: 1px solid rgba(255,255,255,0.10);
    margin-top: 32px;
}

.pricing-grid__cell {
    padding: 32px 24px;
    border-right: 1px solid rgba(255,255,255,0.10);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-grid__label {
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(255,255,255,0.45);
}

.pricing-grid__value {
    font-family: 'Geist', sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.022em;
    color: #fff;
    line-height: 1.2;
}

section.light .pricing-grid {
    border-top-color: rgba(0,0,0,0.10);
    border-left-color: rgba(0,0,0,0.10);
}
section.light .pricing-grid__cell {
    border-right-color: rgba(0,0,0,0.10);
    border-bottom-color: rgba(0,0,0,0.10);
}
section.light .pricing-grid__label { color: rgba(0,0,0,0.45); }
section.light .pricing-grid__value { color: #000; }

@media (max-width: 768px) {
    .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pricing-grid__cell { padding: 24px 18px; }
    .pricing-grid__value { font-size: 1.125rem; }
}

/* ---------- Instructor bio (3 size variants) ---------- */

.bio {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: start;
}

.bio__photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10);
}

.bio__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 35%;
}

.bio__name {
    font-family: 'Geist', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.028em;
    line-height: 1.15;
    margin: 0 0 16px;
    color: #fff;
}

.bio__body {
    font-family: 'Geist', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.78);
    letter-spacing: -0.005em;
    margin: 0;
    max-width: 560px;
}

section.light .bio__name { color: #000; }
section.light .bio__body { color: rgba(0,0,0,0.72); }
section.light .bio__photo { border-color: rgba(0,0,0,0.10); }

.instructor-label__photo {
    aspect-ratio: 1 / 1;
}

.instructor-label__photo img { object-position: center; }

.instructor-section__grid { align-items: center; }
.instructor-label { text-align: center; }
.instructor-label__photo { margin-inline: auto; }
.instructor-copy,
.instructor-copy .bio__body { text-align: center; }

.bio--compact { grid-template-columns: 140px 1fr; gap: 24px; }
.bio--compact .bio__name { font-size: 1.25rem; }
.bio--compact .bio__body { font-size: 0.9375rem; }

.bio--longform { grid-template-columns: 220px 1fr; gap: 28px; align-items: stretch; }
.bio.bio--text-only { grid-template-columns: 1fr; }
.bio--longform .bio__photo { aspect-ratio: 4 / 5; }
.bio--longform .bio__name { font-size: 1.25rem; }
.bio--longform .bio__body { font-size: 0.9375rem; max-width: none; }

.bio--xcompact { grid-template-columns: 200px 1fr; gap: 28px; }
.bio--xcompact .bio__name { font-size: 1.0625rem; margin-bottom: 10px; }
.bio--xcompact .bio__body { font-size: 0.875rem; line-height: 1.55; }

@media (max-width: 768px) {
    .bio, .bio--compact, .bio--longform, .bio--xcompact {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .bio__photo { max-width: 200px; }
    .bio--compact .bio__photo { max-width: 140px; }
    .bio--xcompact .bio__photo { max-width: 200px; }
    .bio--longform .bio__photo { max-width: 180px; aspect-ratio: 4 / 5; }

    .instructor-section {
        text-align: center;
    }
    .instructor-section .bio {
        justify-items: center;
    }
    .instructor-section .bio__photo {
        margin-inline: auto;
    }
    .instructor-section .bio__body {
        margin-inline: auto;
    }
}

/* ---------- Testimonials (2-col grid) ---------- */

.testimonials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.10);
    border-left: 1px solid rgba(255,255,255,0.10);
    margin-top: 32px;
}

.testimonial {
    padding: 32px 28px;
    border-right: 1px solid rgba(255,255,255,0.10);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.testimonial__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.testimonial__photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.10);
}

.testimonial__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial__name {
    font-family: 'Geist', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.012em;
    color: #fff;
    margin: 0;
}

.testimonial__tagline,
.testimonial__company {
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.45);
    margin: 4px 0 0;
}

.testimonial__company {
    color: rgba(255,255,255,0.32);
    margin-top: 2px;
}

.testimonial__quote {
    font-family: 'Geist', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.78);
    letter-spacing: -0.005em;
    margin: 0;
}

section.light .testimonials {
    border-top-color: rgba(0,0,0,0.10);
    border-left-color: rgba(0,0,0,0.10);
}
section.light .testimonial {
    border-right-color: rgba(0,0,0,0.10);
    border-bottom-color: rgba(0,0,0,0.10);
}
section.light .testimonial__photo { border-color: rgba(0,0,0,0.10); }
section.light .testimonial__name { color: #000; }
section.light .testimonial__tagline { color: rgba(0,0,0,0.45); }
section.light .testimonial__company { color: rgba(0,0,0,0.32); }
section.light .testimonial__quote { color: rgba(0,0,0,0.72); }

@media (max-width: 768px) {
    .testimonials { grid-template-columns: 1fr; }
    .testimonial { padding: 24px 20px; }
}

/* ---------- Choice grid (profile / problem selectors) ---------- */

.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.10);
    border-left: 1px solid rgba(255,255,255,0.10);
    margin-top: 32px;
}

.choice-card {
    padding: 32px 28px;
    border-right: 1px solid rgba(255,255,255,0.10);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    transition: background-color 180ms ease, color 180ms ease;
    cursor: pointer;
}

.choice-card:hover {
    background: rgba(255,255,255,0.04);
}

.choice-card__title {
    font-family: 'Geist', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.012em;
    color: #fff;
    margin: 0;
}

.choice-card__description {
    font-family: 'Geist', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.65);
    letter-spacing: -0.005em;
    margin: 0;
}

@media (max-width: 768px) {
    .choice-grid { grid-template-columns: 1fr; }
    .choice-card { padding: 24px 20px; }
}

/* ---------- FAQ accordion (native details/summary) ---------- */

.faq-list { margin-top: 32px; }

.faq-item {
    border-top: 1px solid rgba(255,255,255,0.10);
    padding: 0;
}

.faq-item:last-of-type {
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.faq-item summary {
    padding: 24px 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    font-family: 'Geist', sans-serif;
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: -0.012em;
    color: #fff;
    line-height: 1.4;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }

.faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    font-family: 'Geist Mono', monospace;
    font-size: 20px;
    line-height: 1;
    color: rgba(255,255,255,0.45);
    transition: transform 180ms ease, color 180ms ease;
}

.faq-item[open] summary::after { content: '−'; color: #fff; }

.faq-item__answer {
    padding: 0 0 24px;
    font-family: 'Geist', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.72);
    letter-spacing: -0.005em;
    max-width: 720px;
}

.faq-item__answer strong { color: #fff; font-weight: 600; }

section.light .faq-item,
section.light .faq-item:last-of-type { border-color: rgba(0,0,0,0.10); }
section.light .faq-item summary { color: #000; }
section.light .faq-item summary::after { color: rgba(0,0,0,0.45); }
section.light .faq-item[open] summary::after { color: #000; }
section.light .faq-item__answer { color: rgba(0,0,0,0.72); }
section.light .faq-item__answer strong { color: #000; }

/* ---------- WhatsApp CTA button ---------- */

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border: 1px solid rgba(255,255,255,0.22);
    background: #fff;
    color: #000;
    text-decoration: none;
    font-family: 'Geist', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    transition: opacity 180ms ease;
    border-radius: 3px;
}

.cta-button:hover { opacity: 0.88; }

.cta-button--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.22);
}

.cta-button--ghost:hover {
    background: rgba(255,255,255,0.04);
    opacity: 1;
}

section.light .cta-button {
    background: #000;
    color: #fff;
    border-color: rgba(0,0,0,0.10);
}

section.light .cta-button--ghost {
    background: transparent;
    color: #000;
    border-color: rgba(0,0,0,0.22);
}

section.light .cta-button--ghost:hover {
    background: rgba(0,0,0,0.04);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

/* ---------- Section padding modifiers ---------- */

/* Halves the top padding — used when a section sits directly under a hero divider
 * so the choice cards / next content feel close to the question, not floating. */
.ship-section--tight-top { padding-top: 48px; }

@media (max-width: 768px) {
    .ship-section--tight-top { padding-top: 32px; }
}

@media (max-width: 480px) {
    .ship-section--tight-top { padding-top: 24px; }
}

/* ---------- Section title + lead helper (for hero sub-sections) ---------- */

.section-head {
    margin-bottom: 36px;
    max-width: 720px;
}

.pricing-centered { text-align: center; }
.pricing-centered__head { margin-inline: auto; }
.pricing-centered .pricing-grid__cell { align-items: center; }
.testimonials-heading { margin-inline: auto; text-align: center; }
.instructor-heading { margin-inline: auto; text-align: center; }
.instructor-bio { max-width: 760px; margin-inline: auto; }
section.ship-section.closing-section { padding-bottom: 48px; }

@media (max-width: 768px) {
    section.ship-section.closing-section { padding-bottom: 32px; }
}

@media (max-width: 480px) {
    section.ship-section.closing-section { padding-bottom: 24px; }
}

.section-head .lead {
    margin: 16px 0 0;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.70);
    letter-spacing: -0.011em;
}

section.light .section-head .lead { color: rgba(0,0,0,0.65); }

/* ---------- Choice grid: 4-card variant ---------- */

.choice-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .choice-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .choice-grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Pricing sub-label ---------- */

.pricing-grid__sub {
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.35);
    line-height: 1.4;
}

section.light .pricing-grid__sub { color: rgba(0,0,0,0.40); }

/* ---------- Quiet CTA link (lower visual weight than .cta-button) ---------- */

.cta-quiet {
    display: inline-block;
    text-decoration: none;
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(255,255,255,0.50);
    padding: 8px 4px;
    transition: color 180ms ease;
}

.cta-quiet:hover { color: #fff; }

section.light .cta-quiet { color: rgba(0,0,0,0.55); }
section.light .cta-quiet:hover { color: #000; }

.ship-hero .lead {
    margin: 32px auto 0;
    max-width: 620px;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.70);
    letter-spacing: -0.011em;
}

@media (max-width: 480px) {
    .ship-hero .lead { font-size: 0.9375rem; line-height: 1.6; margin-top: 24px; }
}

/* ---------- AsesorIAs landing hero ---------- */

.ship-hero--landing .lead {
    margin: 40px auto 0;
    max-width: 680px;
    font-size: 1.25rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.70);
    letter-spacing: -0.011em;
}

.ship-hero--landing .cta-row { justify-content: center; }
.ship-hero--landing .cta-button { padding: 16px 30px; font-size: 1.0625rem; }

.ship-footer .socials { display: flex; gap: 24px; align-items: center; }
.ship-footer .social-icon { color: rgba(255,255,255,0.55); transition: color .2s ease; display: inline-flex; text-decoration: none; }
.ship-footer .social-icon:hover { color: #fff; }

@media (max-width: 480px) {
    .ship-hero--landing .lead { font-size: 1rem; line-height: 1.55; margin-top: 28px; }
}

/* Top bar logo, centered between the back arrow and the EN/ES toggle */
.ship-nav-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; line-height: 0; transition: opacity .2s ease; }
.ship-nav-logo:hover { opacity: 0.8; }
.ship-nav-logo:focus-visible { outline: 1px solid #fff; outline-offset: 4px; border-radius: 999px; }
.ship-nav-logo img { display: block; height: 36px; width: auto; }
@media (max-width: 768px) {
    .ship-nav-logo img { height: 32px; }
}
@media (max-width: 480px) {
    .ship-nav-logo img { height: 28px; }
}
