/* =====================================================
   RideNow - Estilos Principales
   ===================================================== */

/* Variables CSS */
:root {
    --primary-color: #4ade80;
    --primary-dark: #22c55e;
    --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__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: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

.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, #f0fdf4 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(34, 197, 94, 0.6) 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(34, 197, 94, 0.06) 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(34, 197, 94, 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: 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(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    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, #ecfdf5 0%, #f0fdf4 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(74, 222, 128, 0.12) 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(34, 197, 94, 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(74, 222, 128, 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-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(74, 222, 128, 0.18);
}

.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, #22c55e 0%, #16a34a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.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);
}

.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: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.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__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-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;
    }
}

/* =====================================================
   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: #16a34a;
    font-weight: 500;
}
