@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --site-blue: #17365d;
    --site-blue-dark: #0d243d;
    --site-blue-light: #28527a;
    --site-red: #c8102e;
    --site-gold: #e5b72f;
    --site-gold-light: #f4d66d;
    --site-white: #ffffff;
    --site-bg: #f6f8fa;
    --site-muted: #667085;
    --site-ink: #17202a;
    --site-shadow: 0 15px 45px rgba(23, 54, 93, 0.12);
    --site-radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--site-bg) !important;
    color: var(--site-ink) !important;
    font-family: 'DM Sans', sans-serif !important;
}

body > header:not(.header-main) {
    background: linear-gradient(180deg, rgba(13, 36, 61, .97), rgba(23, 54, 93, .84)) !important;
    border: 0 !important;
    padding: 18px 5% !important;
}

body > header:not(.header-main) .logo,
body > header:not(.header-main) .volver {
    color: var(--site-white) !important;
    font-family: 'DM Sans', sans-serif !important;
}

body > header:not(.header-main) .volver:hover {
    color: var(--site-gold-light) !important;
}

h1, h2, h3, h4,
.hero-content h1,
.content-block h2,
.section-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    color: var(--site-blue) !important;
}

header,
.header-main {
    background: linear-gradient(180deg, rgba(13, 36, 61, .97), rgba(23, 54, 93, .84)) !important;
}

.header-main {
    width: min(1250px, 100%);
    margin: auto;
    min-height: 78px;
    padding: 14px 5% !important;
    border-bottom: 0 !important;
}

.header-main .logo a,
.header-main .logo a span,
.header-main nav a,
.header-main nav ul li a {
    color: var(--site-white) !important;
    font-family: 'DM Sans', sans-serif !important;
}

.header-main nav a,
.header-main nav ul li a {
    border-radius: 30px;
    padding: 11px 16px !important;
    font-weight: 600;
}

.header-main nav a:hover,
.header-main nav ul li a:hover {
    color: var(--site-gold-light) !important;
    background: rgba(255, 255, 255, .13);
}

.hero-section,
.hero {
    min-height: 72vh !important;
    height: auto !important;
    padding: 150px 5% 100px !important;
    background-color: var(--site-blue-dark) !important;
}

.hero-section::before,
.hero-section::after {
    opacity: .8;
}

.hero-content {
    width: min(1250px, 100%);
    margin: auto;
}

.hero-content h1,
.hero-content .hero-line-1,
.hero-content .hero-line-2 {
    color: var(--site-white) !important;
    font-family: 'Playfair Display', Georgia, serif !important;
}

.hero-content .hero-line-2,
.hero-content .gold {
    color: var(--site-gold-light) !important;
}

.hero-content p,
.hero-description,
.hero-content .hero-subtitle {
    color: rgba(255, 255, 255, .86) !important;
    font-family: 'DM Sans', sans-serif !important;
}

.hero-content a,
.view-more-btn,
.back-home-btn,
button[type='submit'] {
    background: var(--site-red) !important;
    border-color: var(--site-red) !important;
    color: var(--site-white) !important;
    border-radius: 30px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 700;
}

.hero-content a:hover,
.view-more-btn:hover,
.back-home-btn:hover,
button[type='submit']:hover {
    background: var(--site-gold) !important;
    border-color: var(--site-gold) !important;
    color: var(--site-blue-dark) !important;
}

.main-content-section,
.section-white,
.section-gray,
.contact-main-section,
.map-section,
.news-page-section,
main > section:not(.hero-section):not(.hero) {
    background: var(--site-bg) !important;
    padding: 90px 5% !important;
}

.content-container,
.news-container,
.contact-container,
.footer-container {
    width: min(1250px, 100%) !important;
    margin: 0 auto !important;
}

.content-block,
.contact-card,
.contact-form-container,
.news-card,
.project-card,
.info-card,
.inscription-card {
    background: var(--site-white) !important;
    border: 1px solid rgba(23, 54, 93, .08) !important;
    border-radius: var(--site-radius) !important;
    box-shadow: var(--site-shadow) !important;
}

.content-block {
    padding: 36px !important;
    margin-bottom: 28px !important;
}

.content-block p,
.content-body p,
.contact-main-section p,
.news-page-section p,
li {
    color: var(--site-muted);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.7;
}

.content-block h2,
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.7rem) !important;
}

.content-block h3,
.card h3,
.news-card h3,
.project-card h3 {
    color: var(--site-blue) !important;
    font-family: 'Playfair Display', Georgia, serif !important;
}

.card-specialty h3,
.card-specialty p {
    color: var(--site-white) !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, .85) !important;
}

.card-specialty h3 {
    font-family: 'Playfair Display', Georgia, serif !important;
}

.card-specialty p {
    font-family: 'DM Sans', sans-serif !important;
}

.level-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.level-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 18px;
    border: 1px solid rgba(23, 54, 93, .1);
    border-radius: 16px;
    background: #fbfcfe;
    color: var(--site-blue);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.level-contact-item i {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--site-blue);
    color: var(--site-gold-light);
    font-size: 1.1rem;
}

.level-contact-item span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.level-contact-item strong {
    color: var(--site-blue);
    font-family: 'DM Sans', sans-serif;
}

.level-contact-item small {
    color: var(--site-muted);
    overflow-wrap: anywhere;
}

.level-contact-item:hover {
    transform: translateY(-3px);
    border-color: var(--site-gold);
    box-shadow: 0 10px 24px rgba(23, 54, 93, .1);
}

body > main:has(.form-card) {
    max-width: 820px !important;
    margin: -42px auto 70px !important;
    position: relative;
    z-index: 2;
}

.form-card {
    background: var(--site-white) !important;
    border: 1px solid rgba(23, 54, 93, .08) !important;
    border-radius: var(--site-radius) !important;
    box-shadow: var(--site-shadow) !important;
    padding: clamp(24px, 5vw, 48px) !important;
}

fieldset {
    border: 0 !important;
}

legend {
    color: var(--site-blue) !important;
    border-bottom-color: rgba(23, 54, 93, .14) !important;
    font-family: 'Playfair Display', Georgia, serif !important;
}

label {
    color: var(--site-blue) !important;
    font-family: 'DM Sans', sans-serif !important;
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='date'],
select,
textarea {
    background: #fbfcfe !important;
    border: 1px solid #d7e0ea !important;
    border-radius: 12px !important;
    color: var(--site-ink) !important;
    font-family: 'DM Sans', sans-serif !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--site-blue-light) !important;
    box-shadow: 0 0 0 3px rgba(40, 82, 122, .14) !important;
}

.radio-option {
    border-color: #d7e0ea !important;
    border-radius: 12px !important;
}

.radio-option:has(input:checked) {
    border-color: var(--site-gold) !important;
    background: #fff8dc !important;
}

.radio-option input {
    accent-color: var(--site-blue) !important;
}

.submit-btn {
    background: var(--site-red) !important;
    border-radius: 30px !important;
}

body > footer:not(.footer) {
    background: var(--site-blue-dark) !important;
    color: rgba(255, 255, 255, .8) !important;
    padding: 32px 5% !important;
}

body > footer:not(.footer) a {
    color: var(--site-gold-light) !important;
}

.specialties-showcase,
.curricular-grid,
.uniform-grid,
.news-grid,
.projects-grid,
.cards-grid {
    gap: 24px !important;
}

.card-specialty,
.curricular-card,
.uniform-card,
.news-card,
.project-card,
.card {
    border-radius: 16px !important;
    border: 1px solid rgba(23, 54, 93, .08) !important;
    box-shadow: 0 10px 28px rgba(23, 54, 93, .08) !important;
}

.side-menu-content {
    background: var(--site-blue-dark) !important;
    color: var(--site-white) !important;
    box-shadow: -18px 0 50px rgba(7, 22, 38, .35) !important;
}

.side-menu-header h3,
.side-menu-links li a,
.shortcut-item {
    color: var(--site-white) !important;
    font-family: 'DM Sans', sans-serif !important;
}

.side-menu-header {
    border-bottom-color: var(--site-gold) !important;
}

.side-menu-links li a:hover,
.shortcut-item:hover {
    background: rgba(255, 255, 255, .12) !important;
    color: var(--site-gold-light) !important;
}

.side-menu-links li a i,
.shortcut-item i {
    color: var(--site-gold) !important;
}

.shortcut-item {
    background: rgba(255, 255, 255, .07) !important;
    border-color: rgba(255, 255, 255, .12) !important;
}

.side-menu-shortcuts,
.side-menu-footer {
    display: block !important;
    border-color: rgba(255, 255, 255, .18) !important;
}

.footer {
    background: var(--site-blue-dark) !important;
    color: rgba(255, 255, 255, .82) !important;
    padding: 70px 5% 28px !important;
}

.footer h3,
.footer a,
.footer strong {
    color: var(--site-white) !important;
}

.footer a:hover {
    color: var(--site-gold-light) !important;
}

@media (max-width: 768px) {
    .header-main {
        min-height: 68px;
        padding: 12px 20px !important;
    }

    .hero-section,
    .hero {
        min-height: 66vh !important;
        padding: 120px 20px 70px !important;
    }

    .main-content-section,
    .section-white,
    .section-gray,
    .contact-main-section,
    .map-section,
    .news-page-section,
    main > section:not(.hero-section):not(.hero) {
        padding: 55px 20px !important;
    }

    .content-block,
    .contact-card,
    .contact-form-container,
    .news-card,
    .project-card,
    .info-card,
    .inscription-card {
        padding: 24px !important;
        border-radius: 16px !important;
    }

    .side-menu-content {
        width: 100% !important;
        padding: 90px 24px 24px !important;
    }

    .level-contact-grid {
        grid-template-columns: 1fr;
    }
}
