/* ══════════════════════════════════════════════════
   ISNL — home.css
   Hero · Stats · Programas · Why · Testi · Form
══════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
    background: var(--navy);
    min-height: 620px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 80% at 70% 50%, rgba(251,213,33,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 90% 20%, rgba(229,47,50,0.08) 0%, transparent 50%);
}
.hero-pattern {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 45%;
    background: repeating-linear-gradient(
        -55deg,
        transparent 0px,
        transparent 28px,
        rgba(255,255,255,0.018) 28px,
        rgba(255,255,255,0.018) 29px
    );
}
.hero-accent {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: linear-gradient(to bottom, var(--yellow), var(--red));
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}
.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(251,213,33,0.12);
    border: 1px solid rgba(251,213,33,0.3);
    color: var(--yellow);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 2px;
    margin-bottom: 24px;
    width: fit-content;
}
.hero-label::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--yellow);
    animation: pulse 2s infinite;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.hero h1 em {
    color: var(--yellow);
    font-style: normal;
    display: block;
}
.hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 36px;
    font-weight: 300;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero visual cards */
.hero-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.hero-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}
.hero-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-3px);
}
.hero-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}
.hero-card.c1::before { background: var(--yellow); }
.hero-card.c2::before { background: var(--red); }
.hero-card.c3::before { background: #4ade80; }
.hero-card.c4::before { background: #60a5fa; }
.hero-card-icon  { font-size: 28px; margin-bottom: 10px; }
.hero-card-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.hero-card-sub { font-size: 12px; color: rgba(255,255,255,0.45); }


/* ══════════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════════ */
.stats-bar { background: var(--yellow); }
.stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat-item {
    padding: 28px 24px;
    border-right: 1px solid rgba(1,30,49,0.12);
    display: flex;
    align-items: center;
    gap: 16px;
}
.stat-item:last-child { border-right: none; }
.stat-icon  { font-size: 28px; opacity: 0.8; }
.stat-num   {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}
.stat-label {
    font-size: 12px;
    color: rgba(1,30,49,0.65);
    font-weight: 500;
    margin-top: 2px;
}


/* ══════════════════════════════════════════════════
   PROGRAMS
══════════════════════════════════════════════════ */
.programs { background: var(--light); }

/* Sede filter */
.sede-filter-wrap { margin-bottom: 8px; }
.sede-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray);
    margin-bottom: 10px;
}
.program-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #dde1e7;
    overflow-x: auto;
    margin-bottom: 0;
}
.ptab {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 6px;
}
.ptab:hover  { color: var(--navy); }
.ptab.active { color: var(--navy); border-bottom-color: var(--yellow); }

.sede-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.sede-dot.david { background: var(--navy); }
.sede-dot.sede2 { background: var(--red); }
.sede-dot.sede3 { background: var(--green); }

.sede-badge {
    font-size: 9px;
    background: var(--yellow);
    color: var(--navy);
    padding: 2px 7px;
    border-radius: 2px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.ptab.active .sede-badge {
    background: var(--navy);
    color: var(--yellow);
}

.programs-count {
    font-size: 13px;
    color: var(--gray);
    margin: 16px 0 24px;
}
.programs-count strong { color: var(--navy); }

/* Program cards */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.program-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    animation: cardIn 0.3s ease both;
}
.program-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--yellow);
}
.pc-header {
    background: var(--navy);
    padding: 24px;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.pc-header::before {
    content: '';
    position: absolute;
    right: -20px; top: -20px;
    width: 100px; height: 100px;
    border-radius: 50%;
    background: rgba(251,213,33,0.08);
}
.pc-header::after {
    content: '';
    position: absolute;
    right: 20px; bottom: -30px;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(229,47,50,0.08);
}
.pc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    margin-bottom: 10px;
    width: fit-content;
    position: relative;
    z-index: 1;
    background: rgba(251,213,33,0.15);
    color: var(--yellow);
}
.pc-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}
.pc-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pc-duration {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pc-bullets { list-style: none; margin-bottom: 16px; flex: 1; }
.pc-bullets li {
    font-size: 13px;
    color: #4a5568;
    padding: 5px 0 5px 16px;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}
.pc-bullets li:last-child { border-bottom: none; }
.pc-bullets li::before {
    content: '';
    position: absolute;
    left: 0; top: 12px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--yellow);
}
.pc-sedes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
}
.sede-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 2px;
    font-weight: 600;
    letter-spacing: 0.06em;
}
.sede-tag.david { background: rgba(1,30,49,0.08);    color: var(--navy); }
.sede-tag.sede2 { background: rgba(229,47,50,0.08);  color: var(--red); }
.sede-tag.sede3 { background: rgba(22,163,74,0.08);  color: var(--green); }

.pc-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--navy);
    color: var(--yellow);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all var(--transition);
    margin-top: auto;
}
.pc-cta:hover { background: var(--yellow); color: var(--navy); }

.programs-more { margin-top: 40px; }
.programs-more-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
@media (max-width: 480px) {
    .programs-more-btns { flex-direction: column; align-items: stretch; }
    .programs-more-btns .btn-primary,
    .programs-more-btns .btn-secondary { width: 100%; justify-content: center; }
}


/* ══════════════════════════════════════════════════
   WHY US
══════════════════════════════════════════════════ */
.why { background: var(--navy); }
.why .section-title        { color: var(--white); }
.why .section-desc         { color: rgba(255,255,255,0.5); }
.why .overline             { color: var(--yellow); }
.why .overline::before     { background: var(--yellow); }

.why-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.why-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}
.why-card:hover {
    background: rgba(251,213,33,0.07);
    border-color: rgba(251,213,33,0.3);
    transform: translateY(-4px);
}
.why-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--yellow);
    transform: scaleX(0);
    transition: transform 0.25s;
}
.why-card:hover::after { transform: scaleX(1); }
.why-icon  { font-size: 36px; margin-bottom: 14px; display: block; }
.why-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.why-desc { font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* ══════════════════════════════════════════════════
   TESTIMONIOS
══════════════════════════════════════════════════ */
.testimonials { background: var(--white); }
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testi-card {
    background: var(--light);
    border-radius: 8px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    transition: all 0.25s;
}
.testi-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--yellow);
}
.testi-quote {
    font-family: var(--font-display);
    font-size: 72px;
    line-height: 0.8;
    color: var(--yellow);
    opacity: 0.6;
    margin-bottom: 12px;
}
.testi-text {
    font-size: 14px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 20px;
    font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    color: var(--yellow);
    flex-shrink: 0;
}
.testi-name    { font-size: 14px; font-weight: 700; color: var(--navy); }
.testi-program { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.08em; }

/* ══════════════════════════════════════════════════
   FORMULARIO
══════════════════════════════════════════════════ */
.form-section { background: var(--light); padding: 88px 0; }
.form-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}
.form-info .overline::before     { background: var(--red); }
.form-info .section-title        { margin-bottom: 16px; }
.form-info p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 28px;
}
.form-contact-items { display: flex; flex-direction: column; gap: 14px; }
.fci { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--navy); }
.fci-icon {
    width: 36px; height: 36px;
    background: var(--navy);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* Form box */
.form-box {
    background: var(--white);
    border-radius: 8px;
    padding: 36px;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
}
.form-box h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--yellow);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

.form-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--navy);
}
.form-label span { color: var(--red); }

.form-input,
.form-select,
.form-textarea {
    padding: 12px 14px;
    border: 1.5px solid #dde1e7;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--navy);
    background: var(--white);
    transition: all var(--transition);
    outline: none;
    width: 100%;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(1,30,49,0.08);
}
.form-input.error,
.form-select.error  { border-color: var(--red); }

.form-error {
    font-size: 11px;
    color: var(--red);
    margin-top: 2px;
    display: none;
}
.form-textarea {
    resize: vertical;
    min-height: 90px;
}
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23011e31' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.form-submit {
    grid-column: 1 / -1;
    padding: 15px 28px;
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}
.form-submit:hover {
    background: var(--yellow);
    color: var(--navy);
    transform: translateY(-2px);
}
.form-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.form-note {
    grid-column: 1 / -1;
    font-size: 11px;
    color: var(--gray);
    text-align: center;
}

/* Alerts */
.alert-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alert-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ══ FAQ ═══════════════════════════════════════════ */
.faq-section { background: #f8fafc; }
 
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
 
.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item.open {
    border-color: var(--yellow);
}
 
.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    text-align: left;
    gap: 16px;
    transition: background 0.2s;
}
.faq-q:hover { background: #f8fafc; }
.faq-item.open .faq-q { background: var(--navy); color: var(--white); }
 
.faq-icon {
    font-size: 22px;
    font-weight: 300;
    flex-shrink: 0;
    transition: transform 0.25s;
    line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
 
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s;
    padding: 0 24px;
}
.faq-item.open .faq-a {
    max-height: 300px;
    padding: 16px 24px 20px;
}
.faq-a p {
    margin: 0;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.75;
}
.faq-a a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
}


/* ══════════════════════════════════════════════════
   RESPONSIVE — HOME ESPECÍFICO
══════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .hero-inner { gap: 32px; }

    /* Tabs de sede — permitir wrap */
    .program-tabs   { flex-wrap: wrap; gap: 6px; }
    .ptab           { font-size: 12px; padding: 8px 14px; }
}

/* ─── Tablet ajustado (≤ 1060px) ────────────────── */
@media (max-width: 1060px) {
    .nav-link         { padding: 0 8px; font-size: 12px; }
    /* Botón CTA: ocultar texto, mostrar solo ícono */
    .nav-cta .nav-cta-text { display: none; }
    .nav-cta::after   { content: '✎'; font-size: 16px; }
    .nav-cta          { padding: 10px 14px; }
}

/* ─── Tablet (≤ 1024px) ──────────────────────────── */
@media (max-width: 1024px) {
    .why-grid        { grid-template-columns: repeat(3, 1fr); }
    .programs-grid   { grid-template-columns: repeat(2, 1fr); }
}

/* Móvil grande */
@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding: 52px 20px 44px;
        gap: 0;
    }
    .hero h1    { font-size: clamp(32px, 9vw, 48px); }
    .hero p     { font-size: 14px; }
    .hero-btns  { gap: 10px; }

    /* Stats: 2x2 */
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .stat-item   { padding: 20px 16px; gap: 10px; border-right: none;
                   border-bottom: 1px solid rgba(1,30,49,0.1); }
    .stat-item:nth-child(odd)  { border-right: 1px solid rgba(1,30,49,0.1); }
    .stat-item:nth-child(3),
    .stat-item:nth-child(4)    { border-bottom: none; }
    .stat-num   { font-size: 28px; }
    .stat-icon  { font-size: 22px; }

    /* Programas: 1 columna */
    .programs-grid { grid-template-columns: 1fr; }
    .program-tabs  { flex-wrap: wrap; gap: 6px; }
    .ptab          { font-size: 12px; padding: 8px 12px; }

    /* Why: 2 columnas */
    .why-grid { grid-template-columns: repeat(2, 1fr); }

    /* Testimonios: 1 columna */
    .testi-grid { grid-template-columns: 1fr; }

    /* Formulario: 1 columna */
    .form-wrap  { grid-template-columns: 1fr; gap: 32px; }
    .form-grid  { grid-template-columns: 1fr; }
    .form-group.full { grid-column: auto; }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .hero-inner  { padding: 44px 16px 36px; }
    .hero h1     { font-size: 30px; }
    .hero-btns   { flex-direction: column; }
    .hero-btns a { width: 100%; justify-content: center; text-align: center; }

    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .stat-icon   { display: none; }
    .stat-num    { font-size: 26px; }

    /* Why: 1 columna en móvil pequeño */
    .why-grid { grid-template-columns: 1fr; }

    .programs-more-btns { flex-direction: column; align-items: stretch; }
    .programs-more-btns .btn-primary,
    .programs-more-btns .btn-secondary-dark { width: 100%; justify-content: center; }
}

/* Móvil muy pequeño */
@media (max-width: 375px) {
    .hero-inner  { padding: 36px 14px; }
    .hero h1     { font-size: 26px; }
    .stat-num    { font-size: 22px; }
    .stat-label  { font-size: 10px; }
}