/* VARIABLES Y RESET */
:root {
    --primary: #0C3A46;
    --accent: #D4922A;
    --background: #F0F4F2;
    --dark: #07121E;
    --light-gray: #DCE8E2;
    --border: #C0D4CC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 2rem;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(240, 244, 242, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(7, 18, 30, 0.14);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.navbar-logo {
    flex: 0 0 auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.navbar.scrolled .logo-text {
    color: var(--primary);
}

.navbar-links {
    flex: 1;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.navbar-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.navbar.scrolled .navbar-links a {
    color: rgba(7, 18, 30, 0.7);
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.navbar-links a:hover::after {
    width: 100%;
}

.navbar-cta {
    flex: 0 0 auto;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, #D4922A 0%, #B87020 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-cta:hover {
    background: linear-gradient(135deg, #C07818 0%, #9E5E0A 100%);
    transform: scale(1.05);
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 2rem;
    overflow: hidden;
    margin-top: -80px;
    padding-top: 100px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0C3A46 0%, #061C28 55%, #07121E 100%);
    z-index: -2;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><pattern id="dots" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="3" fill="rgba(212,146,42,0.14)"/></pattern></defs><rect width="400" height="400" fill="url(%23dots)"/></svg>');
    opacity: 0.6;
}

.hero-illustration {
    position: absolute;
    right: 0;
    top: 0;
    width: 62%;
    height: 100%;
    z-index: 0;
    opacity: 0.55;
    pointer-events: none;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 20%, black 55%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 20%, black 55%);
}

.hero-illustration svg {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-main {
    display: block;
    color: white;
    margin-bottom: 0.3rem;
}

.hero-accent {
    display: block;
    color: var(--accent);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 3.5rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 450px;
}

.hero-cta {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #D4922A 0%, #B87020 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(212, 146, 42, 0.4);
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(212, 146, 42, 0.55);
}

.hero-cta:active {
    transform: translateY(-1px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FEATURES SECTION */
.features {
    padding: 6rem 2rem;
    background: var(--background);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.feature-card p {
    color: rgba(7, 18, 30, 0.65);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Tarjeta ancha: ocupa 2 columnas, layout horizontal */
.feature-card--dark,
.feature-card--gold {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.feature-card--dark .feature-icon,
.feature-card--gold .feature-icon {
    font-size: 3.5rem;
    margin-bottom: 0;
    flex-shrink: 0;
    line-height: 1;
}

.feature-card--dark .feature-card__body,
.feature-card--gold .feature-card__body {
    flex: 1;
}

.feature-card--dark .feature-card__body h3,
.feature-card--gold .feature-card__body h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Tarjeta teal oscura */
.feature-card--dark {
    background: var(--primary);
    border-color: var(--primary);
}

.feature-card--dark .feature-card__body h3 {
    color: white;
}

.feature-card--dark .feature-card__body p {
    color: rgba(255, 255, 255, 0.75);
}

.feature-card--dark:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(12, 58, 70, 0.35);
}

/* Tarjeta dorada */
.feature-card--gold {
    background: linear-gradient(135deg, #D4922A 0%, #B87020 100%);
    border-color: transparent;
}

.feature-card--gold .feature-card__body h3 {
    color: white;
}

.feature-card--gold .feature-card__body p {
    color: rgba(255, 255, 255, 0.85);
}

.feature-card--gold:hover {
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(212, 146, 42, 0.4);
}

/* BENEFITS SECTION */
.benefits {
    padding: 6rem 2rem;
    background: var(--primary);
    color: white;
}

.benefits-content {
    max-width: 900px;
    margin: 0 auto;
}

.benefits-content h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.benefit-item {
    display: flex;
    gap: 1.5rem;
    animation: slideIn 0.6s ease-out;
}

.benefit-number {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.benefit-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.benefit-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* INSCRIPTION SECTION */
.inscription {
    padding: 6rem 2rem;
    background: var(--background);
}

.inscription-container {
    max-width: 600px;
    margin: 0 auto;
}

.inscription-container h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
    text-align: center;
    font-weight: 700;
}

.inscription-subtitle {
    text-align: center;
    color: rgba(7, 18, 30, 0.65);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.inscription-form {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 2px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: var(--dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 146, 42, 0.18);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.form-group.checkbox input {
    width: auto;
    cursor: pointer;
    accent-color: var(--accent);
}

.form-group.checkbox label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 400;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #D4922A 0%, #B87020 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.8rem;
}

.form-submit:hover {
    background: linear-gradient(135deg, #C07818 0%, #9E5E0A 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 146, 42, 0.38);
}

.form-submit:active {
    transform: translateY(0);
}

.form-note {
    text-align: center;
    color: rgba(7, 18, 30, 0.55);
    font-size: 0.85rem;
}

.success-message {
    text-align: center;
    background: #d4edda;
    color: #155724;
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid #c3e6cb;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* INSTRUCTOR SECTION */
.instructor {
    padding: 6rem 2rem;
    background: white;
}

.instructor-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.instructor-content h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 3rem;
    font-weight: 700;
}

.instructor-card {
    background: var(--background);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 2px solid var(--border);
}

.instructor-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #D4922A 0%, #B87020 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.instructor-card h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.instructor-bio {
    color: rgba(7, 18, 30, 0.65);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.instructor-note {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
}

/* FOOTER */
.footer {
    background: var(--dark);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-illustration {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card--dark,
    .feature-card--gold {
        grid-column: span 1;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-accent {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .navbar-links {
        display: none;
    }

    .navbar-container {
        gap: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .benefits-content h2 {
        font-size: 1.8rem;
    }

    .inscription-container h2 {
        font-size: 1.6rem;
    }

    .inscription-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }

    .navbar-cta {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .hero {
        padding: 1rem;
        padding-top: 120px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-accent {
        font-size: 1.5rem;
    }

    .hero-cta {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
    }

    .features {
        padding: 3rem 1rem;
    }

    .benefits {
        padding: 3rem 1rem;
    }

    .inscription {
        padding: 3rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}