/* 
 * YO.SMART ACADEMY - Professional Academic Design System
 * Palette:
 * Primary (Oxford Blue): #1a2a6c
 * Secondary (Academic Gold): #b89b5e
 * Green (YoSmart/Education): #1e8e5a
 * Background (Soft Gray): #f8f9fa
 * Text (Dark Slate): #2d3436
 */

:root {
    --primary-color: #1a2a6c;
    --primary-dark: #101a42;
    --secondary-color: #b89b5e;
    --green-color: #1e8e5a;
    --accent-color: #ffffff;
    --bg-light: #f8f9fa;
    --text-dark: #2d3436;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

/* Headings must be white inside dark sections */
.hero-section h1, .hero-section h2, .hero-section h3, .hero-section h4,
.hero-section p.lead, .hero-section .lead,
.page-header-section h1, .page-header-section h2, .page-header-section h3, .page-header-section p,
.bg-oxford h1, .bg-oxford h2, .bg-oxford h3, .bg-oxford h4, .bg-oxford h5, .bg-oxford p,
.footer-pro h1, .footer-pro h2, .footer-pro h3, .footer-pro h4,
.team-caption h4, .team-caption p {
    color: #ffffff !important;
}
.bg-oxford .text-muted, .hero-section .text-muted, .page-header-section .text-muted { color: rgba(255,255,255,0.75) !important; }
.footer-pro a, .bg-oxford a { color: rgba(255,255,255,0.85); }

/* Modern Navigation */
.navbar {
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 0.55rem 0;
    transition: var(--transition-smooth);
}

.navbar-brand img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.nav-link-custom {
    color: var(--text-dark) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.8px;
    margin: 0 8px;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link-custom i {
    color: var(--green-color);
    margin-right: 5px;
    font-size: 0.9rem;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, var(--green-color), var(--secondary-color));
    transition: var(--transition-smooth);
}

.nav-link-custom:hover::after, .nav-link-custom.active::after {
    width: 100%;
}

.nav-link-custom:hover, .nav-link-custom.active { color: var(--green-color) !important; }

/* Hero Section */
.hero-section {
    padding: 130px 0 140px;
    background: linear-gradient(135deg, rgba(26,42,108,0.94) 0%, rgba(16,26,66,0.96) 55%, rgba(30,142,90,0.82) 100%);
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/ysbanner.gif') center/cover no-repeat;
    opacity: 0.10;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184,155,94,0.25), transparent 70%);
    top: -150px;
    right: -150px;
    pointer-events: none;
}

.hero-title {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.4rem;
}

.hero-badges .badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* Service Cards */
.service-card {
    border: none;
    border-radius: 22px;
    transition: var(--transition-smooth);
    background: white;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    overflow: hidden;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
    border-bottom-color: var(--green-color);
}

.service-card .service-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 1.2rem;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--green-color);
    background: rgba(30,142,90,0.1);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--green-color);
    color: #fff;
    transform: rotate(-6deg) scale(1.05);
}

/* Buttons */
.btn-academic {
    background: linear-gradient(135deg, var(--green-color), #156a44);
    color: white;
    border-radius: 50px;
    padding: 13px 32px;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 20px rgba(30,142,90,0.3);
}

.btn-academic:hover {
    background: transparent;
    border-color: var(--green-color);
    color: var(--green-color);
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: none;
}

.btn-academic-gold {
    background: linear-gradient(135deg, var(--secondary-color), #8a6d3b);
    color: white;
    border-radius: 50px;
    padding: 13px 32px;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 20px rgba(184,155,94,0.3);
}

.btn-academic-gold:hover {
    background: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: none;
}

/* Stats */
.stat-box {
    text-align: center;
    padding: 1.2rem;
}
.stat-box .stat-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--green-color);
    line-height: 1;
}
.stat-box .stat-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.8);
    margin-top: 6px;
}

/* Section headers */
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30,142,90,0.1);
    color: var(--green-color);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

/* Footer */
.footer-pro {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 70px 0 30px;
}

.footer-pro .footer-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
}

/* Utility */
.text-gold { color: var(--secondary-color) !important; }
.text-green { color: var(--green-color) !important; }
.bg-oxford { background-color: var(--primary-color) !important; }
.bg-green { background-color: var(--green-color) !important; }
.opacity-75 { opacity: 0.75; }
.border-gold { border-color: var(--secondary-color) !important; }

/* Page Header (subpages) */
.page-header-section {
    background: linear-gradient(135deg, rgba(26,42,108,0.96), rgba(16,26,66,0.98) 60%, rgba(30,142,90,0.85));
    padding: 90px 0 80px;
}

/* Team gallery */
.team-gallery {
    display: flex;
    gap: 1.2rem;
    min-height: 540px;
}
.team-item {
    position: relative;
    flex: 1;
    border-radius: 1.2rem;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}
.team-item:hover { flex: 2.4; }
.team-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0.9;
    transition: opacity 0.4s, transform 0.6s;
}
.team-item:hover img { opacity: 1; transform: scale(1.03); }
.team-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.6rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.82));
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.team-item:hover .team-caption { transform: translateY(0); }
@media (max-width: 768px) {
    .team-gallery { flex-direction: column; min-height: auto; }
    .team-item { min-height: 380px; }
    .team-item:hover { flex: 1; }
    .team-caption { transform: translateY(0); }
    .hero-title { font-size: 2.5rem; }
}

/* Accesibilidad: skip-link y foco visible */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--green-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 0 0 10px 0;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus {
    left: 0;
    color: #fff;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--green-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Legacy compatibility classes (sistemas preinscripciones/login) */
.bg-ysblue { background-color: #1a2a6c !important; }
.bg-ysgreen { background-color: var(--green-color) !important; }
.bg-lgreen2 { background-color: #e8f5e9 !important; }
.bg-ystrueyellow { background-color: #f6e3b4 !important; }
.bg-fhvblue { background-color: #2b3a8f !important; }
.green-bg { background-color: #e8f5e9 !important; }
.text-ysgreen { color: var(--green-color) !important; }
.text-ysblue { color: var(--primary-color) !important; }
.text-lyellow { color: #c9a227 !important; }
.whitetitle { color: #ffffff !important; }
.gray-input, .gray-textarea {
    background-color: #f2f4f8 !important;
    border: 1px solid #d8dce6 !important;
    border-radius: 10px !important;
}
.gray-input:focus, .gray-textarea:focus {
    background-color: #fff !important;
    border-color: var(--green-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(30,142,90,0.15) !important;
}
.addmargint { margin-top: 0.5rem !important; }
.addmargin { margin: 1rem !important; }
.addpadding { padding: 1rem !important; }
.fullwidth-btn { width: 100% !important; }
.bigbutton { padding: 1rem 1.5rem !important; border-radius: 50px !important; }
.doubleline { line-height: 1.9 !important; }
.compres-text { font-size: 1.1rem !important; }
.padding-text { padding: 1.2rem !important; }