/* =====================================================
   Marko Alegre Coach — estilos principales
   ===================================================== */

/* Variables CSS */
:root {
    /* MAC: teal enlaces / marca secundaria; lima en --mac-accent (landing lo redefine) */
    --mac-accent: #d4ff00;
    --mac-accent-hover: #e5ff4d;
    --mac-accent-pressed: #b8e600;
    --mac-teal: #0f766e;
    --mac-teal-dark: #115e59;
    --primary-color: var(--mac-teal);
    --primary-dark: var(--mac-teal-dark);
    --secondary-color: #3b82f6;
    --danger-color: #ef4444;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --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);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Evitar desbordes en toda la página */
img, video, iframe, svg {
    max-width: 100%;
    height: auto;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    gap: 1rem;
}

.nav__logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}

.nav__logo a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.nav__logo a:hover {
    opacity: 0.9;
}

.nav__logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
    color: inherit;
}

.nav__logo-link:hover {
    opacity: 0.92;
}

.nav__logo-img {
    display: block;
    height: clamp(4.2rem, 6.8vw, 5.2rem);
    width: auto;
    max-width: min(390px, 66vw);
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 1.75rem;
    align-items: center;
}

.nav__link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.nav__link:hover {
    color: var(--primary-dark);
}

.nav__link--highlight {
    background: var(--primary-dark);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nav__link--highlight:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.28);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav__toggle:hover {
    background: var(--bg-light);
}

.nav__toggle span {
    width: 22px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero__description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
}

.hero__image-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

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

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

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

.btn--full {
    width: 100%;
}

/* Alias usados en login/auth */
.btn-primary { background: var(--primary-color); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-full { width: 100%; }
.btn-block { width: 100%; }

/* Services Section */
.services {
    padding: 4rem 0;
}

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

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

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

.service__card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service__icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.service__icon svg {
    width: 30px;
    height: 30px;
}

.service__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service__description {
    color: var(--text-light);
    line-height: 1.7;
}

/* About Section */
.about {
    padding: 4rem 0;
    background: var(--bg-light);
}

.about__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about__description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact__item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact__icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact__icon svg {
    width: 24px;
    height: 24px;
}

/* Footer */
.footer {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 35%, #0f172a 100%);
    color: var(--white);
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(212, 255, 0, 0.45) 50%, transparent 95%);
    opacity: 0.9;
}

.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(212, 255, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.footer__content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
    gap: 3rem 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer__section {
    display: flex;
    flex-direction: column;
}

.footer__brand .footer__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.footer__section p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    font-size: 0.9375rem;
    margin: 0;
    max-width: 320px;
}

.footer__section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.65rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.8125rem;
}

.footer__section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

.footer__social {
    margin-top: 1.5rem;
}

.footer__social-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
}

.footer__social-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.25s ease;
}

.footer__social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.35);
}

.footer__social-link svg {
    width: 18px;
    height: 18px;
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__links li {
    display: flex;
    align-items: flex-start;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0;
}

.footer__links a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.footer__link-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.25s;
}

.footer__links a:hover .footer__link-icon {
    opacity: 1;
}

.footer__contact .footer__link-icon {
    margin-top: 2px;
}

.footer__address {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.footer__address .footer__link-icon {
    flex-shrink: 0;
    opacity: 0.85;
    margin-top: 2px;
}

.footer__bottom {
    text-align: center;
    padding: 1.75rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8125rem;
    position: relative;
    z-index: 1;
}

.footer__bottom p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer__credit-line {
    margin: 0.6rem 0 0;
    font-size: 0.6875rem;
    line-height: 1.35;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.32);
}

.footer__credit-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.footer__credit-link:hover {
    color: rgba(255, 255, 255, 0.52);
    border-bottom-color: rgba(255, 255, 255, 0.28);
}

/* Footer: Seguridad y confianza */
.footer__trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer__trust-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.875rem;
}

.footer__trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: rgba(15, 118, 110, 0.18);
    border: 1px solid rgba(15, 118, 110, 0.4);
    border-radius: 8px;
    color: var(--primary-color);
}

.footer__trust-icon svg {
    width: 16px;
    height: 16px;
}

.footer__trust-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 1;
}

.footer__trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer__trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    font-weight: 500;
}

.footer__trust-badge svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

.footer__legal {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer__legal a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s;
}

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

@media (max-width: 968px) {
    .footer__content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer__brand {
        grid-column: 1 / -1;
    }
    
    .footer__trust {
        grid-column: 1 / -1;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 2rem;
        margin-top: 0.5rem;
    }
    
    .footer__trust-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 1.5rem;
    }
    
    .footer__section p {
        max-width: none;
    }
    
    .footer__trust-bar-inner {
        gap: 1.25rem;
    }
    
    /* Iconos del footer un poco más pequeños en tablet */
    .footer__social-link {
        width: 36px;
        height: 36px;
    }
    
    .footer__social-link svg {
        width: 17px;
        height: 17px;
    }
    
    .footer__trust-icon {
        width: 24px;
        height: 24px;
    }
    
    .footer__trust-icon svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 0;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer__brand {
        grid-column: 1;
    }
    
    .footer__trust {
        grid-column: 1;
        padding-top: 1.5rem;
        margin-top: 0;
    }
    
    .footer__trust-list {
        grid-template-columns: 1fr;
    }
    
    .footer__brand .footer__logo {
        font-size: 1.35rem;
    }
    
    .footer__section h4 {
        font-size: 0.75rem;
    }
    
    .footer__trust-bar {
        padding: 0.875rem 1rem;
    }
    
    .footer__trust-bar-inner {
        gap: 1rem;
    }
    
    .footer__trust-badge {
        font-size: 0.75rem;
    }
    
    .footer__trust-badge svg {
        width: 14px;
        height: 14px;
    }
    
    /* Reducir iconos del footer en móvil para que no se vean grandes */
    .footer__social-link {
        width: 34px;
        height: 34px;
    }
    
    .footer__social-link svg {
        width: 16px;
        height: 16px;
    }
    
    .footer__trust-icon {
        width: 22px;
        height: 22px;
    }
    
    .footer__trust-icon svg {
        width: 12px;
        height: 12px;
    }
    
    .footer__link-icon {
        width: 16px;
        height: 16px;
    }
    
    .footer__bottom p {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer__bottom {
        padding: 1.25rem 1rem;
        font-size: 0.75rem;
    }
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #f0fdfa 0%, #f8fafc 35%, #ffffff 100%);
    padding: 1.25rem 2rem;
    position: relative;
    overflow: hidden;
}
.auth-container.auth-container--registro {
    height: 100vh;
    min-height: 100vh;
    padding: 0.75rem 1rem;
    align-items: stretch;
}
.auth-container.auth-container--registro .auth-card-register {
    max-height: 100%;
    overflow-y: auto;
    margin: auto;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(15, 118, 110, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.auth-container::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 40%;
    height: 50%;
    background: radial-gradient(ellipse, rgba(15, 118, 110, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.auth-card {
    background: var(--white);
    padding: 2.5rem 2.75rem;
    border-radius: 1.25rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(15, 118, 110, 0.15);
    position: relative;
    z-index: 1;
}

.auth-card-register {
    max-width: 1100px;
    width: 96%;
    padding: 1rem 1.75rem;
}
.auth-card-register .auth-header {
    margin-bottom: 0.75rem;
}
.auth-form-register {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem 1rem;
}
.auth-form-register .form-group {
    margin-bottom: 0;
}
.auth-form-register .form-group-full {
    grid-column: 1 / -1;
}
.auth-form-register .form-group-full .form-group {
    margin-bottom: 0;
}
.auth-form-register .btn-wrap-full {
    grid-column: 1 / -1;
    margin-top: 0.25rem;
}
@media (max-width: 900px) {
    .auth-form-register {
        grid-template-columns: 1fr 1fr;
    }
    .auth-card-register {
        max-width: 720px;
    }
}
@media (max-width: 600px) {
    .auth-form-register {
        grid-template-columns: 1fr;
    }
    .auth-card-register {
        max-width: 100%;
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    transition: color 0.2s, transform 0.2s;
}

.auth-logo:hover {
    color: var(--primary-color);
    transform: scale(1.02);
}

.auth-logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.auth-logo--image {
    display: inline-block;
    line-height: 0;
    max-width: 100%;
}

.auth-logo-img {
    display: block;
    height: auto;
    width: auto;
    max-height: clamp(4.2rem, 9vw, 6.4rem);
    max-width: min(420px, 92vw);
    margin: 0 auto;
}

.auth-logo-text {
    letter-spacing: -0.02em;
}

.auth-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.auth-subtitle {
    font-size: 0.9375rem;
    color: var(--text-light);
    font-weight: 400;
}

.auth-form {
    margin-bottom: 1.75rem;
}

.auth-card .form-group {
    margin-bottom: 1.25rem;
}

.auth-card .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9375rem;
}

.auth-card .form-group input,
.auth-card .form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 0.625rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
}

.auth-card .form-group input::placeholder {
    color: #9ca3af;
}

.auth-card .form-group input:hover,
.auth-card .form-group select:hover {
    border-color: #d1d5db;
}

.auth-card .form-group input:focus,
.auth-card .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2);
}

.auth-card .form-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.4;
}

.auth-code-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.auth-code-fallback {
    font-size: 1.25rem;
    letter-spacing: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.auth-code-fallback-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.btn-copy-code {
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s;
}

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

.auth-whatsapp-link {
    color: #25d366 !important;
}

.auth-whatsapp-link:hover {
    color: #128c7e !important;
}

.auth-form .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.625rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-form .btn-icon {
    flex-shrink: 0;
}

.auth-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.auth-form .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.28);
}

.auth-footer {
    text-align: center;
    padding-top: 0.5rem;
}

.auth-footer .auth-link {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.auth-footer .auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-footer .auth-link-muted {
    color: var(--text-light);
    font-weight: 500;
}

.auth-footer .auth-link-muted:hover {
    color: var(--text-dark);
}

/* Flecha MAC + texto en enlaces «Volver» (auth) */
a.mac-auth-back {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
a.mac-auth-back .mac-auth-back__icon {
    flex-shrink: 0;
    display: block;
}

.auth-footer-register {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.auth-footer-register a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer-register a:hover {
    text-decoration: underline;
}

.auth-card .auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.auth-card .auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.auth-card .auth-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-step-desc {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.auth-inline-link {
    text-align: center;
    margin-top: 1rem;
}

.auth-inline-link a {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.auth-inline-link a:last-child {
    margin-bottom: 0;
}

.auth-inline-link a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.auth-success-message {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.auth-success-cta {
    margin-bottom: 1.5rem;
}

.auth-success-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.625rem;
    text-decoration: none;
    transition: all 0.2s;
}

/* Alerts */
.alert {
    padding: 0.9rem 1rem;
    border-radius: 0.625rem;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdfa;
    color: #134e4a;
    border: 1px solid #5eead4;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* =====================================================
   Botón flotante WhatsApp (esquina inferior derecha, tamaño discreto)
   ===================================================== */
.whatsapp-float {
    position: fixed !important;
    left: auto !important;
    right: 20px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    box-shadow: 0 3px 14px rgba(37, 211, 102, 0.4) !important;
    z-index: 10002 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    border: none;
}

.whatsapp-float:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.5) !important;
}

.whatsapp-float:active {
    transform: scale(0.98) !important;
}

.whatsapp-float svg {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0;
}

/* =====================================================
   Responsive – Tablet (968px) y móvil (768px, 480px)
   ===================================================== */

/* Evitar scroll de página cuando menú móvil está abierto */
body.menu-open {
    overflow: hidden;
    touch-action: none;
}

/* Tablet: menú hamburguesa, secciones en columna */
@media (max-width: 968px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .nav__menu {
        position: fixed;
        left: -100%;
        top: 65px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        max-width: 100vw;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-md);
        padding: 1rem 0;
        gap: 0;
        z-index: 999;
        max-height: calc(100vh - 65px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav__menu.active {
        left: 0;
    }

    .nav__menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav__menu .nav__link {
        display: block;
        padding: 1rem 1.25rem;
        min-height: 44px;
        box-sizing: border-box;
    }

    .nav__menu .nav__link--highlight {
        margin: 1rem 1.25rem 0;
        text-align: center;
    }

    .nav__toggle {
        display: flex;
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

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

    .hero__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__description {
        font-size: 1.1rem;
    }

    .hero__buttons {
        flex-wrap: wrap;
    }

    .section__title {
        font-size: 2rem;
    }

    .section__subtitle {
        font-size: 1rem;
    }

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

    .about {
        padding: 3rem 0;
    }

    .contact {
        padding: 3rem 0;
    }

    .contact__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Móvil */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav {
        padding: 0.75rem 0;
    }

    .nav__logo h2 {
        font-size: 1.25rem;
    }

    .nav__logo-img {
        height: clamp(3.2rem, 10vw, 3.9rem);
        max-width: min(320px, 76vw);
    }

    .nav__menu {
        top: 56px;
        max-height: calc(100vh - 56px);
        padding: 1rem 0;
    }

    .hero {
        padding: 5.5rem 0 2.5rem;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .hero__description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero__buttons .btn {
        width: 100%;
        text-align: center;
    }

    .hero__image-placeholder {
        height: 280px;
        min-height: 200px;
    }

    .section__title {
        font-size: 1.6rem;
    }

    .section__subtitle {
        font-size: 0.9375rem;
    }

    .services,
    .about {
        padding: 2.5rem 0;
    }

    .service__card {
        padding: 1.5rem;
    }

    .service__title {
        font-size: 1.25rem;
    }

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

    .contact__form-row {
        grid-template-columns: 1fr;
    }

    .contact__form-group input,
    .contact__form-group textarea {
        font-size: 16px; /* evita zoom en iOS al enfocar */
    }

    /* WhatsApp: esquina inferior derecha, respeta safe-area (muescas) */
    .whatsapp-float {
        left: auto !important;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        right: calc(16px + env(safe-area-inset-right, 0px));
        width: 44px;
        height: 44px;
    }

    .whatsapp-float svg {
        width: 22px !important;
        height: 22px !important;
    }

    /* Auth */
    .auth-container {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    .auth-logo { font-size: 1.35rem; }
    .auth-logo-icon { width: 32px; height: 32px; }
    .auth-logo-img { max-height: clamp(3.6rem, 11vw, 5.2rem); max-width: min(340px, 92vw); }
    .auth-title { font-size: 1.35rem; }
    .auth-subtitle { font-size: 0.875rem; }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .container {
        padding-left: max(0.875rem, env(safe-area-inset-left));
        padding-right: max(0.875rem, env(safe-area-inset-right));
    }

    .hero__title {
        font-size: 1.5rem;
    }

    .section__title {
        font-size: 1.4rem;
    }

    .whatsapp-float {
        left: auto !important;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        right: calc(12px + env(safe-area-inset-right, 0px));
        width: 42px;
        height: 42px;
    }

    .whatsapp-float svg {
        width: 20px !important;
        height: 20px !important;
    }

    .auth-card {
        padding: 1.5rem 1.25rem;
    }

    .auth-form .btn { padding: 0.85rem 1rem; }
    .auth-card .form-group input,
    .auth-card .form-group select { padding: 0.8rem 1rem; }

    /* Footer: iconos aún más compactos en pantallas muy pequeñas */
    .footer__social-link {
        width: 32px;
        height: 32px;
    }
    .footer__social-link svg {
        width: 14px;
        height: 14px;
    }
    .footer__trust-icon {
        width: 20px;
        height: 20px;
    }
    .footer__trust-icon svg {
        width: 11px;
        height: 11px;
    }
    .footer__trust-badge {
        font-size: 0.7rem;
    }
    .footer__trust-badge svg {
        width: 12px;
        height: 12px;
    }
    .footer__link-icon {
        width: 14px;
        height: 14px;
    }
}

/* Auth en móvil horizontal (baja altura): evitar que el logo pise la primera fila */
@media (max-height: 520px) and (orientation: landscape) {
    .auth-container {
        align-items: flex-start;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        overflow-y: auto;
    }

    .auth-card {
        padding: 1rem 1.25rem;
    }

    .auth-header {
        margin-bottom: 0.65rem;
    }

    .auth-logo {
        margin-bottom: 0.4rem;
    }

    .auth-logo-img {
        max-height: 2.4rem !important;
        max-width: min(220px, 62vw) !important;
    }

    .auth-title {
        font-size: 1.05rem;
        margin-bottom: 0.2rem;
    }

    .auth-subtitle {
        font-size: 0.78rem;
    }

    .auth-form {
        margin-bottom: 0.9rem;
    }

    .auth-card .form-group {
        margin-bottom: 0.7rem;
    }

    /* Registro: layout aún más compacto para evitar solape con la primera fila */
    .auth-container.auth-container--registro {
        height: auto;
        min-height: 100dvh;
        padding: 0.35rem 0.75rem;
    }

    .auth-container.auth-container--registro .auth-card-register {
        width: 100%;
        max-width: 100%;
        padding: 0.85rem 1rem;
        max-height: none;
    }

    .auth-container.auth-container--registro .auth-header {
        margin-bottom: 0.35rem;
    }

    .auth-container.auth-container--registro .auth-logo {
        margin-bottom: 0.25rem;
    }

    .auth-container.auth-container--registro .auth-logo-img {
        max-height: 2rem !important;
        max-width: min(180px, 42vw) !important;
    }

    .auth-container.auth-container--registro .auth-title {
        font-size: 1rem;
        margin-bottom: 0.05rem;
    }

    .auth-container.auth-container--registro .auth-subtitle {
        font-size: 0.72rem;
        line-height: 1.2;
    }

    .auth-container.auth-container--registro .auth-form-register {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem 0.7rem;
    }

    .auth-container.auth-container--registro .form-group label {
        font-size: 0.72rem;
        margin-bottom: 0.15rem;
    }

    .auth-container.auth-container--registro .form-group input {
        padding: 0.45rem 0.6rem;
        font-size: 0.82rem;
    }

    /* Hard clamp: header ultra-compact to avoid overlapping first row on landscape mobile */
    .auth-header {
        margin: 0 0 0.2rem 0 !important;
        padding: 0 !important;
    }

    .auth-logo {
        margin: 0 0 0.12rem 0 !important;
    }

    .auth-logo-img {
        max-height: 1.75rem !important;
        max-width: min(140px, 46vw) !important;
    }

    .auth-title {
        font-size: 0.95rem !important;
        margin: 0 0 0.08rem 0 !important;
        line-height: 1.06 !important;
    }

    .auth-subtitle {
        display: none !important;
    }
}

@media (max-height: 460px) and (orientation: landscape) {
    .auth-logo-img {
        max-height: 1.5rem !important;
        max-width: min(118px, 40vw) !important;
    }

    .auth-container.auth-container--registro .auth-logo-img {
        max-height: 1.35rem !important;
        max-width: min(108px, 34vw) !important;
    }
}

/* Móvil: forzar logo más pequeño en auth para evitar solape */
@media (max-width: 900px) {
    .auth-header {
        margin-bottom: 0.35rem !important;
        padding: 0 !important;
    }

    .auth-logo {
        margin-bottom: 0.2rem !important;
    }

    .auth-logo-img {
        max-height: 2.3rem !important;
        max-width: min(170px, 70vw) !important;
    }

    .auth-title {
        margin-bottom: 0.05rem !important;
        line-height: 1.08 !important;
    }

    .auth-subtitle {
        display: none !important;
    }

    .auth-container--registro .auth-logo-img {
        max-height: 2.05rem !important;
        max-width: min(155px, 66vw) !important;
    }

    .auth-card-register .auth-header {
        margin-bottom: 0.2rem !important;
    }
}

@media (max-width: 600px) {
    .auth-logo-img {
        max-height: 2rem !important;
        max-width: min(150px, 72vw) !important;
    }

    .auth-container--registro .auth-logo-img {
        max-height: 1.85rem !important;
        max-width: min(140px, 68vw) !important;
    }

    .auth-title {
        font-size: 1rem !important;
    }
}

/* =====================================================
   Botón de archivo personalizado (todo el sitio)
   Sustituye el "Examinar..." nativo por un botón acorde al diseño
   ===================================================== */
.input-file-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}
.input-file-wrap .input-file-native {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}
.input-file-wrap .btn-file-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    font-family: inherit;
}
.input-file-wrap .btn-file-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.35);
}
.input-file-wrap .btn-file-trigger svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.input-file-wrap .input-file-feedback {
    font-size: 0.875rem;
    color: #64748b;
}
.input-file-wrap .input-file-feedback.has-file {
    color: var(--mac-teal);
    font-weight: 500;
}

/* =====================================================
   Landing home (index) — newsletter, precios, tabs, contacto
   Solo aplica con body.mac-landing; tema MAC en marko-design-system.css
   ===================================================== */

body.mac-landing .newsletter {
    background: linear-gradient(135deg, var(--mac-teal) 0%, #14b8a6 100%);
    padding: 4rem 2rem;
    color: white;
}

body.mac-landing .newsletter__content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

body.mac-landing .newsletter__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

body.mac-landing .newsletter__description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

body.mac-landing .newsletter__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body.mac-landing .newsletter__input-group {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

body.mac-landing .newsletter__input-group input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
}

body.mac-landing .newsletter__input-group button {
    padding: 0.875rem 2rem;
    white-space: nowrap;
}

body.mac-landing #newsletter-message {
    font-weight: 500;
}

body.mac-landing .pricing {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

body.mac-landing .pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

body.mac-landing .pricing__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
}

body.mac-landing .pricing__empty-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #475569;
    margin: 0 0 0.5rem 0;
}

body.mac-landing .pricing__empty-sub {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0;
}

body.mac-landing .pricing__card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
    position: relative;
    transition: all 0.3s;
}

body.mac-landing .pricing__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

body.mac-landing .pricing__card--featured {
    border-color: var(--mac-accent);
    border-width: 3px;
    transform: scale(1.05);
}

body.mac-landing .pricing__card--featured:hover {
    transform: scale(1.05) translateY(-8px);
}

body.mac-landing .pricing__header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f1f5f9;
}

body.mac-landing .pricing__name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

body.mac-landing .pricing__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

body.mac-landing .pricing__currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #64748b;
}

body.mac-landing .pricing__amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

body.mac-landing .pricing__period {
    font-size: 1.125rem;
    color: #64748b;
}

body.mac-landing .pricing__description {
    color: #64748b;
    font-size: 0.9375rem;
    margin-top: 0.5rem;
}

body.mac-landing .pricing__features {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1.5rem 0;
    text-align: left;
}

body.mac-landing .pricing__features li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    color: #475569;
    font-size: 0.9375rem;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

body.mac-landing .pricing__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--mac-accent);
    font-weight: 700;
}

body.mac-landing .pricing__features li:last-child {
    border-bottom: none;
}

body.mac-landing .pricing__actions {
    margin-top: 2rem;
}

body.mac-landing .pricing__badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--mac-accent) 0%, var(--mac-accent-pressed) 100%);
    color: var(--mac-on-accent, #0f0f0f);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(212, 255, 0, 0.25);
}

body.mac-landing .pricing__badge--featured {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

body.mac-landing .pricing__badge-ia {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mac-teal-dark);
    background: rgba(15, 118, 110, 0.12);
    border: 1px solid rgba(15, 118, 110, 0.35);
    border-radius: 999px;
    vertical-align: middle;
}

body.mac-landing .pricing__note {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 12px;
    color: #0c4a6e;
    font-size: 0.9375rem;
}

body.mac-landing .pricing__note strong {
    font-weight: 600;
}

body.mac-landing .pricing--integradores {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding-top: 4rem;
    padding-bottom: 4rem;
}

body.mac-landing .pricing--integradores .section__title {
    color: #0f172a;
}

body.mac-landing .planes-tabs {
    max-width: 1200px;
    margin: 0 auto;
}

body.mac-landing .planes-tabs__switchers {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    gap: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

body.mac-landing .planes-tabs__group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

body.mac-landing .planes-tabs__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

body.mac-landing .planes-tabs__segmented {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

body.mac-landing .planes-tabs__segmented .planes-tabs__btn {
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #475569;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

body.mac-landing .planes-tabs__segmented .planes-tabs__btn:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.7);
}

body.mac-landing .planes-tabs__segmented .planes-tabs__btn.active {
    background: #fff;
    color: #0f766e;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.mac-landing .planes-tabs__segmented--billing .planes-tabs__btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

body.mac-landing .planes-tabs__content.pricing-view-mensual .pricing__price--anual {
    display: none !important;
}

body.mac-landing .planes-tabs__content.pricing-view-mensual .pricing__price-secondary--mensual {
    display: block;
}

body.mac-landing .planes-tabs__content.pricing-view-anual .pricing__price--mensual {
    display: none !important;
}

body.mac-landing .planes-tabs__content.pricing-view-anual .pricing__price--anual {
    display: block !important;
}

body.mac-landing .planes-tabs__content.pricing-view-anual .pricing__card:not(:has(.pricing__price--anual)) .pricing__price--mensual {
    display: block !important;
}

body.mac-landing .planes-tabs__content.pricing-view-anual .pricing__price-secondary--mensual {
    display: none !important;
}

body.mac-landing .pricing__price-secondary {
    margin-top: 0.25rem;
    font-size: 0.9375rem;
    color: #64748b;
}

body.mac-landing .planes-tabs__panel {
    display: none;
}

body.mac-landing .planes-tabs__panel.active {
    display: block;
}

body.mac-landing .planes-tabs__hint {
    text-align: center;
    color: #64748b;
    font-size: 0.9375rem;
    margin: 0 0 1.5rem 0;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

body.mac-landing .planes-tabs__note {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

body.mac-landing .contact {
    padding: 5rem 2rem;
    background: #ffffff;
}

body.mac-landing .contact__content {
    max-width: 1000px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

body.mac-landing .contact__form-wrapper {
    min-width: 0;
    width: 100%;
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

body.mac-landing .contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

body.mac-landing .contact__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

body.mac-landing .contact__form-group {
    display: flex;
    flex-direction: column;
}

body.mac-landing .contact__form-group label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

body.mac-landing .contact__form-group input,
body.mac-landing .contact__form-group textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.875rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: all 0.3s;
    font-family: inherit;
}

body.mac-landing .contact__form-group input:focus,
body.mac-landing .contact__form-group textarea:focus {
    outline: none;
    border-color: var(--mac-accent);
    box-shadow: 0 0 0 3px rgba(212, 255, 0, 0.2);
}

body.mac-landing .contact__form-group textarea {
    resize: vertical;
}

body.mac-landing .contact__info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

body.mac-landing .contact__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

body.mac-landing .contact__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--mac-teal) 0%, #14b8a6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.mac-landing .contact__icon svg {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    flex-shrink: 0;
}

body.mac-landing .contact__item h4 {
    margin: 0 0 0.5rem 0;
    color: #1e293b;
    font-size: 1.125rem;
}

body.mac-landing .contact__item p {
    margin: 0;
    color: #64748b;
}

body.mac-landing .contact__item a {
    color: var(--mac-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

body.mac-landing .contact__item a:hover {
    color: var(--mac-accent-hover);
}

body.mac-landing .contact__social {
    margin-top: 1rem;
}

body.mac-landing .contact__social h4 {
    margin-bottom: 1rem;
    color: #1e293b;
}

body.mac-landing .social__links {
    display: flex;
    gap: 1rem;
}

body.mac-landing .social__link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

body.mac-landing .social__link:hover {
    background: linear-gradient(135deg, var(--mac-accent) 0%, var(--mac-accent-pressed) 100%);
    color: var(--mac-on-accent, #0f0f0f);
    transform: translateY(-2px);
}

body.mac-landing .social__link svg {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    flex-shrink: 0;
}

body.mac-landing #contact-message {
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

@media (max-width: 768px) {
    body.mac-landing .newsletter__input-group {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    body.mac-landing .planes-tabs__switchers {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    body.mac-landing .planes-tabs__group {
        align-items: stretch;
    }

    body.mac-landing .planes-tabs__segmented {
        width: 100%;
    }

    body.mac-landing .planes-tabs__segmented .planes-tabs__btn {
        flex: 1;
    }
}

@media (max-width: 968px) {
    body.mac-landing .pricing__grid {
        grid-template-columns: 1fr;
    }

    body.mac-landing .pricing__card--featured {
        transform: scale(1);
    }

    body.mac-landing .pricing__card--featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    body.mac-landing .pricing__grid {
        grid-template-columns: 1fr;
    }

    body.mac-landing .pricing__card--featured:hover {
        transform: translateY(-8px);
    }

    body.mac-landing .mac-medicos .mac-medicos__title {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 480px) {
    body.mac-landing .pricing__card {
        padding: 1.5rem 1rem;
    }

    body.mac-landing .pricing__amount {
        font-size: 2.5rem;
    }
}

@media (max-width: 968px) {
    body.mac-landing .pricing {
        padding: 3rem 1rem;
    }

    body.mac-landing .pricing--integradores {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    body.mac-landing .pricing__grid {
        gap: 1.5rem;
        margin-top: 2rem;
    }

    body.mac-landing .planes-tabs__switchers {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    body.mac-landing .planes-tabs__segmented {
        width: 100%;
    }

    body.mac-landing .planes-tabs__segmented .planes-tabs__btn {
        flex: 1;
    }

    body.mac-landing .mac-medicos {
        padding: 3rem 1rem !important;
    }

    body.mac-landing .mac-medicos .section__header {
        margin-bottom: 2rem !important;
    }

    body.mac-landing .mac-medicos .mac-medicos__title {
        font-size: 1.85rem !important;
    }

    body.mac-landing .mac-medicos .mac-medicos__lead {
        font-size: 1rem !important;
    }

    body.mac-landing .contact {
        padding: 3rem 1rem !important;
    }

    body.mac-landing .contact__content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    body.mac-landing .contact__form-row {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    body.mac-landing .pricing {
        padding: 2.5rem 0.75rem;
    }

    body.mac-landing .pricing__grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    body.mac-landing .pricing__card--featured {
        transform: none;
    }

    body.mac-landing .pricing__card--featured:hover {
        transform: translateY(-4px);
    }

    body.mac-landing .pricing__name {
        font-size: 1.5rem;
    }

    body.mac-landing .pricing__amount {
        font-size: 2.75rem;
    }

    body.mac-landing .planes-tabs__hint {
        padding: 0 0.5rem;
        font-size: 0.875rem;
    }

    body.mac-landing .planes-tabs__note {
        margin-top: 1.5rem;
        padding: 0.75rem;
        font-size: 0.8125rem;
    }

    body.mac-landing .contact__form-wrapper {
        padding: 1.5rem;
    }

    body.mac-landing .newsletter {
        padding: 3rem 1rem;
    }

    body.mac-landing .newsletter__title {
        font-size: 1.6rem;
    }

    body.mac-landing .newsletter__description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body.mac-landing .pricing {
        padding: 2rem 0.5rem;
    }

    body.mac-landing .pricing__grid {
        padding-left: 0;
        padding-right: 0;
    }

    body.mac-landing .pricing__card {
        padding: 1.25rem 1rem;
        border-radius: 16px;
    }

    body.mac-landing .pricing__name {
        font-size: 1.35rem;
    }

    body.mac-landing .pricing__amount {
        font-size: 2.25rem;
    }

    body.mac-landing .pricing__empty {
        padding: 2rem 1rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    body.mac-landing .pricing__empty-text {
        font-size: 1rem;
    }

    body.mac-landing .pricing__empty-sub {
        font-size: 0.875rem;
    }

    body.mac-landing .planes-tabs__label {
        font-size: 0.7rem;
    }

    body.mac-landing .planes-tabs__segmented .planes-tabs__btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    body.mac-landing .planes-tabs__segmented--billing .planes-tabs__btn {
        padding: 0.45rem 0.65rem;
        font-size: 0.8125rem;
    }

    body.mac-landing .contact {
        padding: 2rem 0.5rem !important;
    }

    body.mac-landing .contact__form-wrapper {
        padding: 1.25rem;
    }

    body.mac-landing .newsletter {
        padding: 2rem 0.75rem;
    }

    body.mac-landing .newsletter__title {
        font-size: 1.4rem;
    }

    body.mac-landing .newsletter__description {
        font-size: 0.9375rem;
    }

    body.mac-landing .newsletter__input-group {
        max-width: 100%;
        padding: 0 0.5rem;
    }
}

@media (max-width: 360px) {
    body.mac-landing .hero__title {
        font-size: 1.35rem;
    }

    body.mac-landing .section__title {
        font-size: 1.25rem;
    }

    body.mac-landing .pricing__amount {
        font-size: 2rem;
    }
}
