@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    /* Material Design 3 Color Tokens (Blue Base) */
    --md-sys-color-primary: #0054A6;
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-primary-container: #D1E4FF;
    --md-sys-color-on-primary-container: #001D36;
    --md-sys-color-secondary: #535F70;
    --md-sys-color-on-secondary: #FFFFFF;
    --md-sys-color-surface: #FDFBFF;
    --md-sys-color-on-surface: #1A1C1E;
    --md-sys-color-surface-variant: #DFE2EB;
    --md-sys-color-on-surface-variant: #43474E;
    --md-sys-color-outline: #73777F;
    --md-sys-color-error: #BA1A1A;
    --md-sys-color-success: #10B981;

    /* Legacy compatibility / Global mappings */
    --primary-blue: var(--md-sys-color-primary);
    --dark-blue: #0A235C;
    --accent-cyan: #00C4FF;
    --font-family: 'Roboto', sans-serif;

    /* M3 Elevation (Shadows) */
    --md-elevation-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
    --md-elevation-2: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 6px 2px rgba(0, 0, 0, 0.15);
    --md-elevation-3: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 8px 3px rgba(0, 0, 0, 0.15);

    /* Radius M3 */
    --radius-full: 100px;
    --radius-large: 28px;
    --radius-medium: 12px;
    --radius-small: 8px;

    /* Gradients */
    --hero-gradient: linear-gradient(90deg, #FFFFFF 0%, #00C4FF 100%);
    --gradient-accent: linear-gradient(135deg, #00C4FF 0%, #0054A6 100%);
}

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

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--surface-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= Navbar ================= */
.navbar {
    background-color: var(--surface-white);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    /* position: sticky; */
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.logo-text {
    font-size: 0.85rem;
    color: var(--dark-blue);
    line-height: 1.2;
}

.nav-links {
    /* display: none; */
    /* Mobile first, hidden on small screens */
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* ================= Buttons ================= */
.btn-primary {
    background: var(--gradient-accent);
    color: white !important;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 196, 255, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 5px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: white;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.full-width {
    width: 100%;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* ================= Hero Section (Premium Layout) ================= */
.hero {
    position: relative;
    background: radial-gradient(circle at 30% 50%, #0054A6 0%, #0A235C 100%);
    /* min-height: 100vh; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0 80px 0;
    color: white;
    overflow: hidden;
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/world-map.png');
    background-size: 1500px;
    opacity: 0.1;
    z-index: 2;
    mix-blend-mode: overlay;
}

/* Big Immersive Image Background */
.hero-right {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%;
    z-index: 2;
}

.hero-image-wrapper {
    height: 100%;
    width: 100%;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

.main-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.7) contrast(1.1);
    animation: kenBurns 20s infinite alternate ease-in-out;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(-2%, -2%);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-left h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1;
    font-weight: 800;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.hero-left h1 span {
    background: linear-gradient(90deg, #FFFFFF 0%, #00C4FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Countdown & Location (Responsive) */
.hero-bottom {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    margin-top: 50px;
}

.hero-location {
    font-size: clamp(1.2rem, 4vw, 2.2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #FFFFFF, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.countdown-container {
    display: flex;
    gap: clamp(10px, 2vw, 20px);
    align-items: center;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: clamp(65px, 15vw, 100px);
    padding: clamp(10px, 2vw, 20px) 0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-item span {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1;
}

.countdown-item label {
    font-size: clamp(0.6rem, 2vw, 0.8rem);
    text-transform: uppercase;
    margin-top: 5px;
    opacity: 0.7;
}

.countdown-sep {
    font-size: clamp(1rem, 3vw, 2rem);
    opacity: 0.3;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
        min-height: auto;
    }

    .hero-right {
        position: absolute;
        width: 100%;
        opacity: 0.4;
    }

    .hero-image-wrapper {
        clip-path: none;
    }

    .hero-bottom {
        align-items: center;
        text-align: center;
    }

    .countdown-container {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.floating-accent {
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 250px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary-blue));
    opacity: 0.6;
    z-index: -1;
    border-radius: 8px;
    filter: blur(2px);
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    from {
        opacity: 0.4;
        transform: scale(1);
    }

    to {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Countdown Premium */
.hero-bottom {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 80px;
}

.hero-location {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #FFFFFF, rgba(255, 255, 255, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.countdown-container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90px;
    padding: 20px 0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

/* Ripple Effect Animation */
.md-btn .md-ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

.md-btn--tonal .md-ripple {
    background: rgba(0, 84, 166, 0.2);
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Fix for background-clip lints */
.hero-left h1 span,
.hero-location {
    -webkit-background-clip: text;
    background-clip: text;
}

.countdown-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.countdown-item span {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.countdown-item label {
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-top: 8px;
    opacity: 0.7;
    letter-spacing: 1px;
}

.countdown-sep {
    font-size: 2rem;
    font-weight: 800;
    opacity: 0.3;
}

.text-descripcion {
    padding: 10px 30px 30px;
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.text-descripcion-advertencia {
    padding: 10px 30px 30px;
    font-size: 0.8rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* ================= Registration Form Section ================= */
.registration-section {
    padding: 80px 0;
    background-color: var(--md-sys-color-surface);
}

.section-title {
    text-align: center;
    color: var(--dark-blue);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1;
}

.section-sub-title {
    text-align: center;
    color: var(--dark-blue);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Material Design 3 Components */

/* Surface & Cards */
.form-container {
    background: var(--md-sys-color-surface);
    border-radius: var(--radius-large);
    padding: clamp(5px, 4vw, 45px);
    box-shadow: var(--md-elevation-3);
    border: 1px solid var(--md-sys-color-surface-variant);
    max-width: 800px;
    margin: 0 auto;
}

.md-surface {
    background-color: var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-on-surface-variant);
    border-radius: var(--radius-medium);
    padding: 20px;
    margin-bottom: 24px;
}

/* Material Field (Outlined) */
.md-field {
    position: relative;
    margin-bottom: 24px;
    width: 100%;
}

.md-field input,
#interes_motivo,
.md-field select {
    width: 100%;
    height: 56px;
    padding: 16px;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: 4px;
    background: transparent;
    color: var(--md-sys-color-on-surface);
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.md-field label {
    position: absolute;
    left: 12px;
    top: 18px;
    padding: 0 4px;
    background: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface-variant);
    font-size: 16px;
    transition: all 0.2s ease;
    pointer-events: none;
    line-height: 1;
}

/* Floating Label Logic */
.md-field input:focus~label,
.md-field input:not(:placeholder-shown)~label,
.md-field select:focus~label,
.md-field select:valid~label {
    top: -8px;
    left: 8px;
    font-size: 12px;
    color: var(--md-sys-color-primary);
    font-weight: 500;
}

.md-field input:focus,
.md-field select:focus {
    border: 2px solid var(--md-sys-color-primary);
}

/* Validation Highlights */
.md-field.has-error input,
.md-field.has-error select,
.md-field.has-error textarea {
    border: 2px solid var(--md-sys-color-error) !important;
}

.md-field.has-error label {
    color: var(--md-sys-color-error) !important;
}

.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
    transform: translate3d(0, 0, 0);
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Individual Error Message */
.md-error-message {
    color: var(--md-sys-color-error);
    font-size: 11px;
    margin-top: 4px;
    margin-left: 12px;
    display: none;
    font-weight: 500;
    position: absolute;
    bottom: -18px;
    left: 0;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
}

.md-field.has-error .md-error-message {
    display: block;
}

/* General Error Message */
.general-error-message {
    background-color: rgba(186, 26, 26, 0.1);
    color: var(--md-sys-color-error);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--md-sys-color-error);
}

.general-error-message i {
    font-size: 1.2rem;
}

/* Material Buttons */
.md-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 24px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.1px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: none;
    gap: 8px;
    text-transform: none;
}

.md-btn--filled {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.md-btn--tonal {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

.md-btn--tonal:hover {
    background-color: rgba(0, 84, 166, 0.15);
}

.md-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

/* Stepper Material Style */
.stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    position: relative;
    padding: 0 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-on-surface-variant);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.step.completed .step-circle {
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-primary);
}

.step-line {
    position: absolute;
    top: 16px;
    height: 2px;
    background: var(--md-sys-color-surface-variant);
    z-index: 1;
    /* width: 33.3%; */
    transition: background 0.5s ease;
}

.step-line:nth-of-type(1) {
    left: 16.6%;
}

.step-line:nth-of-type(2) {
    left: 50%;
}

.step-line.active {
    background: var(--md-sys-color-primary);
}

.step-label {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface-variant);
}

/* Choice Components */
.md-checkbox,
.md-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 16px;
    padding: 8px 0;
}

.md-checkbox input,
.md-radio input {
    display: none;
}

.md-checkbox__box,
.md-radio__circle {
    width: 18px;
    height: 18px;
    border: 2px solid var(--md-sys-color-outline);
    border-radius: 2px;
    transition: all 0.2s;
    position: relative;
}

.md-radio__circle {
    border-radius: 50%;
}

.md-checkbox input:checked+.md-checkbox__box,
.md-radio input:checked+.md-radio__circle {
    background: var(--md-sys-color-primary);
    border-color: var(--md-sys-color-primary);
}

/* Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* Form Steps Visibility */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.form-step p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Inputs & Policy Box */
.policy-box {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 25px;
}

.policy-box h4 {
    margin-bottom: 10px;
    color: var(--dark-blue);
}

.policy-box p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Custom Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
    font-weight: 500;
    color: var(--text-main);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: -2px;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input~.checkmark {
    border-color: var(--primary-blue);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Custom Radio */
.attendance-selection {
    margin-top: 25px;
    background: #f8fafc;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.attendance-selection h4 {
    margin-bottom: 15px;
    color: var(--dark-blue);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
    font-weight: 500;
}

.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.radio-container:hover input~.radio-checkmark {
    border-color: var(--primary-blue);
}

.radio-container input:checked~.radio-checkmark {
    border-color: var(--primary-blue);
}

.radio-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.radio-container input:checked~.radio-checkmark:after {
    display: block;
}

.radio-container .radio-checkmark:after {
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-blue);
}

.status-badge {
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    background-color: #e2e8f0;
    color: #475569;
}

.status-badge.available {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-badge.sold-out {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.radio-container.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Inputs Generic */
.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-blue);
    font-size: 0.95rem;
}

.input-group label .required {
    color: var(--error);
}

.input-group p.small-text {
    font-size: 0.8rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.input-group input,
.input-group select {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 84, 166, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 20px;
}

/* Indicators */
.loading-spinner {
    color: var(--primary-blue);
    font-weight: 500;
    margin-top: 15px;
}

/* --- Registration Blocks & Bilingual UI --- */
.form-block {
    margin-bottom: 12px;
    padding: 14px;
    background: var(--surface-container-low);
    border-radius: 16px;
    border: 1px solid var(--outline-variant);
}

.block-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-container);
}

.checkbox-group-label,
.radio-group-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--on-surface-variant);
    margin-bottom: 12px;
}

.md-checkbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.md-checkbox-list.horizontal {
    display: inline-block;
    /* flex-wrap: wrap;
    gap: 20px; */
}

.cond-presencial,
.cond-virtual {
    transition: all 0.3s ease;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 60px;
    color: var(--success);
    margin-bottom: 20px;
}

/* Fix background-clip lint */
/* Fix background-clip numbers visibility */
.countdown-item span:first-child {
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

/* ================= Footer ================= */
footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ================= Media Queries ================= */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
    }

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

    .hero-graphic {
        height: 400px;
    }

    .abstract-globe {
        width: 350px;
        height: 350px;
    }

    .form-container {
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .full-width {
        grid-column: 1 / -1;
    }

    .radio-group {
        flex-direction: row;
        gap: 30px;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ================= Searchable Select (MD3) ================= */
.md-field--searchable {
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.md-field--searchable.active {
    z-index: 1500;
}

.md-select-menu {
    position: absolute;
    top: calc(100% - 10px);
    left: 0;
    right: 0;
    max-height: 250px;
    background: var(--md-sys-color-surface);
    border-radius: 4px;
    box-shadow: var(--md-elevation-3);
    z-index: 2000;
    overflow-y: auto;
    display: none;
    border: 1px solid var(--md-sys-color-outline);
    transform-origin: top;
    transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
    opacity: 0;
    transform: scaleY(0.8);
}

.md-select-menu.active {
    display: block;
    opacity: 1;
    transform: scaleY(1);
}

.md-select-search {
    padding: 8px;
    position: sticky;
    top: 0;
    background: var(--md-sys-color-surface);
    border-bottom: 1px solid var(--md-sys-color-surface-variant);
    z-index: 10;
}

.md-select-search input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: 4px;
    background: var(--md-sys-color-surface-variant);
    font-size: 14px;
    outline: none;
    color: var(--md-sys-color-on-surface);
}

.md-select-option {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--md-sys-color-on-surface);
    transition: background 0.2s;
    cursor: pointer;
}

.md-select-option:hover {
    background: var(--md-sys-color-surface-variant);
}

.md-select-option.selected {
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    font-weight: 500;
}

.md-select-option.hidden {
    display: none;
}

.md-field--searchable select {
    display: none !important;
}

.md-select-display {
    width: 100%;
    height: 56px;
    padding: 16px 40px 16px 16px;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: 4px;
    background: transparent;
    color: var(--md-sys-color-on-surface);
    font-size: 16px;
    display: flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.md-field--searchable.active .md-select-display {
    border: 2px solid var(--md-sys-color-primary);
}

.md-select-display::after {
    content: '\f0d7';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    color: var(--md-sys-color-on-surface-variant);
    transition: transform 0.2s;
}

.md-field--searchable.active .md-select-display::after {
    transform: rotate(180deg);
}

.md-field--searchable label {
    z-index: 11;
}

.md-field.has-error .md-select-display {
    border-color: var(--md-sys-color-error) !important;
    border-width: 2px;
}

/* ================= Phone Field Group (MD3) ================= */
.md-phone-group {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.md-phone-group .md-field:first-child {
    flex: 0 0 120px;
}

.md-phone-group .md-field:last-child {
    flex: 1;
}

@media (max-width: 480px) {
    .md-phone-group {
        flex-direction: column;
        gap: 0;
    }

    .md-phone-group .md-field:first-child {
        flex: 0 0 auto;
        width: 100%;
    }

    .step-label {
        margin-top: 12px;
        font-size: 9px;
        font-weight: 500;
        color: var(--md-sys-color-on-surface-variant);
    }

}


/* GTranslate Custom Styles (Material UI Inspired) */
#gtranslate_dropdown {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 10000 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 8px !important;
    padding: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
}

#gtranslate_dropdown:hover {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.24) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px);
}

/* Styling the actual select element injected by GTranslate */
#gtranslate_dropdown select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: transparent !important;
    border: none !important;
    padding: 10px 36px 10px 16px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    cursor: pointer !important;
    outline: none !important;
    width: 100% !important;
    display: block !important;
}

/* Adding a custom MUI-style arrow */
#gtranslate_dropdown::after {
    content: '\f078';
    /* FontAwesome chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.54);
    pointer-events: none;
    transition: color 0.2s;
}

#gtranslate_dropdown:hover::after {
    color: rgba(0, 0, 0, 0.87);
}

/* Hide Google Translate original elements */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon,
img.goog-te-gadget-icon {
    display: none !important;
}

body {
    top: 0px !important;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    #gtranslate_dropdown {
        top: 15px !important;
        /* right: 15px !important; */
        transform: scale(0.9);
        position: revert-layer !important;
        margin: 15px auto 9px auto !important;
        /* display: block; */
    }
}

.traducir {
    display: flex;
    justify-content: center;
    align-items: center;
}

.traducir span {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    color: #fff;
    font-size: 24px;
    background: var(--gradient-accent);
    ;
    width: 100%;
    display: block;
    text-align: center;
    height: 39px;
    vertical-align: middle;
}

.lista-politica {
    list-style-type: disc;
    margin-left: 20px;
}