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

body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0b1736;
    background-color: #f4f6fb;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.main-header {
    position: relative;
    color: #ffffff;
}

/* Top bar */

.top-bar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 5vw;
    background: #041735;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-top {
    height: 50px;
    width: auto;
}

.top-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.top-title {
    font-weight: 600;
    font-size: 1rem;
}

.top-slogan {
    font-size: 0.8rem;
    opacity: 0.85;
}

.top-bar-right {
    display: flex;
    gap: 0.5rem;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    border: none;
    background: #4169e1;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 10px 18px rgba(65, 105, 225, 0.35);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(65, 105, 225, 0.45);
    background: #294fd1;
}

.btn-outline {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    box-shadow: none;
}

.btn-outline:hover {
    background: #ffffff;
    color: #294fd1;
}

.btn-small {
    padding: 0.45rem 1.1rem;
    font-size: 0.8rem;
}

.btn-full-width {
    width: 100%;
}

/* Hero */

.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.16), transparent 60%),
                linear-gradient(120deg, rgba(65,105,225,0.82), rgba(4,23,53,0.95));
}

.hero-content {
    position: relative;
    z-index: 5;
    padding: 3.5rem 5vw 4rem;
    max-width: 640px;
}

.hero h1 {
    font-size: clamp(2rem, 3vw + 1rem, 3rem);
    margin: 0 0 1rem;
    font-weight: 700;
}

.hero h1 span {
    color: #ffd269;
}

.hero p {
    margin: 0 0 1.5rem;
    max-width: 520px;
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.7);
    font-size: 0.75rem;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
}

/* Sections */

.section {
    padding: 3.5rem 5vw;
}

.section:nth-of-type(odd) {
    background: #ffffff;
}

.section:nth-of-type(even) {
    background: #f4f6fb;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    margin: 0 0 0.4rem;
    font-size: 1.8rem;
    color: #041735;
}

.section-title p {
    margin: 0;
    color: #5f6a8a;
}

/* Oferta académica */

.oferta {
    max-width: 1200px;
    margin: 0 auto;
}

.oferta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
}

.oferta-col {
    background: #ffffff;
    border-radius: 1.1rem;
    padding: 1.5rem 1.6rem;
    box-shadow: 0 14px 34px rgba(16, 36, 94, 0.08);
}

.oferta-col h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #294fd1;
    font-size: 1.15rem;
}

.program-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.program-list li {
    padding: 0.6rem 0;
    border-bottom: 1px dashed #e0e4f5;
}

.program-list li:last-child {
    border-bottom: none;
}

.program-list h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #041735;
}

.program-rvoe {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: #6b7690;
}

.oferta-highlight {
    background: linear-gradient(145deg, #2342a8, #4169e1);
    color: #ffffff;
}

.oferta-highlight h3 {
    color: #ffd269;
}

.benefits-list {
    list-style: none;
    margin: 0 0 1.3rem;
    padding: 0;
    font-size: 0.9rem;
}

.benefits-list li {
    margin-bottom: 0.55rem;
    display: flex;
    gap: 0.4rem;
}

.benefits-list li::before {
    content: "✔";
    font-size: 0.8rem;
    margin-top: 0.1rem;
}

/* Gallery */

.gallery {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(16, 36, 94, 0.16);
    cursor: pointer;
    background: #000;
}

.gallery-img {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.06);
    opacity: 0.9;
}

.gallery-note {
    text-align: center;
    margin-top: 1.1rem;
    font-size: 0.85rem;
    color: #6b7690;
}

/* Video */

.video-section {
    max-width: 1100px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(16, 36, 94, 0.22);
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Redes sociales */

.redes {
    max-width: 900px;
    margin: 0 auto;
}

.redes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.2rem;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.3rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 36, 94, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(16, 36, 94, 0.16);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
}

.fb .social-icon {
    background: #1877f2;
}

.ig .social-icon {
    background: radial-gradient(circle at 30% 30%, #feda77, #d62976, #962fbf, #4f5bd5);
}

.social-text {
    display: flex;
    flex-direction: column;
}

.social-name {
    font-weight: 600;
}

.social-link {
    font-size: 0.85rem;
    color: #6b7690;
}

/* Contacto */

.contacto {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2rem;
}

.contact-form,
.contact-info {
    background: #ffffff;
    border-radius: 1.2rem;
    padding: 1.8rem 1.8rem 1.6rem;
    box-shadow: 0 14px 34px rgba(16, 36, 94, 0.08);
}

.form-row {
    margin-bottom: 1rem;
}

.form-row label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.6rem;
    border: 1px solid #c9cfe8;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: #4169e1;
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.16);
}

.form-disclaimer {
    margin-top: 0.8rem;
    font-size: 0.78rem;
    color: #7b8295;
}

.contact-info h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.info-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    font-size: 0.9rem;
}

.info-list li {
    margin-bottom: 0.6rem;
}

.map-wrapper {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(16, 36, 94, 0.16);
}

.map-wrapper iframe {
    width: 100%;
    min-height: 230px;
    border: 0;
}

/* Footer */

.main-footer {
    background: #041735;
    color: #d9def5;
    padding: 1.5rem 5vw;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo-footer {
    height: 46px;
    width: auto;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.footer-text p {
    margin: 0;
    font-size: 0.8rem;
}

.footer-right p {
    margin: 0;
    font-size: 0.82rem;
}

.footer-right a {
    color: #ffd269;
}

/* WhatsApp floating button */

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    z-index: 50;
    animation: pulse 2.8s infinite;
}

.whatsapp-icon {
    font-size: 2rem;
}

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(1, 8, 22, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
}

/* Animations */

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); }
    50% { transform: scale(1.05); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
    100% { transform: scale(1); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); }
}

/* Responsive */

@media (max-width: 900px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .top-bar-right {
        align-self: stretch;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .oferta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .hero-content {
        padding: 2.4rem 6vw 3rem;
    }

    .oferta-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .section {
        padding-inline: 6vw;
    }

    .footer-inner {
        align-items: flex-start;
    }

    .footer-left {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding-inline: 4.5vw;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 1.9rem;
    }
}
