:root {
    /* Brand Colors extracted from asociacionfenixdeluz.com */
    --primary: #CC3366;
    /* Magenta */
    --primary-hover: #A62450;
    --accent: #6EC1E4;
    /* Cyan/Light Blue */
    --bg-dark: #16144D;
    /* Dark Blue */
    --bg-deeper: #4F1C44;
    /* Deep Purple */
    --gold: #EAA94E;

    --text: #333333;
    --text-light: #FFFFFF;
    --text-muted: #E0E0E0;

    --white: #FFFFFF;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #16144D 0%, #4F1C44 100%);
    --gradient-card: linear-gradient(180deg, rgba(22, 20, 77, 0.9) 0%, rgba(79, 28, 68, 0.9) 100%);

    /* Typography */
    --font-main: 'Roboto', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --container-width: 1200px;
    --border-radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --glow: 0 0 15px rgba(110, 193, 228, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--bg-dark);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(204, 51, 102, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 51, 102, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-secondary:hover {
    background: rgba(110, 193, 228, 0.1);
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

/* Header */
header {
    padding: var(--spacing-sm) 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(22, 20, 77, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(110, 193, 228, 0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    /* SLightly larger logo */
    width: auto;
    border-radius: 0;
}

/* Hero Section */
.hero {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Glow effect background */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(204, 51, 102, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
    text-shadow: 0 0 20px rgba(204, 51, 102, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: var(--spacing-md);
    font-weight: 300;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-xs);
    display: block;
}

.hero-text .section-subtitle {
    color: var(--gold);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.hero-image {
    position: relative;
}

.hero-image img {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    /* border: 2px solid rgba(110, 193, 228, 0.3); */
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Section General */
section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--bg-dark);
}

/* Intro Section */
.intro {
    background: var(--white);
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.intro-text h2 {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.intro-text p {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: var(--spacing-sm);
}

/* Audience Section (Dark) */
.audience {
    background: var(--bg-deeper);
    color: var(--white);
    position: relative;
}

.audience .section-title {
    color: var(--white);
}

.audience-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.audience-card {
    background: rgba(255, 255, 255, 0.05);
    /* Glass effect */
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
    transition: transform 0.3s;
}

.audience-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.audience-card h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
    color: var(--accent);
}

/* Objectives Section */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    text-align: center;
}

.objective-item {
    padding: var(--spacing-md);
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    color: var(--gold);
    font-size: 2rem;
    box-shadow: 0 0 15px rgba(22, 20, 77, 0.5);
}

.objective-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* Methodology */
.methodology {
    background: var(--gradient-hero);
    color: var(--white);
}

.methodology .section-title {
    color: var(--white);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.pillar-card {
    background: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--bg-dark);
}

.pillar-number {
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 5rem;
    color: rgba(204, 51, 102, 0.1);
    position: absolute;
    top: -20px;
    left: 20px;
    z-index: 0;
}

.pillar-content {
    position: relative;
    z-index: 1;
}

.pillar-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.team-member {
    text-align: center;
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-photo {
    width: 100%;
    height: 300px;
    /* Taller rectangular format */
    border-radius: var(--border-radius);
    object-fit: cover;
    margin: 0 auto var(--spacing-sm);
    border: 3px solid var(--accent);
    padding: 3px;
    background: var(--white);
    object-position: top center;
    /* Focus on faces */
}

.team-member h4 {
    color: var(--bg-dark);
    margin-bottom: 0.2rem;
}

.member-role {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
}

/* Team section alignment fix */
.team .section-subtitle {
    text-align: center;
}

/* Program Timeline */
.program {
    background: var(--white);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--accent);
    opacity: 0.3;
    border-radius: 4px;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: var(--spacing-md);
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-content {
    width: 90%;
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    border-top: 4px solid var(--primary);
}

.timeline-dot {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border: 4px solid var(--white);
    border-radius: 50%;
    top: 20px;
    box-shadow: 0 0 0 4px rgba(204, 51, 102, 0.2);
    z-index: 10;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -12px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -12px;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 2rem;
}

.timeline-content h3 {
    margin-bottom: 1rem;
    color: var(--bg-dark);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

/* Pricing */
.pricing {
    text-align: center;
    background-color: var(--bg-deeper);
    color: var(--white);
    position: relative;
}

.pricing .section-title {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.price-card p {
    color: var(--text-muted);
}

.price-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.price {
    font-size: 5rem;
    font-weight: 700;
    font-family: var(--font-main);
    color: var(--gold);
    margin: var(--spacing-md) 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pricing .btn-primary {
    font-size: 1.25rem;
    padding: 1.25rem 3rem;
    background: var(--accent);
    box-shadow: 0 4px 15px rgba(110, 193, 228, 0.5);
}

.pricing .btn-primary:hover {
    background: #5aaed1;
    transform: scale(1.05);
}

/* Collaborators */
.collaborators {
    background: var(--bg-dark);
    padding: var(--spacing-md) 0;
    text-align: center;
    border-top: 1px solid rgba(110, 193, 228, 0.1);
}

.collaborators h3 {
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.collab-grid {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    align-items: center;
}

.collab-logo {
    width: 150px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    /* Glass effect */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    opacity: 0.7;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.collab-logo:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.collab-logo img {
    max-height: 80%;
    width: auto;
}

.collab-logo i {
    color: var(--accent) !important;
}

/* Footer */
footer {
    background: var(--bg-dark);
    padding: var(--spacing-lg) 0;
    text-align: center;
    color: var(--white);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.contact-info a {
    color: var(--accent);
    font-size: 1.2rem;
}

.contact-info a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {

    .hero-content,
    .intro-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding: 0 0 0 50px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0;
        width: 100%;
        margin-bottom: 2rem;
    }

    .timeline-dot,
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
    }
}