/* CSS Variables */
:root {
    --primary-color: #371ECF;
    --primary-dark: #2A17A0;
    --primary-light: #6B5BD6;
    --secondary-color: #7C3AED;
    --accent-color: #8B5CF6;
    --text-dark: #1F2937;
    --text-medium: #4B5563;
    --text-light: #6B7280;
    --bg-white: #FFFFFF;
    --bg-light: #F0F1F3;
    --bg-gray: #E8E9EC;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

address {
    font-style: normal;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #371ECF;
}

.logo img {
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-medium);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

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

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
}
.lang-current { color: var(--primary-color); }
.lang-divider { color: var(--text-light); }
.lang-other { color: var(--text-medium); }
.lang-other:hover { color: var(--primary-color); }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content--centered h1 {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Team Member Card (used in Compañía) */
.team-member {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.member-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.team-member h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.team-member p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-gray);
    border-radius: 50%;
    color: var(--primary-color);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Sobre nosotros Section */
.nosotros {
    padding: 6rem 0;
    background: var(--bg-white);
}

.nosotros h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.team-grid > .team-member {
    display: flex;
    flex-direction: column;
}

.team-grid > .team-member:nth-child(1) {
    grid-column: 1 / span 3;
    grid-row: 1;
}

.team-grid > .team-member:nth-child(2) {
    grid-column: 4 / span 3;
    grid-row: 1;
}

.team-grid > .team-member:nth-child(3) {
    grid-column: 1 / span 2;
    grid-row: 2;
}

.team-grid > .team-member:nth-child(4) {
    grid-column: 3 / span 2;
    grid-row: 2;
}

.team-grid > .team-member:nth-child(5) {
    grid-column: 5 / span 2;
    grid-row: 2;
}

.team-grid .team-member .social-link {
    margin-top: auto;
    align-self: center;
}

.contact .contact-card-col--single {
    max-width: 560px;
    margin: 0 auto;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--bg-gray);
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-merged {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-card-col {
    display: flex;
    align-items: stretch;
}

.contact-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

.contact-card .btn {
    align-self: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item a,
.contact-item address {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--primary-color);
}


/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand .logo img {
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-links ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.footer-legal a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    background: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-bottom-logo {
    display: block;
    margin: 0 auto 0.75rem;
    max-width: 200px;
    height: auto;
}

.footer-bottom p {
    color: #666;
    font-size: 0.875rem;
}

/* Hero Slider */
.hero-slider {
    margin-bottom: 2.5rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-slider-track {
    position: relative;
    width: 100%;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    width: 100%;
}

.hero-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.hero-slide-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-slide-label {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.5;
    font-weight: 500;
    max-width: 480px;
}

/* Slider Dots */
.hero-slider-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.hero-slider-dot {
    width: 32px;
    height: 4px;
    border-radius: 2px;
    border: none;
    background: var(--border-color);
    cursor: pointer;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.hero-slider-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

.hero-slider-dot.active::after {
    width: 100%;
    animation: sliderProgress var(--dot-duration, 3.5s) linear forwards;
}

@keyframes sliderProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* Hero Centered Layout */
.hero-content--centered {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}


/* Usuarios Section */
.usuarios {
    padding: 6rem 0;
    background: var(--bg-white);
}

.usuarios h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.usuarios-intro {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.usuarios-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-gray);
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}


.usuarios-explanation {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.usuarios-content a[href="#plantillas"],
.como-funciona a[href="#plantillas"] {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.usuarios-content a[href="#plantillas"]:hover,
.como-funciona a[href="#plantillas"]:hover {
    color: var(--primary-dark);
}

.usuarios-flow-intro {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 2rem;
}

/* Cómo funciona Section */
.como-funciona {
    padding: 6rem 0;
    background: var(--bg-light);
}

.como-funciona h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Flow Steps Timeline */
.flow-steps {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2.5rem;
}

.flow-steps::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.flow-step {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 1rem;
}

.flow-step:last-child {
    padding-bottom: 0;
}

.flow-step-number {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 1;
}

.flow-step h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.flow-step p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.flow-step-img {
    margin-top: 1rem;
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.flow-step-img--sm {
    max-width: 260px;
}

.flow-step-img--md {
    max-width: 380px;
}

.flow-step-img--xs {
    max-width: 150px;
}

.usuarios-closing {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.usuarios-result blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, rgba(55, 30, 207, 0.08) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 600;
    line-height: 1.7;
}

/* Plantillas Inteligentes Collapsible */
.plantillas-collapsible {
    margin-top: 3rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    overflow: hidden;
}

.plantillas-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}


.plantillas-toggle h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin: 0;
}

.plantillas-toggle-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
    line-height: 1;
}

.plantillas-collapsible.open .plantillas-toggle-icon {
    transform: rotate(45deg);
}

.plantillas-collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.plantillas-collapsible.open .plantillas-collapsible-content {
    max-height: 5000px;
}

.plantillas-intro {
    max-width: 900px;
    margin: 0 auto 1rem;
    padding: 0 2rem;
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.plantillas-question {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
}

.plantillas-blocks {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.plantillas-blocks-grid {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 0.5rem;
}

.plantillas-block {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.plantillas-block-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: var(--bg-white);

}

.plantillas-block-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.plantillas-block-header h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
}

.plantillas-block-content {
    padding: 2rem;
}

.plantillas-block-content p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.plantillas-block-content p:last-child {
    margin-bottom: 0;
}

.plantillas-block-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.plantillas-block-content ul li {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 0.25rem;
}

.plantillas-block-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-top: 1rem;
}

.plantillas-block-img--lg {
    width: 80%;
}

.plantillas-block-img--sm {
    width: 55%;
}

.plantillas-block-img--xs {
    width: 25%;
}

/* Tipos de escritos Section */
.escritos {
    padding: 4rem 0;
    background: var(--bg-white);
}

.escritos .usuarios-tags {
    justify-content: center;
}


/* Footnotes Section */
.footnotes {
    padding: 2rem 0;
    background: var(--bg-gray);
    border-top: 1px solid var(--border-color);
}

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

.footnotes-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-subtitle br {
        display: none;
    }

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

    .team-grid .team-member:nth-child(1),
    .team-grid .team-member:nth-child(2),
    .team-grid .team-member:nth-child(3),
    .team-grid .team-member:nth-child(4),
    .team-grid .team-member:nth-child(5) {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        padding: 1rem 1.25rem;
        min-height: auto;
    }

    .hero-slide-value {
        font-size: 1.5rem;
    }

    .hero-slide-label {
        font-size: 0.85rem;
        max-width: 340px;
    }

    h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle br {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .contact-merged {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-grid .team-member:nth-child(1),
    .team-grid .team-member:nth-child(2),
    .team-grid .team-member:nth-child(3),
    .team-grid .team-member:nth-child(4),
    .team-grid .team-member:nth-child(5) {
        grid-column: auto;
    }

    .nosotros {
        padding: 4rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .plantillas-blocks-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 480px) {
    .btn {
        width: 100%;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    section {
        padding: 4rem 0;
    }

    .flow-steps {
        padding-left: 2.5rem;
    }

    .flow-step-number {
        left: -2.5rem;
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .plantillas-block-header {
        padding: 1.25rem 1.5rem;
    }

    .plantillas-block-content {
        padding: 1.5rem;
    }

}

/* Demo Gate Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-text {
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.modal-section {
    margin-bottom: 1.25rem;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.modal-btn {
    width: 100%;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
}

.modal-btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Waitlist Form */
.waitlist-view {
    animation: modalIn 0.25s ease;
}

.waitlist-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.waitlist-subtitle {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-field input {
    padding: 0.625rem 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.2s ease;
    color: var(--text-dark);
    background: var(--bg-white);
}

.form-field input:focus {
    border-color: var(--primary-color);
}

.form-field input.invalid {
    border-color: #e53e3e;
}

.waitlist-error {
    font-size: 0.85rem;
    color: #e53e3e;
    text-align: center;
    margin-top: 0.25rem;
}

/* Waitlist Confirmation */
.waitlist-confirm-content {
    text-align: center;
    padding: 1rem 0;
}

.waitlist-confirm-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.waitlist-confirm-content .waitlist-title {
    margin-bottom: 0.5rem;
}

.waitlist-confirm-content .btn {
    margin-top: 1.5rem;
}

/* Submit button loading state */
#waitlistSubmitBtn.loading {
    opacity: 0.7;
    pointer-events: none;
}
