/* ========================================
   Centro de Idiomas — Main Stylesheet
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bc-blue: #003580;
    --bc-blue-dark: #002560;
    --bc-cyan: #007bbd;
    --bc-cyan-light: #0091db;
    --white: #ffffff;
    --text: #1e293b;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    --gray-text: #64748b;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.1);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 30px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}
.nav.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}
.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 4px;
}
.logo-icon {
    height: 70px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo-icon img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-dots {
    display: flex;
    gap: 14px;
    align-items: center;
}
.nav-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
}
.nav-dot:hover,
.nav-dot.active {
    background: var(--bc-cyan);
    transform: scale(1.15);
}
 
/* ── HERO / CAROUSEL ── */
.hero {
    min-height: 100vh;
    background: var(--bc-blue);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 50%, rgba(0, 123, 189, 0.25), transparent),
        radial-gradient(ellipse 50% 80% at 10% 80%, rgba(0, 55, 128, 0.4), transparent);
    pointer-events: none;
    z-index: 1;
}
 
.carousel {
    position: relative;
    width: 100%;
    min-height: 100vh;
}
.carousel-track {
    position: relative;
    width: 100%;
    min-height: 100vh;
}
.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s;
    z-index: 2;
}
.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 3;
}
.carousel-slide .hero-text {
    opacity: 0;
    transform: translateY(25px);
}
.carousel-slide.active .hero-text {
    animation: slideContentIn 0.65s 0.15s ease forwards;
}
@keyframes slideContentIn {
    to { opacity: 1; transform: translateY(0); }
}
.carousel-slide .hero-image {
    opacity: 0;
    transform: scale(0.92);
}
.carousel-slide.active .hero-image {
    animation: slideImageIn 0.7s 0.25s ease forwards;
}
@keyframes slideImageIn {
    to { opacity: 1; transform: scale(1); }
}
 
/* Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-family: inherit;
    line-height: 1;
    padding: 0;
}
.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-50%) scale(1.08);
}
.carousel-prev { left: 24px; }
.carousel-next { right: 24px; }
 
/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}
.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}
.carousel-dot.active {
    background: white;
    border-color: white;
    transform: scale(1.15);
}
.carousel-dot:hover {
    border-color: white;
}
 
/* Progress bar */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}
.carousel-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--bc-cyan), #60c5f7);
    transition: width 0.1s linear;
}
.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 40px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
}
.hero-text { color: var(--white); }
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}
.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 22px;
}
.hero-desc {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 520px;
    line-height: 1.55;
    font-weight: 300;
}
.hero-btns {
    display: flex;
    gap: 16px;
    margin-top: 36px;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    text-align: center;
}
.btn-primary {
    background: var(--bc-cyan);
    color: white;
    border-color: var(--bc-cyan);
}
.btn-primary:hover {
    background: #0069a3;
    border-color: #0069a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 189, 0.35);
}
.btn-outline-white {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.35);
}
.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: white;
    transform: translateY(-2px);
}
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-image img {
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.hero-img-placeholder {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.hero-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
 
/* ── SECTIONS COMMON ── */
.section {
    padding: 90px 40px;
    max-width: 1280px;
    margin: 0 auto;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--bc-blue);
    margin-bottom: 36px;
}
 
/* ── COURSES / TABS ── */
.courses-section {
    background: var(--bg-light);
}
.tabs-header {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 12px 28px;
    border: none;
    background: var(--white);
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}
.tab-btn:hover {
    box-shadow: var(--shadow-md);
}
.tab-btn.active {
    background: var(--bc-cyan);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 189, 0.3);
}
 
.tab-panel {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    animation: fadeUp 0.45s ease;
}
.tab-panel.active {
    display: grid;
}
 
.course-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.course-thumb {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--bc-blue), var(--bc-cyan));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.course-thumb.alt {
    background: linear-gradient(135deg, #0055a4, #2d9cdb);
}
.course-thumb.dark {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}
.course-thumb.darker {
    background: linear-gradient(135deg, #0f172a, #334155);
}
.course-thumb-icon {
    font-size: 3.5rem;
    opacity: 0.25;
}
.course-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.92);
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--bc-blue);
    backdrop-filter: blur(4px);
}
.course-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.course-body h4 {
    font-size: 1.3rem;
    color: var(--bc-blue);
    margin-bottom: 10px;
    font-weight: 700;
}
.course-body p {
    color: var(--gray-text);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 20px;
    flex: 1;
}
.course-meta {
    display: flex;
    gap: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
 
/* webapp promo card */
.webapp-promo {
    grid-column: 1 / -1;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border: 2px solid var(--bc-cyan);
}
.webapp-promo h3 {
    color: var(--bc-blue);
    font-size: 1.6rem;
    margin-bottom: 12px;
}
.webapp-promo p {
    color: var(--gray-text);
    font-size: 1rem;
    line-height: 1.5;
}
 
/* ── MOCK TEST + CALENDAR ── */
.info-section {
    background: var(--white);
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 45px;
    align-items: start;
}
 
.mock-card {
    background: var(--bc-cyan);
    color: white;
    padding: 45px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.mock-card .bg-text {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 7.5rem;
    font-weight: 800;
    opacity: 0.08;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}
.mock-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    width: fit-content;
    margin-bottom: 16px;
}
.mock-card h2 {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 18px;
}
.mock-card p {
    opacity: 0.92;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 24px;
}
.btn-mock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--bc-cyan);
    padding: 16px 30px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.3s;
    text-align: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.btn-mock:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
 
.calendar h2 {
    color: var(--bc-blue);
    font-size: 1.5rem;
    margin-bottom: 22px;
}
.event-item {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--white);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    border: 1px solid var(--border);
    transition: box-shadow 0.3s;
}
.event-item:hover {
    box-shadow: var(--shadow-sm);
}
.date-badge {
    background: var(--bc-blue);
    color: white;
    min-width: 68px;
    padding: 12px 10px;
    border-radius: var(--radius-sm);
    text-align: center;
    flex-shrink: 0;
}
.date-badge.cyan { background: var(--bc-cyan); }
.date-badge .day {
    font-size: 1.55rem;
    font-weight: 800;
    display: block;
    line-height: 1.1;
}
.date-badge .month {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}
.event-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.event-info p {
    font-size: 0.82rem;
    color: var(--gray-text);
    margin-top: 3px;
}
.badge-official {
    font-size: 0.55rem;
    background: #e2e8f0;
    color: #475569;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
 
/* ── CTA / REGISTRO ── */
.cta-section {
    background: var(--bc-blue);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 30% 60%, rgba(0, 123, 189, 0.2), transparent);
    pointer-events: none;
}
.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.cta-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 50px 45px;
    text-align: center;
}
.cta-card h2 {
    color: var(--bc-blue);
    font-size: 1.7rem;
    margin-bottom: 14px;
}
.cta-card p {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.btn-lg {
    padding: 18px 40px;
    font-size: 1rem;
}
 
.app-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 50px 45px;
    text-align: center;
}
.app-card h3 {
    color: var(--bc-cyan);
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.app-logo-placeholder {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bc-cyan);
}
.app-logo-placeholder span {
    font-size: 3rem;
}
.app-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--bc-blue);
    line-height: 1.1;
}
.app-name em {
    display: block;
    font-style: normal;
    color: var(--bc-cyan);
    font-size: 1.3rem;
    font-weight: 600;
}
 
/* ── FOOTER ── */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 30px 40px;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-text {
    color: var(--gray-text);
    font-size: 0.85rem;
    max-width: 450px;
    line-height: 1.5;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.footer-brand-text {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--bc-blue);
    text-align: right;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-crest {
    height: 80px;
    display: flex;
    align-items: center;
}
.footer-crest img {
    height: 100%;
    width: auto;
    object-fit: contain;
}
 
/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
 
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
 
/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .nav-inner { padding: 12px 20px; }
    .hero-inner {
        grid-template-columns: 1fr;
        padding: 110px 24px 80px;
        gap: 40px;
        min-height: 100vh;
    }
    .hero-image { order: -1; }
    .hero-img-placeholder { max-width: 360px; margin: 0 auto; }
    .hero-title { font-size: 2.2rem; }
    .section { padding: 60px 20px; }
    .tab-panel { grid-template-columns: 1fr; }
    .webapp-promo { flex-direction: column; text-align: center; }
    .info-grid { grid-template-columns: 1fr; }
    .cta-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-brand { justify-content: center; }
}
@media (max-width: 600px) {
    .hero-btns { flex-direction: column; }
    .btn { justify-content: center; }
    .tabs-header { gap: 8px; }
    .tab-btn { padding: 10px 18px; font-size: 0.85rem; }
    .cta-card, .app-card { padding: 35px 25px; }
    .carousel-arrow { width: 38px; height: 38px; font-size: 1.3rem; }
    .carousel-prev { left: 12px; }
    .carousel-next { right: 12px; }
}
 