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

:root {
    --bg-main: #050215;
    --primary: #ff3cab;
    --primary-soft: rgba(255, 60, 171, 0.15);
    --secondary: #8f2ee0;
    --accent: #ffb347;
    --text-main: #ffffff;
    --text-light: #fdf8ff;
    --muted: #7c6f9a;
    --card-bg: #ffffff;
    --border-soft: rgba(255, 255, 255, 0.1);
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --shadow-soft: 0 18px 45px rgba(22, 9, 46, 0.25);
    --shadow-card: 0 16px 35px rgba(15, 6, 35, 0.18);
    --transition: 0.3s ease;
    --header-height: 76px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background: radial-gradient(circle at top left, #511f98, #050215 55%) fixed;
    line-height: 1.5;
}

/* Layout */

.container {
    width: min(1160px, 100% - 2.5rem);
    margin: 0 auto;
}

.section {
    padding: 4.5rem 0;
}

.section.soft-bg {
    background: linear-gradient(135deg, rgba(255, 60, 171, 0.04), rgba(143, 46, 224, 0.05));
}

/* Header */

.main-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
    background: linear-gradient(90deg, rgba(5, 2, 21, 0.92), rgba(5, 2, 21, 0.88));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 1.5rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
}

.logo-img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 4px rgba(255, 60, 171, 0.35);
    object-fit: cover;
}

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

.logo-title {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-light);
    font-size: 0.98rem;
}

.logo-subtitle {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.68);
}

/* Nav */

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.25rem;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 999px;
    transition: width var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
}

/* Hero */

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 4.5rem 0 3.5rem;
    color: var(--text-light);
    background-image: url("../images/portada.jpg");
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 60, 171, 0.4), transparent 55%),
                radial-gradient(circle at bottom right, rgba(143, 46, 224, 0.6), rgba(5, 2, 21, 0.95));
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    align-items: center;
    z-index: 1;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 3vw + 1.4rem, 3.4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-text p {
    max-width: 32rem;
    color: rgba(255, 255, 255, 0.88);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(5, 2, 21, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.hero-tag::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle, #ffeb3b, #ff9800);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.4rem 0 0.75rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.78);
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(5, 2, 21, 0.55);
}

/* Hero card */

.hero-badge-card {
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), rgba(5, 2, 21, 0.9));
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 420px;
    margin-left: auto;
}

.hero-image {
    width: 100%;
    border-radius: 1.2rem;
    object-fit: cover;
    box-shadow: 0 18px 35px rgba(5, 2, 21, 0.65);
}

.hero-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.badge-pill {
    font-size: 0.78rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(5, 2, 21, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 14px 35px rgba(255, 60, 171, 0.4);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 45px rgba(255, 60, 171, 0.55);
}

.btn.secondary {
    background: rgba(5, 2, 21, 0.65);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn.secondary:hover {
    background: rgba(5, 2, 21, 0.9);
}

.btn.ghost {
    background: transparent;
    border-color: rgba(143, 46, 224, 0.4);
    color: var(--secondary);
}

.btn.ghost:hover {
    background: rgba(143, 46, 224, 0.08);
}

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

/* Sections generics */

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr);
    gap: 2.5rem;
    align-items: center;
}

.section h2 {
    color: #fdf8ff;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.section p {
    color: #ffffff;
}

.section.soft-bg h2,
.section.soft-bg p,
.section.soft-bg li {
    color: var(--text-main);
}

.section.soft-bg .section-title-center,
.section.soft-bg .section-intro {
    color: var(--text-main);
}

.section-text p + p {
    margin-top: 0.75rem;
}

/* Cards */

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

.info-card {
    background: rgba(5, 2, 21, 0.9);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-card);
    color: #f4f0ff;
}

.info-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
}

.info-card h3 i {
    margin-right: 0.4rem;
    color: var(--accent);
}

/* Objectives */

.section-title-center {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.35rem;
}

.section-intro {
    text-align: center;
    max-width: 40rem;
    margin: 0.4rem auto 2rem;
    color: #ffffff;
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.objective-item {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.6rem 1.4rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.objective-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 60, 171, 0.08), transparent 55%);
    pointer-events: none;
}

.objective-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 25px rgba(143, 46, 224, 0.45);
}

.objective-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

/* Eventos */

.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.section-header-inline p {
    max-width: 40rem;
}

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

.event-card {
    background: rgba(5, 2, 21, 0.93);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
}

.event-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.event-body {
    padding: 1rem 1.2rem 1.2rem;
}

.event-body h3 {
    color: #fdf8ff;
    margin-bottom: 0.4rem;
}

/* Radio & podcast */

.radio-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
    gap: 2rem;
    align-items: center;
}

.radio-text h2 {
    margin-bottom: 1rem;
}

.icon-list {
    list-style: none;
    margin: 1rem 0 1.2rem;
}

.icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: #ffffff;
    font-size: 0.95rem;
}

.icon-list i {
    color: var(--secondary);
    margin-top: 0.15rem;
}

.radio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.radio-media {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-logo-wrapper {
    display: flex;
    justify-content: center;
}

.radio-logo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    box-shadow: 0 16px 35px rgba(15, 6, 35, 0.35);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: #000;
}

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

.video-caption {
    font-size: 0.9rem;
    color: #ffffff;
}

/* Galería */

.gallery-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.gallery-item {
    width: 100%;
    border-radius: 0.9rem;
    object-fit: cover;
    height: 170px;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    box-shadow: 0 10px 25px rgba(5, 2, 21, 0.65);
}

.gallery-item:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 16px 35px rgba(5, 2, 21, 0.9);
    opacity: 0.95;
}

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 2, 21, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
    padding: 1.5rem;
}

.lightbox.active {
    display: flex;
}

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

.lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.4rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Social strip */

.social-strip {
    text-align: center;
}

.social-strip h2 {
    margin-bottom: 0.5rem;
}

.social-strip p {
    color: #ffffff;
    max-width: 32rem;
    margin: 0 auto 1.5rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(143, 46, 224, 0.3);
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.social-links a i {
    font-size: 1rem;
}

.social-links a:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(143, 46, 224, 0.25);
}

/* Contacto */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 2rem;
    align-items: flex-start;
}

.contact-info p {
    color: #ffffff;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    margin-top: 0.5rem;
}

.contact-details a {
    color: #fef4ff;
    text-decoration: none;
}

.contact-details i {
    color: var(--accent);
}

.contact-form-wrapper {
    background: rgba(5, 2, 21, 0.9);
    border-radius: var(--radius-md);
    padding: 1.7rem 1.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 220px;
}

label {
    display: block;
    font-size: 0.85rem;
    color: #fef4ff;
    margin-bottom: 0.3rem;
}

input,
textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(10, 5, 35, 0.6);
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

input::placeholder,
textarea::placeholder {
    color: rgba(223, 211, 255, 0.7);
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(255, 60, 171, 0.55);
    background: rgba(10, 5, 35, 0.9);
}

.form-note {
    font-size: 0.8rem;
    color: rgba(210, 198, 255, 0.8);
    margin-top: -0.2rem;
}

/* Map */

.map-wrapper {
    margin-top: 2.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

/* Footer */

.site-footer {
    padding: 1.75rem 0 2.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(5, 2, 21, 0.96);
    color: rgba(255, 255, 255, 0.8);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: center;
    font-size: 0.86rem;
}

.footer-content a {
    color: #ffbce0;
    text-decoration: none;
}

.footer-brand {
    font-weight: 500;
}

/* WhatsApp float */

.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.4rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.6);
    z-index: 50;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.whatsapp-float:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.75);
    background: #1eb854;
}

/* Animations */

.fade-in {
    animation: fadeInUp 0.9s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */

@media (max-width: 960px) {
    .hero-content,
    .section-grid,
    .radio-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        padding-top: 3.4rem;
    }

    .hero-badge-card {
        max-width: 100%;
        margin: 1.5rem 0 0;
    }

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

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

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

    .main-nav {
        position: absolute;
        inset: var(--header-height) 0 auto;
        background: rgba(5, 2, 21, 0.98);
        flex-direction: column;
        padding: 1rem 1.25rem 1.25rem;
        gap: 1rem;
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
    }

    .main-nav.open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: inline-flex;
    }
}

@media (max-width: 720px) {
    .hero {
        background-position: center top;
        text-align: left;
    }

    .hero-meta {
        flex-direction: column;
    }

    .section {
        padding: 3.2rem 0;
    }

    .section-cards,
    .events-gallery,
    .objectives-grid {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .gallery-item {
        height: 150px;
    }

    .header-content {
        gap: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 1.5rem, 460px);
    }

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

    .hero-text h1 {
        font-size: 2.1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .whatsapp-float {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
}

.objective-item h3 {
    color: #1b1033 !important;
}
.objective-item p {
    color: #333333 !important;
}
.objective-item .objective-icon i {
    color: #ffffff !important;
}
