:root {
    --primary: #0F172A;
    --primary-light: #1E293B;
    --accent: #D4AF37;
    /* Premium Gold */
    --accent-hover: #F1D570;
    --bg-body: #FAFAFA;
    --text-dark: #0F172A;
    --text-muted: #475569;
    --white: #FFFFFF;

    --nav-bg: rgba(255, 255, 255, 0.85);
    --card-bg: rgba(255, 255, 255, 0.6);
    --border-glass: rgba(255, 255, 255, 0.3);

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-gold: 0 10px 25px -5px rgba(212, 175, 55, 0.4);

    --font-head: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--primary);
}

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

p {
    color: var(--text-muted);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.6rem 0;
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    flex-direction: column;
}

.brand-text {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.brand-sub {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    font-weight: 500;
    font-size: 1rem;
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.1, 1, 0.1, 1);
}

.mobile-nav-toggle.active .burger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--accent);
}

.mobile-nav-toggle.active .burger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active .burger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--accent);
}

.nav-links a:not(.btn-nav) {
    position: relative;
    color: var(--text-dark);
}

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

.nav-links a:not(.btn-nav):hover::after,
.nav-links a:not(.btn-nav).active::after {
    width: 100%;
}

.btn-nav {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-nav:hover {
    background: transparent;
    color: var(--primary) !important;
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Hero Section */
.hero-section {
    align-items: center;
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, rgba(248, 250, 252, 1) 0%, rgba(226, 232, 240, 1) 100%);
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: var(--text-muted);
    max-width: 650px;
    margin-inline: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Buttons */
.btn-primary {
    background: var(--accent);
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-gold);
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--accent-hover);
    box-shadow: 0 15px 30px -5px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.btn-full {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

/* Info Section (Home) */
.info-section {
    max-width: 1200px;
    margin: -2rem auto 4rem;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

/* Pages Header */
.page-header {
    background: var(--primary);
    color: var(--white);
    padding: 10rem 2rem 5rem;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services-section {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.service-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.service-card p {
    font-size: 1.05rem;
}

/* Membership */
.membership-section {
    background: var(--primary);
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
}

.membership-container {
    background: var(--white);
    max-width: 500px;
    width: 100%;
    border-radius: 30px;
    padding: 3rem;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(-20px);
    animation: float 6s ease-in-out infinite;
}

.membership-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: var(--accent);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: var(--shadow-gold);
}

.membership-title {
    font-size: 2rem;
    font-family: var(--font-body);
    text-align: center;
    margin-bottom: 1rem;
}

.membership-price {
    text-align: center;
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-head);
    line-height: 1;
    margin-bottom: 1rem;
}

.currency {
    font-size: 2rem;
    vertical-align: super;
    color: var(--accent);
}

.period {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
    font-family: var(--font-body);
}

.membership-desc {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.membership-benefits {
    list-style: none;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.membership-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.check-icon {
    background: rgba(212, 175, 55, 0.2);
    color: #B8860B;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 3px;
}

/* Contact Form */
.contact-section {
    max-width: 800px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.contact-container {
    background: var(--white);
    padding: 4rem;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.row {
    flex-direction: row;
    gap: 2rem;
}

.form-group.row .col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: #F8FAFC;
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.text-danger {
    color: #Ef4444;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.alert-success {
    background: #DCFCE7;
    color: #166534;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 500;
    border: 1px solid #BBF7D0;
}

/* Checkout Layout */
.checkout-section {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.checkout-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-summary {
    flex: 0 0 400px;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
}

.checkout-summary .membership-title {
    font-size: 1.8rem;
}

.checkout-summary .membership-price {
    font-size: 3rem;
}

.checkout-form-container {
    flex: 1;
    background: var(--white);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
    .checkout-layout {
        flex-direction: column;
    }
    .checkout-summary {
        flex: none;
        width: 100%;
        position: static;
        order: -1;
    }
}

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

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

.footer-info h3 {
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    display: table;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Mercado Pago Custom Styles */
#form-checkout {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* Iframe containers (card fields) */
#form-checkout .mp-field-container {
    height: 52px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 0 1.2rem;
    background: #F8FAFC;
    box-sizing: border-box;
    transition: var(--transition);
    margin-bottom: 0;
}

#form-checkout .mp-field-container:focus-within {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

/* Native inputs and selects */
#form-checkout input,
#form-checkout select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: #F8FAFC;
    color: var(--text-dark);
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

#form-checkout input:focus,
#form-checkout select:focus {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

#form-checkout input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

/* Select arrow */
#form-checkout select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23475569' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

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

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.form-row > * {
    flex: 1;
    min-width: 0;
}

/* Etiquetas del formulario */
.checkout-label {
    display: block;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    font-family: var(--font-body);
}

.checkout-field {
    margin-bottom: 1.5rem;
}

/* Agrupación de campos de tarjeta */
.checkout-card-fields {
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkout-card-fields-title {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Iframe containers dentro del card-fields */
#form-checkout .container {
    height: 52px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 0 1.2rem;
    background: #F8FAFC;
    box-sizing: border-box;
    transition: var(--transition);
    margin-bottom: 1rem;
}

#form-checkout .container:last-child {
    margin-bottom: 0;
}

/* Botón de pago */
#form-checkout__submit {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
    box-shadow: var(--shadow-gold);
    letter-spacing: 0.5px;
}

#form-checkout__submit:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(212, 175, 55, 0.5);
}

#form-checkout__submit:active {
    transform: translateY(-1px);
}

/* Progress bar */
#form-checkout .progress-bar {
    width: 100%;
    height: 4px;
    border: none;
    border-radius: 4px;
    background: #E2E8F0;
    margin-top: 1rem;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
}

#form-checkout .progress-bar::-webkit-progress-bar {
    background: #E2E8F0;
    border-radius: 4px;
}

#form-checkout .progress-bar::-webkit-progress-value {
    background: var(--accent);
    border-radius: 4px;
    transition: width 0.4s ease;
}

#form-checkout .progress-bar::-moz-progress-bar {
    background: var(--accent);
    border-radius: 4px;
}

/* Divider entre secciones del formulario */
.checkout-divider {
    height: 1px;
    background: #E2E8F0;
    margin: 1.5rem 0;
}


/* New Sections (SEO Improvements) */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title {
    font-size: 3rem !important;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.specialties-section {
    padding: 8rem 0;
    background-color: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.specialties-title {
    text-align: center;
    margin-bottom: 5rem;
    font-size: 3rem;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.specialty-item {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.specialty-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.specialty-item h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.specialty-item p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.specialties-footer {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.specialties-footer p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.external-resource {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    font-size: 1.1rem;
    transition: var(--transition);
}

.external-resource:hover {
    color: var(--primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes float {

    0%,
    100% {
        transform: translateY(-10px);
    }

    50% {
        transform: translateY(-25px);
    }
}

/* Responsive Framework */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.8rem;
    }

    .page-header h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        padding: 4rem 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.25rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 600;
        width: 100%;
        text-align: center;
    }

    .btn-nav {
        width: 100%;
        padding: 1rem 2rem;
        border-radius: 12px;
    }

    /* Checkout specific mobile adjustments */
    .checkout-section {
        padding: 0 1rem;
        margin: 3rem auto;
    }

    .checkout-form-container {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }

    .checkout-summary {
        margin-bottom: 2rem;
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .checkout-card-fields {
        padding: 1.25rem;
    }

    .checkout-field {
        margin-bottom: 1.25rem;
    }
    
    .checkout-divider {
        margin: 1.25rem 0;
    }

    .hero-title {
        font-size: 2.8rem;
        padding: 0 10px;
    }

    .page-header {
        padding: 10rem 1.5rem 3.5rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .membership-price {
        font-size: 2.8rem;
    }
    
    .brand-text {
        font-size: 1.5rem;
    }
    
    .brand-sub {
        font-size: 0.75rem;
    }
}