:root {
    --primary-dark: #0a0f1a;
    --primary-blue: #3b82f6;
    --primary-light: #eff6ff;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-grey: #64748b;
    --text-light: #94a3b8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
    --shadow-blue: 0 10px 40px rgba(59, 130, 246, 0.2);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
    padding-top: 0;
    margin-top: 0;
}

img, iframe, video, svg, .container, .form-card, .soporte-grid {
    max-width: 100% !important;
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 32px; width: 100%; box-sizing: border-box; }

.text-center { text-align: center; }
.text-blue { color: var(--primary-blue); }

.btn-primary {
    background: var(--primary-blue);
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    transition: var(--transition);
    box-shadow: var(--shadow-blue);
    border: none;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.35);
    background: #2563eb;
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    transition: var(--transition);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 5%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.05);
}

.navbar .logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.navbar .logo span { color: var(--primary-blue); }
.navbar .logo .logo-icon { width: 32px; height: 32px; }

.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.navbar .nav-links a {
    text-decoration: none;
    color: var(--text-grey);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar .nav-links a:hover { color: var(--text-dark); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ==================== HERO SOPORTE ==================== */
.hero-soporte {
    margin-top: 72px;
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 60px 0 80px;
    width: 100%;
}

.hero-soporte .hero-content { text-align: center; }

.hero-soporte .hero-content h1 {
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-dark);
}

.hero-soporte .hero-content p {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    color: var(--text-grey);
    margin: 28px auto 36px;
    line-height: 1.7;
    max-width: 600px;
}

.tag-hero {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-blue);
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

/* ==================== FORMULARIO - DISEÑO EN 2 COLUMNAS ==================== */
.soporte-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.form-card {
    background: white;
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

.form-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: #e2e8f0;
}

.form-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.form-card .form-subtitle {
    font-size: 0.85rem;
    color: var(--text-grey);
    margin-bottom: 32px;
}
.form-card .form-subtitle span { color: #ef4444; }

/* ==================== FILAS DEL FORMULARIO ==================== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 4px;
}

.form-row-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 4px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.form-group label span { color: #ef4444; }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%2364748b'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

.form-group input.input-error,
.form-group textarea.input-error,
.form-group select.input-error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
    animation: shake 0.5s ease;
}

.form-group input.input-valid,
.form-group textarea.input-valid,
.form-group select.input-valid {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

/* ==================== CAMPO DE ARCHIVOS ==================== */
.file-upload-group {
    position: relative;
}

.file-label {
    cursor: pointer;
    display: block;
    margin-bottom: 8px;
}

.file-label-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.file-label-text .file-max {
    font-weight: 400;
    color: var(--text-grey);
    font-size: 0.8rem;
}

.file-upload-container {
    position: relative;
}

.file-drop-zone {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.file-drop-zone:hover {
    border-color: var(--primary-blue);
    background: var(--primary-light);
}

.file-drop-zone.dragover {
    border-color: var(--primary-blue);
    background: var(--primary-light);
    transform: scale(1.02);
}

.file-drop-zone .file-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.file-drop-zone .file-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-blue);
}

.file-drop-zone .file-text {
    margin-bottom: 6px;
}

.file-drop-zone .file-main {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.file-drop-zone .file-sub {
    display: block;
    color: var(--text-grey);
    font-size: 0.85rem;
}

.file-drop-zone .file-formats {
    color: var(--text-grey);
    font-size: 0.75rem;
    margin-top: 6px;
}

.file-drop-zone .file-max-size {
    color: var(--text-grey);
    font-size: 0.7rem;
    margin-top: 2px;
}

/* ==================== LISTA DE ARCHIVOS ==================== */
.file-list {
    display: none;
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: white;
    border-radius: 8px;
    margin-bottom: 6px;
    border: 1px solid #f1f5f9;
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-item-icon {
    font-size: 1rem;
}

.file-item-name {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item-size {
    font-size: 0.75rem;
    color: var(--text-grey);
    margin-right: 6px;
}

.file-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    transition: all 0.3s ease;
    line-height: 1;
}

.file-item-remove:hover {
    transform: scale(1.2);
    color: #dc2626;
}

.file-total {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-grey);
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    margin-top: 6px;
}

.file-error {
    display: none;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fee2e2;
}

/* ==================== MODAL DE VALIDACIÓN ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
    background: white;
    border-radius: 24px;
    padding: 40px 36px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-icon {
    width: 72px;
    height: 72px;
    background: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.modal-icon svg { width: 36px; height: 36px; color: #ef4444; }

.modal h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.modal p {
    font-size: 0.95rem;
    color: var(--text-grey);
    line-height: 1.6;
    margin-bottom: 28px;
}

.modal-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: var(--shadow-blue);
}
.modal-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.35);
}

/* ==================== MODALES LEGALES ==================== */
.modal-overlay-legal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay-legal.active { opacity: 1; visibility: visible; }

.modal-legal {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
}
.modal-overlay-legal.active .modal-legal { transform: translateY(0) scale(1); }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-grey);
}
.modal-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}
.modal-close svg { width: 20px; height: 20px; }

.modal-content {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 8px;
}

.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
.modal-content::-webkit-scrollbar-thumb { background: var(--primary-blue); border-radius: 10px; }

.modal-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    margin-top: 24px;
}
.modal-content h4:first-child { margin-top: 0; }
.modal-content p { color: var(--text-grey); line-height: 1.7; font-size: 0.95rem; margin-bottom: 16px; }
.modal-content ul { color: var(--text-grey); line-height: 1.7; font-size: 0.95rem; padding-left: 20px; margin-bottom: 16px; }
.modal-content ul li { margin-bottom: 8px; }

.modal-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    text-align: right;
}
.modal-footer .btn-primary { padding: 12px 32px; font-size: 0.9rem; }

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 80px 0 40px;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer .logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.footer .logo span { color: var(--primary-blue); }
.footer .logo .logo-icon { width: 32px; height: 32px; }

.footer p { color: rgba(255, 255, 255, 0.4); line-height: 1.7; font-size: 0.95rem; }
.footer h4 { font-size: 1rem; margin-bottom: 20px; color: white; font-weight: 600; }

.footer a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
    font-size: 0.9rem;
}
.footer a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-bottom p { color: rgba(255, 255, 255, 0.25); font-size: 0.8rem; }

/* ==================== WHATSAPP FLOATING BUTTON ==================== */
.whatsapp-float {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 60px;
    height: 60px;
    background: rgba(37, 211, 102, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999 !important;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
    transform: scale(1.1);
    box-shadow: 0 8px 40px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon { width: 32px; height: 32px; transition: all 0.3s ease; }
.whatsapp-float:hover .whatsapp-icon { filter: brightness(10); }

.whatsapp-tooltip {
    display: none;
    position: absolute;
    right: 75px;
    background: #0f172a;
    color: white;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}
.whatsapp-float:hover .whatsapp-tooltip { display: block; opacity: 1; transform: translateX(0); }

/* ==================== RESPONSIVE - MEDIA QUERIES ==================== */

/* Tablets */
@media (max-width: 1024px) {
    .form-card { padding: 40px 32px; }
    .hero-soporte .hero-content { text-align: center; }
    .hero-soporte .hero-content p { margin: 28px auto 36px; }
}

/* ==================== MÓVILES ==================== */
@media (max-width: 768px) {
    .container { padding: 0 15px; width: 100%; }
    
    .navbar {
        position: fixed;
        top: 0;
        width: 100%;
        height: 72px;
        padding: 0 5%;
        margin: 0 !important;
        top: 0 !important;
    }
    
    .navbar .nav-links {
        display: none !important;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 20px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        z-index: 999;
    }
    
    .navbar .nav-links.active {
        display: flex !important;
        animation: slideDown 0.4s ease forwards;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .navbar .nav-links a { font-size: 1.1rem; color: var(--text-dark); }
    .menu-toggle { display: flex; }
    
    .hero-soporte {
        padding: 40px 0 60px;
        width: 100%;
        margin-top: 72px;
        padding-top: 10px;
    }
    .hero-soporte .hero-content h1 { font-size: 2.2rem; }
    
    .form-card { padding: 32px 24px; width: 100%; }
    .soporte-grid { gap: 0; width: 100%; }
    
    /* En móvil, las filas de 2 columnas pasan a 1 columna */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .file-drop-zone { padding: 24px 15px; }
    .file-drop-zone .file-icon svg { width: 24px; height: 24px; }
    .file-drop-zone .file-main { font-size: 0.9rem; }
    .file-drop-zone .file-sub { font-size: 0.8rem; }
    
    .footer { padding: 60px 0 30px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer .logo { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
    
    .whatsapp-float {
        bottom: 10px !important;
        right: 10px !important;
        width: 54px;
        height: 54px;
    }
    .whatsapp-icon { width: 28px; height: 28px; }
    .whatsapp-tooltip { display: none !important; }
}

@media (max-width: 480px) {
    .hero-soporte .hero-content h1 { font-size: 1.8rem; }
    .hero-soporte .hero-content p { font-size: 0.95rem; }
    .form-card { padding: 24px 16px; }
    .btn-primary, .btn-outline { padding: 14px 28px; font-size: 0.9rem; }
}