@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900 &display=swap');

:root {
    --primary-color: #2e7d32;
    --primary-dark: #1b5e20;
    --secondary-color: #43a047;
    --secondary-light: #66bb6a;
    --accent-color: #ffc107;
    --accent-dark: #e6a700;
    --text-main: #1a1a1a;
    --text-light: #666666;
    --bg-body: #fafafa;
    --bg-white: #ffffff;
    --bg-gray: #e8e8e8;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(46, 125, 50, 0.12);
    --shadow-lg: 0 20px 50px rgba(46, 125, 50, 0.18);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --font-main: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-header {
    background-color: var(--bg-white);
    color: var(--text-main);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-branding {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 55px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-navigation ul {
    display: flex;
    gap: 35px;
    align-items: center;
}

.main-navigation li {
    list-style: none;
}

.main-navigation a {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-main);
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-navigation a i {
    font-size: 10px;
    transition: transform 0.3s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a {
    color: var(--primary-color);
}

.main-navigation a:hover i {
    transform: rotate(180deg);
}

.menu-item-has-children {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    min-width: 240px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    display: none;
    flex-direction: column;
    padding: 10px 0;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.menu-item-has-children:hover .sub-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.sub-menu li a {
    color: var(--text-main);
    padding: 10px 20px;
    font-size: 13px;
}

.sub-menu li a:hover {
    background-color: rgba(46, 125, 50, 0.05);
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.whatsapp-btn {
    width: 42px;
    height: 42px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background: #128C7E;
    color: white;
}

.btn-inscribete {
    background: var(--secondary-color);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(67, 160, 71, 0.3);
}

.btn-inscribete:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
    color: white;
}

.hero-slider-section {
    position: relative;
    height: 580px;
    overflow: hidden;
    color: white;
    background-color: var(--primary-color);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #01486ab3 0%, #0091a1b3 50%, rgba(46, 125, 50, 0.55) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 790px;
    padding-left: 0;
}

.slide-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -1px;
    animation: slideInLeft 1s ease-out;
}

.slide-title span {
    color: var(--accent-color);
}

.slide-desc {
    font-size: 18px;
    margin-bottom: 35px;
    max-width: 550px;
    opacity: 0.95;
    animation: fadeIn 1.2s ease-out;
    line-height: 1.6;
}

.btn-outline {
    background: transparent;
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    display: inline-block;
    border: 2px solid white;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(67, 160, 71, 0.35);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(67, 160, 71, 0.45);
    background-color: #388e3c;
    color: white;
}

.programs-section-modern {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.programs-header {
    margin-bottom: 30px;
}

.programs-main-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    text-transform: uppercase;
    font-style: italic;
}

.programs-sub-title {
    font-size: 52px;
    font-weight: 900;
    color: var(--text-main);
    margin: 0;
    text-transform: uppercase;
    line-height: 1;
}

.programs-tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.programs-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.program-card-modern {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.program-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card-modern:hover .card-image img {
    transform: scale(1.08);
}

.card-footer {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: var(--primary-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.card-title {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
}

.card-link {
    font-size: 12px;
    color: white;
    text-decoration: underline;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 10px;
}

.card-link:hover {
    opacity: 0.85;
    color: white;
}

.program-card-modern.no-link .card-footer {
    right: auto;
    max-width: 200px;
}

.student-info-section {
    padding: 80px 0;
    background: var(--bg-gray);
    position: relative;
    overflow: hidden;
}

.student-info-section .section-title {
    color: var(--text-main);
    margin-bottom: 15px;
    font-size: 36px;
    font-weight: 800;
    text-align: center;
}

.student-info-section .section-title::after {
    content: '';
    display: block;
    background: var(--primary-color);
    width: 60px;
    height: 4px;
    margin: 15px auto 0;
    border-radius: 2px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 50px;
}

.info-item {
    background: var(--primary-color);
    padding: 50px 35px 40px;
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    color: white;
}

.info-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.3);
}

.info-icon {
    font-size: 28px;
    margin-bottom: 25px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 65px;
    height: 65px;
    line-height: 65px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item h3 {
    margin: 0 0 15px;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.info-item p {
    opacity: 0.9;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.6;
    color: white;
}

.info-item .btn-primary {
    background: white;
    color: var(--text-main);
    font-size: 13px;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: none;
}

.info-item .btn-primary:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    color: var(--text-main);
}

.site-footer-modern {
    background: linear-gradient(180deg, #f5f0ff 0%, #ffffff 100%);
    padding: 60px 0 40px;
    font-size: 14px;
    color: var(--text-main);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.footer-brand-modern {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand-modern .custom-logo-link img,
.footer-brand-modern .custom-logo,
.footer-logo-img {
    max-width: 120px;
    width: 120px;
    height: auto;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-main);
}

.footer-logo-text .logo-icon {
    font-size: 32px;
    margin-right: 5px;
}

.footer-legal {
    margin-top: 20px;
}

.footer-legal p {
    margin: 0 0 5px;
    font-size: 13px;
    color: var(--text-light);
}

.reclamaciones-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.3s;
    background: white;
    margin-top: 15px;
}

.reclamaciones-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: var(--text-main);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.footer-links a i {
    font-size: 10px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links a:hover i {
    opacity: 1;
    transform: translateX(0);
}

.footer-social-modern {
    text-align: right;
}

.social-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.social-icons-modern {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.social-icons-modern a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white !important;
    border-radius: 50%;
    transition: all 0.3s;
    font-size: 18px;
    text-decoration: none;
}

.social-icons-modern a i {
    color: white !important;
}

.social-icons-modern a[aria-label="Facebook"] {
    background: #1877f2;
}

.social-icons-modern a[aria-label="Instagram"] {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icons-modern a[aria-label="WhatsApp"] {
    background: #25d366;
}

.social-icons-modern a[aria-label="YouTube"] {
    background: #ff0000;
}

.social-icons-modern a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.site-info {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}

.nosotros-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 100px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.nosotros-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

.nosotros-hero h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.nosotros-hero p {
    font-size: 20px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.nosotros-container {
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.section-title-left {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 800;
    line-height: 1.2;
    position: relative;
}

.section-title-left::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: var(--secondary-color);
    margin-top: 15px;
    border-radius: 3px;
}

.text-block {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
}

.text-block p {
    margin-bottom: 25px;
}

.structure-box {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 120px;
}

.structure-title {
    font-size: 20px;
    margin-bottom: 30px;
    text-align: left;
    color: var(--primary-color);
    font-weight: 800;
}

.structure-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: center;
    background: #f9f9f9;
    padding: 15px;
    border-radius: var(--radius-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.structure-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
    background: white;
}

.structure-letter {
    background: var(--primary-color);
    color: #fff;
    font-weight: 800;
    font-size: 24px;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
}

.structure-details h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: var(--text-main);
    font-weight: 700;
}

.structure-details ul li {
    font-size: 13px;
    color: #666;
}

.page-container {
    padding: 60px 20px;
    background: var(--bg-white);
    min-height: 60vh;
}

.entry-header {
    margin-bottom: 0px;
    text-align: center;
}

.entry-title {
    font-size: 42px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.entry-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
}

.entry-content {
    font-size: 18px;
    color: var(--text-main);
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 60px;
    position: relative;
    font-weight: 800;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 6px;
    background-color: var(--secondary-color);
    margin: 20px auto 0;
    border-radius: 3px;
}

@media(max-width: 1200px) {
    .programs-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 1100px) {
    .main-navigation ul {
        gap: 20px;
    }

    .main-navigation a {
        font-size: 13px;
    }
}

@media(max-width: 900px) {
    .header-container {
        flex-wrap: wrap;
        gap: 15px;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        gap: 15px;
    }

    .programs-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .programs-sub-title {
        font-size: 40px;
    }

    .programs-tabs {
        gap: 15px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-social-modern {
        text-align: center;
    }

    .social-icons-modern {
        justify-content: center;
    }

    .footer-links {
        align-items: center;
    }

    .nosotros-container {
        grid-template-columns: 1fr;
    }

    .structure-box {
        position: static;
        margin-top: 40px;
    }
}

@media(max-width: 768px) {
    .hero-slider-section {
        height: 500px;
    }

    .slide-title {
        font-size: 36px;
    }

    .slide-desc {
        font-size: 16px;
    }

    .slide-content {
        padding: 0 20px;
    }

    .header-container {
        flex-direction: column;
        padding: 15px;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        gap: 6px;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 6px;
        margin-right: 6px;
        position: absolute;
        left: 24px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1500;
    }

    .menu-toggle:focus {
        outline: none;
    }

    .menu-toggle .hamburger-line {
        display: block;
        width: 26px;
        height: 3px;
        background: var(--text-main);
        border-radius: 3px;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }

    .main-navigation {
        display: block;
        position: fixed;
        top: 0;
        left: -320px;
        width: min(300px, 85vw);
        height: calc(100vh);
        background: var(--bg-white);
        padding: 90px 18px 24px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
        border-radius: 0;
        z-index: 2200;
        transition: left 260ms cubic-bezier(0.2, .9, 0.2, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-navigation ul {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .main-navigation a {
        padding: 12px 14px;
        text-align: left;
        border-radius: 8px;
        position: relative;
        z-index: 2201;
        display: block;
    }

    .main-navigation a:hover {
        background: rgba(46, 125, 50, 0.04);
    }

    body.menu-open .main-navigation {
        left: 0;
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.2);
        z-index: 2100;
        transition: opacity 200ms ease-out;
        pointer-events: none;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open .main-navigation {
        left: 0;
        z-index: 2200;
        pointer-events: auto;
    }

    body.menu-open .site-branding,
    body.menu-open .header-actions {
        opacity: 0;
        pointer-events: none;
        transform: translateX(6px);
        transition: opacity 180ms ease, transform 180ms ease;
        z-index: 1000;
    }

    .menu-toggle {
        z-index: 2300;
    }

    .main-navigation {
        z-index: 2200;
        pointer-events: auto;
    }

    .main-navigation ul,
    .main-navigation li,
    .main-navigation a {
        pointer-events: auto;
        position: relative;
    }

    body.admin-bar .main-navigation {
        top: 32px;
        height: calc(100vh - 32px);
        padding-top: 90px;
    }

    body.admin-bar.menu-open::before {
        top: 32px;
        height: calc(100vh - 32px);
    }

    body.admin-bar .site-branding {
        top: calc(50% + 16px);
    }

    body.menu-open .menu-toggle .hamburger-line:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    body.menu-open .menu-toggle .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    body.menu-open .menu-toggle .hamburger-line:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .site-branding {
        position: absolute;
        left: 33%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1600;
    }

    .header-actions {
        margin-left: auto;
        z-index: 1500;
    }

    .nosotros-hero h1 {
        font-size: 36px;
    }

    .student-info-section .section-title {
        font-size: 28px;
    }
}

@media(max-width: 600px) {
    .programs-cards-grid {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        font-size: 12px;
    }

    .programs-sub-title {
        font-size: 32px;
    }
}

.program-hero {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

.program-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(1, 72, 106, 0.9) 0%, rgba(0, 145, 161, 0.8) 100%);
}

.program-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.program-category-tag {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-main);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.program-hero h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.1;
}

.program-hero p {
    font-size: 20px;
    opacity: 0.9;
}

.program-detail-container {
    padding: 80px 24px;
}

.program-intro {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

.program-intro h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.program-intro p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
}

.specializations-section {
    max-width: 1000px;
    margin: 0 auto;
}

.specializations-section h2 {
    font-size: 28px;
    color: var(--text-main);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

/* ===== ACCORDION ===== */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-header {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: rgba(46, 125, 50, 0.03);
}

.accordion-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
    padding-right: 20px;
}

.accordion-icon {
    font-size: 14px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

/* Flecha */
.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Contenido cerrado */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

/* Contenido abierto */
.accordion-item.active .accordion-content {
    max-height: 3000px; /* suficiente para cualquier contenido */
}

.accordion-body {
    padding: 0 30px 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.program-meta {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin: 20px 0;
}

.program-syllabus {
    padding-left: 25px;
    color: var(--text-main);
}

.program-syllabus li {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 15px;
}

.program-cta {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    color: white;
    margin-top: 60px;
}

.program-cta h3 {
    font-size: 32px;
    margin-bottom: 15px;
}

.program-cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.program-cta .btn-primary {
    margin-right: 15px;
    margin-bottom: 10px;
}

.btn-outline-dark {
    background: transparent;
    color: white;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    border: 2px solid white;
    transition: all 0.3s;
}

.btn-outline-dark:hover {
    background: white;
    color: var(--primary-color);
}

.programs-container {
    padding: 60px 24px;
}

.program-category {
    margin-bottom: 60px;
}

.program-category h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color);
}

@media(max-width: 768px) {
    .program-hero {
        height: 350px;
    }

    .program-hero h1 {
        font-size: 32px;
    }

    .program-hero p {
        font-size: 16px;
    }

    .program-detail-container {
        padding: 50px 20px;
    }

    .accordion-header {
        padding: 20px;
    }

    .accordion-header h3 {
        font-size: 16px;
    }

    .accordion-body {
        padding: 0 20px 20px;
    }

    .program-cta {
        padding: 40px 25px;
    }

    .program-cta h3 {
        font-size: 24px;
    }

    .program-cta .btn-primary,
    .program-cta .btn-outline-dark {
        display: block;
        margin: 10px auto;
        width: 100%;
        max-width: 280px;
    }
}

.footer-logo {
    max-width: 160px;
    height: auto;
    display: block;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.footer-social span {
    margin-right: 8px;
    color: var(--text-main);
    font-weight: 500;
}

.footer-social a {
    color: #222;
    font-size: 1.8rem;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--primary-color);
}

.inscripcion-page {
    padding: 60px 0;
    background: var(--bg-body);
    min-height: calc(100vh - 200px);
}

.inscripcion-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.inscripcion-form-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 30px 40px;
}

.form-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-header p {
    opacity: 0.9;
    font-size: 1rem;
}

.inscripcion-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group label .required {
    color: #e53935;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-group {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: 400 !important;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary-color);
}

.checkbox-label span {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-actions {
    margin-top: 30px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
}

.form-message {
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.form-message i {
    font-size: 1.4rem;
}

.inscripcion-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 30px;
}

.sidebar-card h2 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-card h2 i {
    color: var(--primary-color);
}

.sidebar-card .subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.estructura-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.estructura-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.estructura-item .letra {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.estructura-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.estructura-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 2px 0;
}

.contact-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-card p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #25d366;
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

@media(max-width: 992px) {
    .inscripcion-grid {
        grid-template-columns: 1fr;
    }

    .inscripcion-sidebar {
        order: -1;
    }
}

@media(max-width: 600px) {
    .inscripcion-page {
        padding: 30px 0;
    }

    .form-header {
        padding: 24px;
    }

    .form-header h1 {
        font-size: 1.4rem;
    }

    .inscripcion-form {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    .sidebar-card {
        padding: 20px;
    }
}