/* ============================================
   REGOEM 2.1 - LPS PERÚ
   Hoja de estilos unificada y corregida
   ============================================ */

/* ---------- 1. VARIABLES Y RESET ---------- */
:root {
    --dark-blue: #0a2e5c;
    --light-blue: #4a90e2;
    --orange: #f39c12;
    --green: #27ae60;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ---------- SCROLL SUAVE Y COMPENSACIÓN DE HEADER ---------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Header sticky para que siempre sea visible */
header {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ---------- 2. BASE ---------- */
body {
    background-color: #ffffff;
    color: var(--dark-gray);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ---------- 3. HEADER ---------- */
header {
    background: linear-gradient(135deg, var(--dark-blue), #1a3a7a);
    color: white;
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--light-blue);
}

/* ---------- 4. HERO ---------- */
.hero {
    background-image: linear-gradient(135deg, var(--dark-blue), #051C4A);
    color: #fff;
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* ---------- 5. SECTIONS & TITLES ---------- */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-blue);
    font-size: 2.2rem;
    position: relative;
}

/* LÍNEA SEPARADORA ELIMINADA */

/* ---------- 6. FEATURES ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid var(--light-blue);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.feature-card h3 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-card h3 i {
    color: var(--orange);
}

/* ---------- 7. DOWNLOAD (página principal) ---------- */
.download-section {
    background: var(--light-gray);
    padding: 5rem 0;
    text-align: center;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-width: 220px;
    background: white;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: 3px solid transparent;
    cursor: pointer;
}

.download-btn:hover {
    transform: translateY(-8px);
    border-color: var(--light-blue);
}

.download-btn.demo {
    background: linear-gradient(135deg, var(--orange), #E67E22);
    color: white;
}

.download-btn.license {
    background: linear-gradient(135deg, var(--green), #2ecc71);
    color: white;
}

.download-btn i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.download-btn h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.support-btn {
    background: var(--dark-blue);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.support-btn:hover {
    background: var(--light-blue);
}

/* ---------- 8. SPECIFICATIONS ---------- */
.specifications {
    background: white;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.spec-item {
    text-align: center;
    padding: 2rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: border-color 0.3s;
}

.spec-item:hover {
    border-color: var(--light-blue);
}

.spec-item i {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

/* ---------- 9. VERSIONES ---------- */
.versions {
    background: var(--light-gray);
}

.versions-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.versions-table th {
    background: var(--dark-blue);
    color: white;
    padding: 0.5rem;
    text-align: left;
}

.versions-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #e9ecef;
}

.versions-table tr:last-child td {
    border-bottom: none;
}

.versions-table tr:hover {
    background: #f8f9fa;
}

.icon-link {
    text-decoration: none;
    color: inherit;
}

.icon-link i {
    font-size: 18px;
    margin-right: 10px;
}

.download-estado {
    font-weight: bold;
    color: #02CF62;
}
/* ---------- AJUSTE DE TABLA ---------- */

/* Ancho fijo para la columna de acciones (última columna) */
.versions-table th:last-child,
.versions-table td:last-child {
    width: 180px;
    min-width: 180px;
    text-align: right;            /* ← Alinea contenido a la derecha */
}

/* Ajuste general de la tabla */
.versions-table {
    table-layout: fixed;          /* ← Columnas de ancho fijo */
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .actions-cell {
        gap: 6px;
    }
    .btn-version {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    .versions-table th:last-child,
    .versions-table td:last-child {
        width: 160px;
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .actions-cell {
        flex-direction: column;   /* ← En móviles muy pequeños, apilar */
        gap: 6px;
    }
    .btn-version {
        width: 100%;
        padding: 8px 12px;
    }
}

/* ---------- 10. FOOTER ---------- */
footer {
    background: var(--dark-blue);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--light-blue);
}

.footer-section p,
.footer-section li {
    margin-bottom: 0.5rem;
    color: #cbd2e1;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #cbd2e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--light-blue);
}

.copyright {
    text-align: center;
    padding-top: 0.1rem;
    color: #8a94a8;
    font-size: 14px;
}

/* ============================================
   11. MODALES BASE
   ============================================ */

/* Overlay compartido por modales y popups */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* Modal de soporte (estructura alternativa) */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 0.2rem;
}

.modal.active {
    display: flex;
}

/* ============================================
   12. MODAL DE SOPORTE
   ============================================ */
.modal > .modal-content {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalAppear 0.4s ease;
}

.titulo-asistencia {
    display: flex;
    color: var(--dark-blue);
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* Formulario soporte */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 0.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
}

.form-group label {
    margin-bottom: 0.2rem;
    color: var(--dark-blue);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--light-blue);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 25px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.modal-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-cancel {
    background-color: #d9534f;
    color: white;
}

.btn-cancel:hover {
    background-color: #c9302c;
}

.submit-btn {
    background-color: #007bff;
    color: white;
}

.submit-btn:hover {
    background: #003482;
}

/* ============================================
   13. MODAL DE SUSCRIPCIÓN
   ============================================ */
.subscription-modal {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    padding: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transform: translateY(-30px) scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(181, 93, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .subscription-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Efecto de brillo */
.modal-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(181, 93, 0, 0.1) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Contenido interno del modal de suscripción */
.subscription-modal .modal-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Scrollbar personalizada */
.subscription-modal .modal-content::-webkit-scrollbar {
    width: 5px;
}
.subscription-modal .modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}
.subscription-modal .modal-content::-webkit-scrollbar-thumb {
    background: #FF9500;
    border-radius: 10px;
}

/* Encabezado */
.subscription-modal .modal-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    flex-shrink: 0;
}

.subscription-modal .modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 2px;
    background: linear-gradient(to right, transparent, #FFA600, transparent);
    border-radius: 2px;
}

.subscription-modal .modal-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #FFA600 0%, #DE9300 100%);
    border-radius: 15px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.subscription-modal .modal-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    animation: shine 3s infinite linear;
}

.subscription-modal .modal-title {
    color: var(--dark-blue);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.subscription-modal .modal-subtitle {
    color: #666;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.4;
}

/* Formulario suscripción */
.subscription-modal .form-group {
    margin-bottom: 20px;
    position: relative;
    flex-shrink: 0;
}

.subscription-modal .form-input {
    width: 100%;
    padding: 16px 16px 16px 45px;
    border: 1px solid #707070;
    border-radius: 10px;
    font-size: 15px;
    color: #0F0F0F;
    transition: all 0.3s ease;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    font-weight: 500;
    height: 52px;
}

.subscription-modal .form-input:focus {
    border-color: #00b894;
    box-shadow: 0 0 0 2px rgba(0, 184, 148, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.subscription-modal .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.subscription-modal .input-icon {
    position: absolute;
    left: 15px;
    color: #FFC57A;
    font-size: 18px;
    z-index: 3;
}

.subscription-modal .floating-label {
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 12px;
    color: white;
    font-weight: 600;
    pointer-events: none;
    background: #FF9000;
    padding: 2px 8px;
    z-index: 3;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 8px;
}

/* Términos suscripción */
.subscription-modal .terms-section {
    margin: 1rem 0;
}

.subscription-modal .terms-group {
    margin: 20px 0 25px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid #F28602;
    flex-shrink: 0;
}

.terms-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    cursor: pointer;
    position: relative;
    appearance: none;
    background: rgba(0,0,0,0.05);
    border: 2px solid #4a5568;
    border-radius: 5px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.terms-checkbox:checked {
    background: #FFB600;
    border-color: #FFB600;
}

.terms-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.terms-label {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.4;
}

.terms-link {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px dotted var(--light-blue);
    padding-bottom: 1px;
}

.terms-link:hover {
    text-decoration: underline;
    border-bottom-style: solid;
}

/* Botones suscripción */
.subscription-modal .modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.subscription-modal .download-btn {
    flex: 2;
    background: linear-gradient(135deg, #FFA600 0%, #DE9300 100%);
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(255, 184, 111, 0.3);
    min-height: 50px;
    text-decoration: none;
}

.subscription-modal .download-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 184, 111, 0.4);
}

.subscription-modal .download-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.subscription-modal .cancel-btn {
    flex: 1;
    background: #e9ecef;
    color: #555;
    border: 2px solid #FFB600;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.subscription-modal .cancel-btn:hover {
    background: #dee2e6;
    border-color: #FFAE00;
    color: #753B00;
}

/* Validación suscripción */
.subscription-modal .error-message {
    font-size: 12px;
    margin-top: 8px;
    padding: 8px;
    display: none;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(-5px);
}

.subscription-modal .invalid .error-message {
    display: flex;
    animation: slideDown 0.3s ease forwards;
}

.subscription-modal .valid .error-message {
    display: flex;
    color: #27ae60;
    animation: slideDown 0.3s ease forwards;
}

.input-error {
    border-color: #ff6b6b !important;
    background: rgba(255, 107, 107, 0.05) !important;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.1) !important;
}

.input-success {
    border-color: #00b894 !important;
    background: rgba(0, 184, 148, 0.05) !important;
}

.validation-icon {
    position: absolute;
    right: 12px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.valid .validation-icon {
    opacity: 1;
    color: #27ae60;
}

.invalid .validation-icon {
    opacity: 1;
    color: #d9534f;
}

/* Cerrar modal suscripción */
.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
    border: 1px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.close-modal-btn:hover {
    background: #ff6b6b;
    color: white;
    transform: rotate(90deg);
    border-color: #ff6b6b;
}

.security-note {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin-top: 1rem;
}

/* ============================================
   14. POPUPS
   ============================================ */
.modal-popup {
    background: #fff;
    width: 90%;
    max-width: 500px;
    padding: 40px 30px;
    text-align: center;
    border-radius: 20px;
    animation: popupScale 0.45s ease;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
}

/* Barra decorativa superior */
.modal-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

#downloadPopup .modal-popup::before,
#solSoporte .modal-popup::before {
    background: linear-gradient(to right, #00b09b, #96c93d);
}

.work-popup .modal-popup::before,
#wAlerta .modal-popup::before {
    background: linear-gradient(to right, #f093fb, #f5576c);
}

/* Títulos y mensajes de popup */
.modal-popup .modal-title {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
}

.modal-message {
    color: #7f8c8d;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Checkmark elaborado (descarga exitosa) */
.checkmark-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.checkmark-circle .circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b09b, #96c93d);
    animation: pulse 2s infinite;
}

.checkmark-circle .checkmark {
    position: absolute;
    width: 50px;
    height: 30px;
    border-left: 8px solid white;
    border-bottom: 8px solid white;
    transform: rotate(-45deg);
    top: 30px;
    left: 25px;
    opacity: 0;
    animation: checkmark 0.5s 0.5s forwards;
}

/* Checkmark simplificado (solicitud enviada) */
#solSoporte .checkmark-circle {
    width: 70px;
    height: 70px;
    background: #0d6efd;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    animation: none;
}

#solSoporte .checkmark-circle .circle,
#solSoporte .checkmark-circle .checkmark {
    display: none;
}

/* Tools icon (trabajo en progreso / alerta) */
.tools-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tools-icon .icon-background {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    animation: pulse-orange 2s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tools-icon .icon-background i {
    font-size: 60px;
    color: white;
}

/* Icono de herramientas animado */
.work-popup .tools-icon .icon-background i {
    animation: wrench-rotate 3s infinite ease-in-out;
}

/* Botón cerrar de popup */
.close-button {
    background: linear-gradient(to right, #00b09b, #96c93d);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 176, 155, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.close-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 176, 155, 0.4);
}

.work-popup .close-button,
#wAlerta .close-button {
    background: linear-gradient(to right, #f093fb, #f5576c);
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.3);
}

.work-popup .close-button:hover,
#wAlerta .close-button:hover {
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
}

/* ============================================
   15. ANIMACIONES
   ============================================ */
@keyframes modalAppear {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popupScale {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes slideDown {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 176, 155, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(0, 176, 155, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 176, 155, 0); }
}

@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(245, 87, 108, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(245, 87, 108, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 87, 108, 0); }
}

@keyframes checkmark {
    0% { opacity: 0; transform: rotate(-45deg) scale(0); }
    100% { opacity: 1; transform: rotate(-45deg) scale(1); }
}

@keyframes wrench-rotate {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(30deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-30deg); }
    100% { transform: rotate(0deg); }
}

.error-shake {
    animation: shake 0.5s ease;
}

/* ============================================
   16. RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .modal > .modal-content {
        padding: 1.5rem;
    }
    .modal-popup {
        padding: 30px 20px;
        max-width: 90%;
    }
    .modal-popup .modal-title {
        font-size: 24px;
    }
    .checkmark-circle,
    .tools-icon {
        width: 80px;
        height: 80px;
    }
    .checkmark-circle .checkmark {
        width: 40px;
        height: 24px;
        border-width: 6px;
        top: 24px;
        left: 20px;
    }
    .tools-icon .icon-background i {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    .modal-actions button {
        width: 100%;
        justify-content: center;
    }
    .subscription-modal .modal-content {
        padding: 25px 20px;
    }
    .subscription-modal .modal-logo {
        width: 60px;
        height: 60px;
        font-size: 26px;
        border-radius: 12px;
        margin-bottom: 15px;
    }
    .subscription-modal .modal-title {
        font-size: 20px;
    }
    .subscription-modal .modal-subtitle {
        font-size: 13px;
    }
    .subscription-modal .form-input {
        padding: 14px 14px 14px 40px;
        height: 48px;
        font-size: 14px;
    }
    .subscription-modal .input-icon {
        font-size: 16px;
    }
    .subscription-modal .terms-group {
        padding: 12px;
        gap: 10px;
    }
    .terms-label {
        font-size: 12px;
    }
    .subscription-modal .modal-buttons {
        flex-direction: column;
        gap: 12px;
    }
    .subscription-modal .download-btn,
    .subscription-modal .cancel-btn {
        width: 100%;
        padding: 14px;
        font-size: 14px;
    }
    .close-modal-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
        top: 12px;
        right: 12px;
    }
}

@media (max-height: 700px) {
    .subscription-modal {
        max-height: 85vh;
    }
    .subscription-modal .modal-content {
        padding: 25px;
    }
    .subscription-modal .modal-header {
        margin-bottom: 20px;
    }
    .subscription-modal .modal-logo {
        width: 60px;
        height: 60px;
        font-size: 26px;
        margin-bottom: 15px;
    }
    .subscription-modal .form-group {
        margin-bottom: 15px;
    }
    .subscription-modal .terms-group {
        margin: 15px 0 20px;
    }
}

@media (max-height: 600px) {
    .subscription-modal {
        max-height: 80vh;
    }
    .subscription-modal .modal-content {
        padding: 20px;
    }
    .subscription-modal .modal-title {
        font-size: 20px;
    }
    .subscription-modal .modal-subtitle {
        font-size: 13px;
    }
    .subscription-modal .form-input {
        padding: 12px 12px 12px 35px;
        height: 45px;
        font-size: 14px;
    }
}

/* ---------- MODAL DE SOPORTE - ESTILOS ADICIONALES ---------- */

	/* Subtítulo del header del modal */
	.modal-subtitle {
		text-align: center;
		color: #666;
		margin-bottom: 1rem;
		font-size: 0.9rem;
	}

	/* Títulos de sección más compactos */
	.section-heading {
		color: var(--dark-blue);
		margin-bottom: 0.5rem;
		border-bottom: 2px solid var(--light-blue);
		padding-bottom: 0.3rem;
		font-size: 1rem;
		font-weight: 600;
	}

	/* Indicador requerido */
	.required {
		color: #d9534f;
	}

	/* Contador de caracteres */
	.char-counter {
		float: right;
		font-size: 0.75rem;
		color: #999;
		font-weight: 400;
	}

	/* Filas personalizables - AJUSTA LOS PORCENTAJES AQUÍ */
	.custom-row {
		display: grid;
		grid-template-columns: 60% 40%; /* ← Cambia estos valores */
		gap: 15px;
		margin-bottom: 0.5rem;
	}

	/* Reducir espacio entre título y campos */
	.form-section {
		margin-bottom: 0.75rem;
	}

	.form-group {
		margin-bottom: 0.6rem;
	}

	.form-group label {
		margin-bottom: 0.15rem;
		font-size: 0.88rem;
		color: var(--dark-blue);
		font-weight: 500;
	}

	/* Inputs más compactos */
	.form-group input,
	.form-group textarea,
	.form-group select {
		padding: 0.45rem 0.6rem;
		font-size: 0.9rem;
	}

	/* Textarea más compacta */
	.form-group textarea {
		resize: vertical;
		min-height: 60px;
	}

	/* Texto de privacidad */
	.privacy-text {
		text-align: center;
		margin-top: 0.75rem;
		font-size: 0.75rem;
		color: #999;
	}

	/* Responsive: en móviles, volver a una sola columna */
	@media (max-width: 768px) {
		.custom-row,
		.form-row {
			grid-template-columns: 1fr !important;
		}
	}
	
	
	/* ---------- BOTONES DE VERSIÓN (estilo download-btn reducido) ---------- */
	/* ---------- BOTONES DE VERSIÓN (misma fila) ---------- */
	.actions-cell {
		display: flex;
		flex-direction: row;          /* ← Horizontal, misma fila */
		gap: 8px;
		flex-wrap: nowrap;            /* ← NO salta a nueva línea */
		align-items: center;
		justify-content: flex-end;    /* ← Alineados a la derecha */
		white-space: nowrap;          /* ← Evita que el texto se parta */
	}
	
	.btn-version {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 5px;
		padding: 6px 12px;
		border: none;
		border-radius: 6px;
		font-size: 0.78rem;
		font-weight: 500;
		text-decoration: none;
		cursor: pointer;
		transition: all 0.3s ease;
		border: 2px solid transparent;
		white-space: nowrap;
		min-width: auto;
		flex-shrink: 0;               /* ← NO se encogen */
	}

	/* Botón Descargar - Azul institucional */
	.btn-version.download {
		background: linear-gradient(135deg, var(--dark-blue), #1a3a7a);
		color: white;
		box-shadow: 0 2px 6px rgba(10, 46, 92, 0.3);
	}

	.btn-version.download:hover {
		transform: translateY(-2px);
		box-shadow: 0 4px 12px rgba(10, 46, 92, 0.4);
		border-color: var(--light-blue);
	}

	/* Botón Guía - Naranja institucional */
	.btn-version.guide {
		background: linear-gradient(135deg, var(--orange), #E67E22);
		color: white;
		box-shadow: 0 2px 6px rgba(243, 156, 18, 0.3);
	}

	.btn-version.guide:hover {
		transform: translateY(-2px);
		box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
		border-color: var(--light-blue);
	}

	.btn-version i {
		font-size: 0.8rem;
	}

	/* Responsive: en móviles, apilar */
	@media (max-width: 480px) {
		.actions-cell {
			flex-direction: column;
			gap: 6px;
		}
		.btn-version {
			width: 100%;
			padding: 10px 14px;
		}
	}
	
	/* ---------- ETIQUETA "NUEVO" CON ONDA EXPANSIVA ---------- */

	.version-cell {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.version-number {
		font-weight: 700;
		color: var(--dark-blue);
		font-size: 1rem;
	}

	/* Contenedor del badge */
	.badge-nuevo {
		position: relative;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 3px 10px;
		background: linear-gradient(135deg, var(--green), #2ecc71);
		color: white;
		font-size: 0.7rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.8px;
		border-radius: 12px;
		box-shadow: 0 2px 8px rgba(39, 174, 96, 0.4);
		overflow: visible;
	}

	/* Texto del badge */
	.badge-text {
		position: relative;
		z-index: 2;
	}

	/* Ondas expansivas */
	.badge-nuevo .ripple {
		position: absolute;
		top: 50%;
		left: 50%;
		width: 100%;
		height: 100%;
		border-radius: 12px;
		background: var(--green);
		transform: translate(-50%, -50%) scale(1);
		opacity: 0.6;
		z-index: 1;
		animation: ripple-expand 2s infinite ease-out;
	}

	.badge-nuevo .ripple:nth-child(2) {
		animation-delay: 1s;
	}

	@keyframes ripple-expand {
		0% {
			transform: translate(-50%, -50%) scale(1);
			opacity: 0.6;
		}
		100% {
			transform: translate(-50%, -50%) scale(2.5);
			opacity: 0;
		}
	}

	/* Efecto hover: brillo extra */
	.badge-nuevo:hover {
		box-shadow: 0 4px 15px rgba(39, 174, 96, 0.6);
		transform: scale(1.05);
		transition: transform 0.2s ease;
	}