/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ICONOS EMOJI - SIEMPRE VISIBLES */
/* Los emojis Unicode funcionan sin dependencias externas */

/* REGLA GLOBAL PARA ELIMINAR PSEUDO-ELEMENTOS PROBLEMÁTICOS */
/* Eliminar elementos decorativos que aparecen fuera de lugar */
body *:not(.dashboard-container *):not(.complementos *):not(.rfc-service *):not(.pricing-card)::before,
body *:not(.dashboard-container *):not(.complementos *):not(.rfc-service *):not(.pricing-card)::after {
    display: none !important;
    content: none !important;
    background: none !important;
    border: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

:root {
    /* Colors */
    --primary-color: #31977f;
    --primary-dark: #2a7f6b;
    --primary-light: #4ba897;
    --secondary-color: #31977f;
    --accent-color: #31977f;
    /* Mejora de contraste */
    --text-primary: #222222; /* antes #323232 */
    --text-secondary: #555d64; /* antes #7f7f7f demasiado claro en fondo claro */
    --text-light: #6b7280; /* antes #9ca3af */
    --background: #ffffff;
    --background-light: #f9fafb;
    --background-dark: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    width: 100%;
    box-sizing: border-box;
}

/* Full width sections */
.hero,
.features,
.benefits,
.complementos,
.rfc-service,
.pricing,
.contact,
footer {
    width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.section-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
}

.btn-full {
    width: 100%;
}

/* Header */
.header {
    background-color: var(--background);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition);
    display: block;
}

/* Hero Section */
.hero {
    padding: 8rem 0 var(--spacing-2xl);
    background: linear-gradient(135deg, #f0f9f7 0%, #e6f4f1 100%);
    margin-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.highlight {
    color: var(--primary-color);
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.hero-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Dashboard Animation Styles */
.dashboard-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(49, 151, 127, 0.1);
    animation: slideInUp 1s ease-out;
    position: relative;
    overflow: hidden;
}

.dashboard-container.sending {
    animation: sendingPulse 0.8s ease-in-out;
}

.dashboard-container.disappearing {
    animation: fadeOutDown 1.5s ease-in forwards;
}

.dashboard-container.reappearing {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeOutDown {
    0% { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translateY(10px) scale(0.98);
    }
    100% { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95);
        visibility: hidden;
    }
}

@keyframes fadeInUp {
    0% { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95);
        visibility: visible;
    }
    50% {
        opacity: 0.5;
        transform: translateY(10px) scale(0.98);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.dashboard-title i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.dashboard-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    opacity: 0;
    transform: translateY(20px);
}

.animated-group {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Estado base forzado para reinicios controlados */
.animated-group.reinit-base {
    opacity: 0 !important;
    transform: translateY(18px) !important;
    animation: none !important;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
}

.input-field {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    min-height: 36px;
    display: flex;
    align-items: center;
    transition: border-color 0.3s ease;
}

.input-field:focus-within {
    border-color: var(--primary-color);
}

.typing-text {
    color: var(--text-primary);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    animation: typing 1.5s steps(40, end), blink 0.8s infinite;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.total-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(49, 151, 127, 0.1);
}

.total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.total-final {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
    border-top: 2px solid var(--primary-color);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.action-buttons {
    display: flex;
    justify-content: center;
}

.btn-dashboard {
    background: linear-gradient(45deg, var(--primary-color), #2d8a68);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 3px 10px rgba(49, 151, 127, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-dashboard:hover {
    transform: translateY(-2px);
    color: white;
}

.btn-dashboard.sending {
    animation: sendingEffect 0.8s ease-in-out;
}

.btn-dashboard.sent {
    background: linear-gradient(45deg, #10b981, #059669);
    animation: sentEffect 0.6s ease-out;
}

.spinning {
    animation: spin 1s linear infinite;
}

.success-message {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 2px solid #10b981;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transform: scale(0);
    animation: successPopIn 0.6s ease-out forwards;
}

.success-message.sending-out {
    animation: sendOut 1s ease-in-out forwards;
}

.success-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.success-content i {
    color: #10b981;
    font-size: 1.1rem;
}

.cfdi-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: #047857;
    margin-bottom: 1rem;
}

.dashboard-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-success {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(45deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(107, 114, 128, 0.4);
}

/* Dashboard Animations */
@keyframes slideInUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { border-color: var(--primary-color); }
    51%, 100% { border-color: transparent; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* RFC Search Styles */
.rfc-search-form {
    display: block;
}

.search-section {
    margin-bottom: 1.5rem;
}

.search-input {
    position: relative;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #31977f;
    opacity: 0.7;
}

.btn-search {
    background: linear-gradient(135deg, #31977f, #4ba897);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(49, 151, 127, 0.3);
}

.btn-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(49, 151, 127, 0.4);
}

.search-results {
    margin-top: 1.5rem;
}

.result-item {
    margin-bottom: 1rem;
}

.result-field {
    position: relative;
    background: rgba(49, 151, 127, 0.1);
    border: 2px solid #31977f;
    border-radius: 8px;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 0.85rem;
    color: #323232;
    font-weight: 500;
}

.result-check {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #31977f;
    font-size: 1.1rem;
    animation: checkPop 0.5s ease-out;
}

@keyframes checkPop {
    0% { 
        transform: translateY(-50%) scale(0);
        opacity: 0;
    }
    50% { 
        transform: translateY(-50%) scale(1.3);
        opacity: 1;
    }
    100% { 
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

.search-success {
    background: linear-gradient(135deg, #31977f, #4ba897);
    color: white;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(49, 151, 127, 0.3);
}

.success-icon {
    font-size: 1.2rem;
    animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
    0% { transform: scale(0) rotate(-180deg); }
    50% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.invoice-form {
    display: none;
}

.action-section {
    margin-top: 1.5rem;
    text-align: center;
}

.btn-dashboard {
    background: linear-gradient(135deg, #31977f, #4ba897);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    box-shadow: 0 4px 12px rgba(49, 151, 127, 0.3);
}

.btn-dashboard:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(49, 151, 127, 0.4);
}

.btn-dashboard.sending {
    animation: sendingPulse 1s ease-in-out infinite;
}

.btn-dashboard.sent {
    background: linear-gradient(135deg, #4ba897, #31977f);
    animation: sentEffect 0.5s ease-out;
}

.success-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
    animation: successPopIn 0.6s ease-out;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.success-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.success-content i {
    font-size: 1.2rem;
}

.invoice-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.invoice-details small {
    font-size: 0.75rem;
}

.invoice-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-config,
.btn-session {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-config:hover,
.btn-session:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.success-message.sending-out {
    animation: sendOut 1s ease-in forwards;
}

/* Dashboard transition animations */
.dashboard-transition {
    animation: fadeOutUp 0.5s ease-in forwards;
}

@keyframes fadeOutUp {
    0% { 
        opacity: 1; 
        transform: translateY(0);
    }
    100% { 
        opacity: 0; 
        transform: translateY(-20px);
    }
}

.dashboard-fade-in {
    animation: fadeInDown 0.5s ease-out forwards;
}

@keyframes fadeInDown {
    0% { 
        opacity: 0; 
        transform: translateY(-20px);
        display: block;
    }
    100% { 
        opacity: 1; 
        transform: translateY(0);
        display: block;
    }
}

/* Download Form Styles */
.download-form {
    opacity: 0;
    transform: translateY(20px);
    border-top: 3px solid var(--primary-color);
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    position: relative;
}

.download-form::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #4a9eff, var(--primary-color));
    animation: shimmer 2s ease-in-out infinite;
    z-index: 1;
    /* Limitar solo al dashboard */
    visibility: hidden;
}

.dashboard-container .download-form::before {
    visibility: visible;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.phase-separator {
    display: flex;
    align-items: center;
    margin: 1rem 0 2rem 0;
    padding: 1rem 0;
    opacity: 0;
    animation: fadeInScale 0.6s ease-out forwards;
    animation-delay: 0.2s;
}

.separator-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 1px;
}

.separator-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 1rem;
    box-shadow: 0 4px 12px rgba(49, 151, 127, 0.3);
    animation: pulse 2s infinite;
}

.separator-text i {
    font-size: 1rem;
}

.download-form.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
    position: relative;
    z-index: 20;
}

/* Ensure previous forms are completely hidden when download is active */
.download-form.active ~ .rfc-search-form,
.download-form.active ~ .invoice-form,
.dashboard-container:has(.download-form.active) .rfc-search,
.dashboard-container:has(.download-form.active) .invoice-form {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Download-only mode - hide everything except download form */
.dashboard-container.download-only-mode .rfc-search,
.dashboard-container.download-only-mode .invoice-form,
.dashboard-container.download-only-mode .rfc-search-form {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.dashboard-container.download-only-mode .download-form {
    display: block !important;
    visibility: visible !important;
    position: relative;
    z-index: 100;
}

.dashboard-container.download-only-mode .download-form .animated-group {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    animation: none !important;
}

.dashboard-container.download-only-mode .download-stats,
.dashboard-container.download-only-mode .download-options,
.dashboard-container.download-only-mode .download-progress,
.dashboard-container.download-only-mode .download-success {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.download-header {
    text-align: center;
    margin-bottom: 2rem;
}

.download-header .download-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #4a9eff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: pulse 2s infinite;
}

.download-header .download-icon i {
    font-size: 24px;
    color: white;
}

.download-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.download-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Download Scanner Styles */
.download-scanner {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e0f2fe;
}

.scanner-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.scanner-header i {
    animation: scanPulse 2s ease-in-out infinite;
}

@keyframes scanPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

.scanner-bar {
    height: 6px;
    background: #e0f2fe;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.scanner-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #4a9eff, var(--primary-color));
    border-radius: 3px;
    width: 0%;
    animation: scanProgress 3s ease-in-out forwards;
}

@keyframes scanProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.download-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    border: 2px solid #f1f5f9;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(49, 151, 127, 0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: iconFloat 3s ease-in-out infinite;
}

.xml-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.pdf-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

.stat-icon i {
    color: white;
    font-size: 20px;
}

.stat-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stat-size {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #10b981;
}

.stat-status i {
    font-size: 1.25rem;
    animation: checkBounce 2s ease-in-out infinite;
}

@keyframes checkBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.stat-status span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-summary {
    background: linear-gradient(135deg, var(--primary-color), #4a9eff);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    animation: summaryGlow 3s ease-in-out infinite;
}

@keyframes summaryGlow {
    0%, 100% { box-shadow: 0 4px 20px rgba(49, 151, 127, 0.3); }
    50% { box-shadow: 0 8px 30px rgba(49, 151, 127, 0.5); }
}

.summary-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-icon i {
    font-size: 20px;
    animation: archiveSpin 4s linear infinite;
}

@keyframes archiveSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.summary-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.total-files {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.total-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.total-weight {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.8;
}

.download-options {
    margin-bottom: 2rem;
}

.download-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.download-option:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.download-option .option-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.download-option .option-icon i {
    color: white;
    font-size: 18px;
}

.download-option .option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.download-option .option-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.download-option .option-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.download-option .option-size {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

.download-option .option-status {
    color: #10b981;
    font-size: 18px;
}

.download-progress {
    margin-bottom: 2rem;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #f1f5f9;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.progress-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), #4a9eff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-icon i {
    color: white;
    font-size: 16px;
}

.progress-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-status {
    font-weight: 600;
    color: var(--text-primary);
}

.progress-percent {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.progress-bar-container {
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #4a9eff, #10b981);
    border-radius: 4px;
    width: 0%;
    animation: progressFillAdvanced 6s ease-out forwards;
    animation-delay: 2.5s;
    position: relative;
}

@keyframes progressFillAdvanced {
    0% { width: 0%; }
    20% { width: 15%; }
    40% { width: 35%; }
    60% { width: 55%; }
    80% { width: 80%; }
    100% { width: 100%; }
}

.progress-glow {
    position: absolute;
    top: 0;
    left: -50px;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: progressGlow 2s ease-in-out infinite;
    animation-delay: 3s;
}

@keyframes progressGlow {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(450px); }
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.step-indicator.active {
    opacity: 1;
    transform: scale(1.1);
}

.step-indicator i {
    width: 32px;
    height: 32px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #64748b;
    background: white;
    transition: all 0.3s ease;
}

.step-indicator.active i {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    animation: stepPulse 1s ease-in-out infinite;
}

@keyframes stepPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.step-indicator span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
}

.step-indicator.active span {
    color: var(--primary-color);
}

.btn-download {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-download:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.btn-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-icon i {
    font-size: 18px;
    animation: downloadBounce 2s ease-in-out infinite;
}

@keyframes downloadBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
    60% { transform: translateY(-2px); }
}

.btn-content {
    flex: 1;
    text-align: left;
}

.btn-text {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.btn-subtext {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
}

.btn-loader {
    flex-shrink: 0;
}

.loader-dots {
    display: flex;
    gap: 4px;
}

.loader-dots span {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: loaderPulse 1.4s ease-in-out infinite both;
}

.loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.loader-dots span:nth-child(2) { animation-delay: -0.16s; }
.loader-dots span:nth-child(3) { animation-delay: 0; }

@keyframes loaderPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.download-success {
    text-align: center;
    opacity: 0;
    animation: fadeInScale 0.8s ease-out forwards;
    animation-delay: 5.5s;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid #f1f5f9;
}

.success-animation {
    position: relative;
    margin-bottom: 2rem;
}

.success-checkmark {
    position: relative;
    z-index: 2;
}

.success-checkmark i {
    font-size: 4rem;
    color: #10b981;
    animation: checkmarkBounce 0.6s ease-out;
}

@keyframes checkmarkBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.success-particles span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: particleExplode 1s ease-out forwards;
}

.success-particles span:nth-child(1) {
    animation-delay: 0.1s;
    transform: rotate(0deg) translateX(40px);
}

.success-particles span:nth-child(2) {
    animation-delay: 0.2s;
    transform: rotate(72deg) translateX(40px);
}

.success-particles span:nth-child(3) {
    animation-delay: 0.3s;
    transform: rotate(144deg) translateX(40px);
}

.success-particles span:nth-child(4) {
    animation-delay: 0.4s;
    transform: rotate(216deg) translateX(40px);
}

.success-particles span:nth-child(5) {
    animation-delay: 0.5s;
    transform: rotate(288deg) translateX(40px);
}

@keyframes particleExplode {
    0% {
        opacity: 1;
        transform: scale(0) translateX(0);
    }
    50% {
        opacity: 1;
        transform: scale(1) translateX(30px);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) translateX(50px);
    }
}

.success-content h4 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.success-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.download-package {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.package-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #4a9eff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: packageFloat 3s ease-in-out infinite;
}

@keyframes packageFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(2deg); }
}

.package-icon i {
    font-size: 24px;
    color: white;
}

.package-info {
    flex: 1;
    text-align: left;
}

.package-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.package-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.package-size {
    font-weight: 600;
    color: var(--primary-color);
}

.package-separator {
    opacity: 0.5;
}

.package-breakdown {
    display: flex;
    gap: 1rem;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.breakdown-item i {
    color: var(--primary-color);
}

.final-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-primary-download {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-download:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: btnGlow 2s ease-in-out infinite;
}

@keyframes btnGlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

.btn-secondary {
    background: #f8fafc;
    color: var(--text-primary);
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

@keyframes sendingPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); box-shadow: 0 20px 50px rgba(49, 151, 127, 0.2); }
    100% { transform: scale(1); }
}

@keyframes sendingEffect {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-3px); }
    100% { transform: translateX(0); }
}

@keyframes sentEffect {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes successPopIn {
    0% { 
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }
    50% { 
        transform: scale(1.1) rotate(5deg);
        opacity: 1;
    }
    100% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes sendOut {
    0% { 
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translateY(-20px) scale(1.05);
        opacity: 0.8;
    }
    100% { 
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }
}

@keyframes fadeOutUp {
    0% { 
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translateY(-30px) scale(0.95);
        opacity: 0.5;
    }
    100% { 
        transform: translateY(-80px) scale(0.8);
        opacity: 0;
    }
}

.dashboard-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* Section Spacing */
section {
    padding: var(--spacing-2xl) 0;
    width: 100%;
    box-sizing: border-box;
}

.section-header {
    margin-bottom: var(--spacing-2xl);
}

/* Features Section */
.features {
    background-color: var(--background-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background-color: var(--background);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-xl);
}

.feature-title {
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    color: var(--text-secondary);
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.benefit-card {
    background-color: var(--background);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.benefit-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    color: white;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-lg);
}

.benefit-title {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.benefit-description {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* Complementos Section */
.complementos {
    /* Espaciado ampliado para que no quede pegado al borde previo */
    padding: 6rem 0 5.5rem 0; /* antes: var(--spacing-section) 0 */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    margin-top: 4rem; /* separa respecto a la sección anterior */
}

.complementos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    z-index: -1;
    /* Asegurar que solo aparezca en la sección complementos */
}

.complementos {
    isolation: isolate;
}

.complementos-content {
    text-align: center;
}

.complementos-header {
    margin-bottom: 4rem;
}

.complementos-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), #2d8a68);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(49, 151, 127, 0.3);
}

.complementos-badge i {
    font-size: 1.1em;
}

.complementos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.complemento-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(49, 151, 127, 0.1);
}

.complemento-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(49, 151, 127, 0.15);
    border-color: var(--primary-color);
}

.complemento-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.complemento-item span {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

/* RFC Service Section */
.rfc-service {
    background: linear-gradient(135deg, #f0f9f7 0%, #e8f5f0 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.rfc-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%2331977f" fill-opacity="0.03"><polygon points="36 34 18 14 18 34"/></g></g></svg>');
    opacity: 0.4;
}

.rfc-service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.rfc-service-info .section-title {
    color: #31977f;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.service-tagline {
    font-size: 1.25rem;
    color: #323232;
    margin-bottom: 2rem;
    font-weight: 500;
}

.rfc-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.rfc-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(49, 151, 127, 0.1);
    transition: all 0.3s ease;
}

.rfc-feature:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(49, 151, 127, 0.1);
}

.rfc-feature i {
    color: #31977f;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.rfc-feature span {
    font-weight: 500;
    color: #323232;
    font-size: 0.9rem;
}

.rfc-service-offer {
    text-align: center;
}

.gift-badge {
    background: linear-gradient(135deg, #31977f 0%, #4ba897 100%);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(49, 151, 127, 0.3);
}

.gift-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.gift-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.gift-icon i {
    color: white;
    font-size: 1.5rem;
}

.gift-content h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.gift-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gift-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gift-number {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.gift-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gift-separator {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.celebration {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.btn-large {
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(49, 151, 127, 0.3);
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(49, 151, 127, 0.4);
}

/* Pricing Section */
.pricing {
    background-color: var(--background-light);
}

/* Pricing Section */
.pricing {
    background: linear-gradient(135deg, #f8fffe 0%, #f0f9f7 100%);
    padding: 4rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    padding: 1.5rem 1.25rem 1.5rem 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: visible;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(49, 151, 127, 0.15);
    border-color: var(--primary-color);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(49, 151, 127, 0.15);
}

/* Featured Green Cards */
.pricing-card.featured-green {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d8a68 100%);
    color: white;
    border: 2px solid var(--primary-color);
    box-shadow: 0 6px 20px rgba(49, 151, 127, 0.2);
}

.pricing-card.featured-green:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(49, 151, 127, 0.3);
}

/* White Cards */
.pricing-card.white {
    background: white;
    color: var(--text-primary);
}

.pricing-card.white:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.pricing-card.featured-green::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-light), var(--primary-color), var(--primary-dark));
    z-index: -1;
    border-radius: 22px;
}

.pricing-card.featured-green:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(49, 151, 127, 0.25);
}

.pricing-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    border: 1px solid white;
}

.pricing-header {
    margin-bottom: 1rem;
    padding-top: 0.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.pricing-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.pricing-card.white .pricing-title {
    color: var(--text-primary);
}

.pricing-card.featured-green .pricing-title {
    color: white;
}

.pricing-price {
    margin-bottom: 0.5rem;
    position: relative;
}

.price {
    font-size: 2.25rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-color), #2d8a68);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.pricing-card.featured-green .price {
    background: linear-gradient(45deg, #ffffff, #f0f9f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-card.featured-green .price {
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 500;
    opacity: 0.8;
    line-height: 1.4;
}

.pricing-card.white .pricing-subtitle {
    color: var(--text-secondary);
}

.pricing-card.featured-green .pricing-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-note {
    font-size: 0.875rem;
    margin-top: 1rem;
    opacity: 0.7;
    font-style: italic;
    line-height: 1.4;
}

.pricing-card.featured-green .pricing-note {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-folios {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.75rem auto 1rem auto;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, rgba(49, 151, 127, 0.1), rgba(49, 151, 127, 0.05));
    border-radius: 8px;
    color: var(--primary-color);
    border: 1px solid rgba(49, 151, 127, 0.2);
    display: inline-block;
    width: 100%;
    text-align: center;
    line-height: 1.2;
    box-sizing: border-box;
}

.pricing-card.featured-green .pricing-folios {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Enhanced Button Styles */
.btn-white {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background: var(--background-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    border: 2px solid var(--primary-color);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(49, 151, 127, 0.4);
}

.btn-full {
    width: 100%;
    padding: 0.75rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 1rem;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-sizing: border-box;
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.pricing-card.featured-green:hover {
    animation: none;
}

/* Special Effects */
.pricing-card.white::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(49, 151, 127, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    border-radius: 50%;
    z-index: -1;
}

.pricing-card.white:hover::after {
    width: 200%;
    height: 200%;
}

/* Icon styling in buttons */
.btn i {
    margin-right: var(--spacing-xs);
    font-size: 1.1em;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--background-light);
}

.faq-question h3 {
    margin: 0;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

.faq-question i {
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    color: var(--text-secondary);
    margin: 0;
}

/* Contact Section */
.contact {
    background-color: #f9fafb !important;
    padding: 4rem 0 !important;
}

.contact-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4rem !important;
    align-items: start !important;
    width: 100% !important;
    max-width: none !important;
}

/* Asegurar que ambos elementos estén visibles */
.contact-info,
.contact-form {
    display: block !important;
    visibility: visible !important;
}

.contact-info .section-title {
    text-align: left;
}

.contact-info .section-description {
    text-align: left;
    margin-bottom: var(--spacing-xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.contact-item i {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    margin-top: 2px;
}

.contact-item h4 {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

/* Mejora de legibilidad: texto más oscuro y mayor line-height */
.contact-item p {
    color: #4a4f55; /* antes var(--text-secondary) muy claro */
    margin: 0;
    line-height: 1.4;
    font-size: 0.9rem;
}

/* Subtítulos (Dirección, Teléfono, Email) más notorios */
.contact-item h4 {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Ajuste del párrafo descriptivo superior de la sección contacto */
.contact-info .section-description {
    color: #555d64;
    font-size: 1rem;
    line-height: 1.5;
}

.contact-form {
    background: #ffffff !important;
    padding: 2.5rem !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(229, 231, 235, 0.5) !important;
    position: relative !important;
    overflow: hidden;
    display: block !important;
    visibility: visible !important;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #31977f 0%, #4ba897 100%);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.3);
}

.form-header h3 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #31977f !important;
    margin-bottom: 0.5rem !important;
}

.form-header p {
    color: #7f7f7f !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
}

.form-body {
    margin-bottom: 2rem;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-body input,
.form-body textarea {
    width: 100% !important;
    padding: 0.875rem 1rem !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    background: #ffffff !important;
    color: #323232 !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    outline: none !important;
}

.form-body input:focus,
.form-body textarea:focus {
    border-color: #31977f !important;
    box-shadow: 0 0 0 3px rgba(49, 151, 127, 0.1) !important;
}

.form-body input::placeholder,
.form-body textarea::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

.form-body textarea {
    grid-column: 1 / -1;
    resize: vertical !important;
    min-height: 120px !important;
    margin-bottom: 1rem;
}

.form-footer {
    text-align: center;
}

.contact-submit-btn {
    background: #31977f !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(49, 151, 127, 0.3) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    min-width: 180px;
    justify-content: center;
}

.contact-submit-btn:hover {
    background: #2a7f6b !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(49, 151, 127, 0.4) !important;
}

.contact-submit-btn:active {
    transform: translateY(0) !important;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.contact-submit-btn:hover .btn-icon {
    transform: translateX(3px);
}

/* Iconos dentro del botón de contacto */
.contact-submit-btn .btn-icon-leading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.contact-submit-btn .btn-icon-trailing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.65rem;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-submit-btn:hover .btn-icon-leading {
    transform: translateX(2px);
}

.contact-submit-btn:hover .btn-icon-trailing {
    transform: translateX(2px) rotate(-5deg);
}

.contact-submit-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

@media (max-width: 480px) {
    .contact-submit-btn .btn-icon-trailing { display: none; }
}

.privacy-note {
    margin-top: 1.5rem !important;
    font-size: 0.8rem !important;
    color: #7f7f7f !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.privacy-note i {
    color: #31977f;
}

.form-group {
    margin-bottom: var(--spacing-md);
    position: relative;
    display: block !important;
    visibility: visible !important;
}

.form-group input,
.form-group textarea {
    width: 100% !important;
    padding: 0.75rem !important;
    border: 2px solid #e5e7eb !important;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: var(--transition);
    background-color: #ffffff !important;
    color: #323232 !important;
    font-family: var(--font-family);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 44px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #7f7f7f !important;
    opacity: 0.8 !important;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none !important;
    border-color: #31977f !important;
    box-shadow: 0 0 0 3px rgba(49, 151, 127, 0.1) !important;
}

.form-group textarea {
    resize: vertical !important;
    min-height: 120px !important;
    max-height: 200px;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    /* Eliminar TODOS los pseudo-elementos problemáticos en CTA */
    isolation: isolate;
}

/* Eliminar completamente pseudo-elementos problemáticos en CTA y sus descendientes */
.cta *::before,
.cta *::after,
.cta::before,
.cta::after {
    display: none !important;
    content: none !important;
    background: none !important;
    border: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.cta-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.cta-description {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.cta-steps {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 3;
}

.step p {
    font-size: var(--font-size-sm);
    margin: 0;
    position: relative;
    z-index: 3;
}

.cta .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
    position: relative;
    z-index: 3;
}

.cta .btn-primary:hover {
    background-color: var(--background-light);
    border-color: var(--background-light);
}

/* ============================= */
/* FOOTER MODERNO Y ATRACTIVO */
/* ============================= */

.modern-footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 50%, #2d3748 100%) !important;
    color: #ffffff !important;
    position: relative;
    margin-top: 0;
    overflow: hidden;
    min-height: 400px;
}

/* Onda decorativa en la parte superior */
.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    color: #4a5568;
    opacity: 0.3;
    z-index: 1;
}

.footer-wave svg {
    width: 100%;
    height: 100%;
}

/* Efecto de fondo animado */
.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(49, 151, 127, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(49, 151, 127, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
    pointer-events: none;
}

/* Asegurar que el contenido sea visible */
.modern-footer * {
    position: relative;
    z-index: 2;
}

/* Contenido principal del footer */
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding: 3rem 0 2rem 0;
    position: relative;
    z-index: 1;
    background: transparent !important;
}

/* Sección de marca */
.footer-brand {
    max-width: none;
}

.brand-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo {
    width: 80px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-logo:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(49, 151, 127, 0.7));
    transform: scale(1.05);
}

.brand-description {
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Certificaciones */
.certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(49, 151, 127, 0.1);
    border: 1px solid rgba(49, 151, 127, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.cert-badge:hover {
    background: rgba(49, 151, 127, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 151, 127, 0.2);
}

.cert-badge i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Secciones del footer */
.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 1px;
}

.footer-title i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Enlaces del footer */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.375rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    width: 100%;
}

.footer-links a i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* Información de contacto */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    background: transparent;
    border-radius: 0;
    border: none;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(49, 151, 127, 0.05);
    transform: translateX(5px);
}

#cta-button{
    color: white;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-details strong {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: #000000;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.contact-footer p {
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Separador */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 2rem 0;
}

/* Footer bottom */
.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.footer-bottom-left .copyright p {
    margin: 0 0 0.25rem 0;
    color: #cbd5e0;
    font-size: 0.9rem;
}

.footer-bottom-left .version {
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0;
}

/* Sección social */
.social-section {
    text-align: center;
}

.social-section h5 {
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Ajustes para iconos SVG en redes sociales */
.social-link svg {
    width: 22px;
    height: 22px;
    display: block;
    pointer-events: none;
}

.social-link.facebook svg { color: #1877f2; }
.social-link.instagram svg { color: #e1306c; }

.social-link.facebook:hover svg { color: #ffffff; }
.social-link.instagram:hover svg { color: #ffffff; }

.social-link span {
    font-size: 0.7rem;
    opacity: 0;
    transition: all 0.3s ease;
    position: absolute;
    bottom: -20px;
    white-space: nowrap;
}

.social-link:hover span {
    opacity: 1;
    bottom: -25px;
}

.social-link.facebook {
    background: rgba(24, 119, 242, 0.1);
    border: 1px solid rgba(24, 119, 242, 0.3);
    color: #1877f2;
}

.social-link.facebook:hover {
    background: #1877f2;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

.social-link.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #25d366;
}

.social-link.whatsapp:hover {
    background: #25d366;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.social-link.instagram {
    background: rgba(225, 48, 108, 0.1);
    border: 1px solid rgba(225, 48, 108, 0.3);
    color: #e1306c;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.4);
}

.social-link.linkedin {
    background: rgba(0, 119, 181, 0.1);
    border: 1px solid rgba(0, 119, 181, 0.3);
    color: #0077b5;
}

.social-link.linkedin:hover {
    background: #0077b5;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.4);
}

.social-link.twitter {
    background: rgba(29, 161, 242, 0.1);
    border: 1px solid rgba(29, 161, 242, 0.3);
    color: #1da1f2;
}

.social-link.twitter:hover {
    background: #1da1f2;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
}

.social-link.youtube {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff0000;
}

.social-link.youtube:hover {
    background: #ff0000;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

/* Botones de acción */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: flex-end;
}

.footer-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.footer-btn:hover::before {
    left: 100%;
}

.footer-btn.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.footer-btn.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 151, 127, 0.4);
}

.footer-btn.btn-secondary {
    background: transparent;
    color: #cbd5e0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-btn.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Trust badges */
.trust-badges {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #10b981;
}

.trust-badge i {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .footer-main {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
        gap: 2.5rem;
    }
}

@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        margin-bottom: 1rem;
    }
    
    .certifications {
        justify-content: center;
    }
    
    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .action-buttons,
    .trust-badges {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .modern-footer {
        margin-top: 3rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 0 2rem 0;
        text-align: center;
    }
    
    .brand-container {
        justify-content: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .contact-item {
        text-align: left;
    }
    
    .social-links {
        flex-wrap: wrap;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .footer-btn {
        justify-content: center;
    }
    
    .trust-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 2rem 0 1.5rem 0;
    }
    
    .brand-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        margin-bottom: 1rem;
    }
    
    .certifications {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom {
        gap: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .pricing {
        padding: 3rem 0 4rem 0;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2.5rem;
        padding: 2rem 1rem;
    }
    
    .pricing-card {
        padding: 2.5rem 2rem;
        min-height: 480px;
    }
    
    .pricing-card.featured-green {
        transform: scale(1.02);
    }
    
    .pricing-card.featured-green:hover {
        transform: scale(1.02) translateY(-8px);
    }
    
    .hero-content {
        gap: var(--spacing-xl);
    }
}

@media (max-width: 992px) {
    .navbar .container {
        position: relative;
    }
    
    .hamburger {
        display: flex;
        order: 3;
        margin-left: auto;
    }
    
    .nav-actions {
        display: none; /* Hide in mobile header, show in mobile menu */
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: var(--spacing-xl) 0;
        box-shadow: var(--shadow-lg);
        z-index: 999;
        transition: var(--transition);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu .nav-actions {
        display: none; /* Hide nav-actions inside menu on mobile - not used anymore */
    }
    
    .nav-actions-mobile {
        display: flex; /* Mostrar en móvil por defecto */
        flex-direction: column;
        gap: var(--spacing-md);
        width: 100%;
        margin-top: var(--spacing-xl);
        padding-top: var(--spacing-lg);
        border-top: 1px solid var(--border-color);
        list-style: none;
    }
    
    .nav-menu li {
        margin: var(--spacing-md) 0;
        list-style: none;
    }
    
    .nav-link {
        font-size: var(--font-size-lg);
        padding: var(--spacing-sm) var(--spacing-md);
        border-radius: var(--radius-md);
        transition: var(--transition);
        display: block;
        text-align: center;
        color: var(--text-primary);
        font-weight: 500;
    }
    
    .nav-link:hover {
        background-color: var(--background-light);
        color: var(--primary-color);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }
    
    .hero-image {
        order: -1;
    }

    .dashboard-container {
        max-width: 100%;
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .typing-text {
        font-size: 0.8rem;
    }

    .btn-dashboard {
        padding: 0.875rem 1.5rem;
        font-size: 0.8rem;
    }

    .dashboard-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-success,
    .btn-secondary {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }
    
    .features-grid,
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--spacing-lg);
    }
}

/* Reglas adicionales para mejor visualización del formulario en móviles */
@media (max-width: 640px) {
    .contact {
        padding: 2rem 0 !important;
    }
    
    .contact-content {
        width: 100%;
        padding: 0 1rem;
        gap: 2rem;
        display: flex;
        flex-direction: column;
    }
    
    .contact-info {
        order: 1;
    }
    
    .contact-form {
        order: 2;
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 1.5rem !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    }
    
    .form-body input,
    .form-body textarea {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .form-header h3 {
        font-size: 1.375rem !important;
        text-align: center;
    }
    
    .form-header p {
        text-align: center;
        font-size: 0.9rem !important;
    }
}

/* Mejoras adicionales para la sección de contacto en móviles */
@media (max-width: 768px) {
    .contact-content {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 2.5rem;
    }
    
    .contact {
        padding: 3rem 0 !important;
    }
    
    .contact-info {
        order: 1;
    }
    
    .contact-form {
        order: 2;
        display: block !important;
        visibility: visible !important;
        padding: 2.5rem !important;
        margin-top: 0;
        width: 100%;
        max-width: none;
    }
    
    .contact-details {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-item {
        padding: 1rem;
        background: rgba(49, 151, 127, 0.03);
        border-radius: 10px;
        border-left: 4px solid var(--primary-color);
        transition: all 0.3s ease;
    }
    
    .contact-item:hover {
        background: rgba(49, 151, 127, 0.05);
        transform: translateX(4px);
    }
    
    .cta-steps {
        flex-direction: column;
        gap: var(--spacing-lg);
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 var(--spacing-xl);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }

    .complementos-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .complementos-header {
        margin-bottom: 2.5rem;
    }

    .complemento-item {
        padding: 0.875rem 1.25rem;
    }

    .rfc-service {
        padding: 3rem 0;
    }

    .rfc-service-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .rfc-service-info .section-title {
        font-size: 2rem;
    }

    .service-tagline {
        font-size: 1.1rem;
    }

    .rfc-features {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .gift-badge {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .gift-items {
        flex-direction: column;
        gap: 0.5rem;
    }

    .gift-separator {
        display: none;
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-description {
        font-size: var(--font-size-base);
    }
    
    section {
        padding: var(--spacing-xl) 0;
    }
    
    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .pricing {
        padding: 2.5rem 0 3rem 0;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 1rem;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .pricing-card {
        max-width: 100%;
        margin: 0 auto;
        padding: 3rem 2rem;
        min-height: 450px;
    }
    
    .pricing-card.featured-green {
        transform: scale(1);
    }
    
    .pricing-header {
        padding-top: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .pricing-folios {
        margin: 2rem auto;
        max-width: 240px;
    }
    
    .pricing-card.featured-green {
        animation: none;
    }
    
    .pricing-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .pricing-card.featured-green:hover {
        transform: translateY(-8px) scale(1.02);
    }
    
    .price {
        font-size: 2rem;
    }
    
    .pricing-title {
        font-size: var(--font-size-lg);
    }
    
    .cta-title {
        font-size: var(--font-size-2xl);
    }
    
    .cta-steps {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .step {
        max-width: 250px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }
    
    .contact {
        padding: 2rem 0 !important;
    }
    
    .contact-content {
        gap: 1.5rem;
    }
    
    .contact-form {
        padding: 1.25rem !important;
        margin-top: 1rem;
        border-radius: 12px !important;
    }
    
    .form-header {
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }
    
    .form-header h3 {
        font-size: 1.25rem !important;
    }
    
    .form-body {
        margin-bottom: 1.5rem;
    }
    
    .input-row {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        margin-bottom: 0.75rem;
    }
    
    .form-body input,
    .form-body textarea {
        padding: 0.875rem 0.75rem !important;
        font-size: 16px !important;
        border-radius: 6px !important;
    }
    
    .form-body textarea {
        min-height: 100px !important;
        margin-bottom: 0.75rem;
    }
    
    .contact-submit-btn {
        width: 100%;
        padding: 0.875rem 1.5rem !important;
        font-size: 1rem !important;
        min-width: auto;
    }
    
    .privacy-note {
        margin-top: 1rem !important;
        font-size: 0.75rem !important;
        text-align: center;
        flex-direction: column;
        gap: 0.25rem !important;
    }
    
    .contact-submit-btn {
        width: 100% !important;
        padding: 0.875rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Download Form Tablet Styles */
    .phase-separator {
        margin: 0.9rem 0 1.8rem 0;
    }
    
    .separator-text {
        padding: 0.45rem 1.2rem;
        font-size: 0.8rem;
        margin: 0 0.75rem;
    }
    
    .download-stats {
        padding: 1.25rem;
        gap: 0.85rem;
    }
    
    .stat-icon {
        width: 42px;
        height: 42px;
    }
    
    .stat-icon i {
        font-size: 17px;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .download-header .download-icon {
        width: 55px;
        height: 55px;
    }
    
    .download-header .download-icon i {
        font-size: 22px;
    }
    
    .download-header h3 {
        font-size: 1.4rem;
    }
    
    .download-option {
        padding: 0.9rem;
    }
    
    .download-option .option-icon {
        width: 38px;
        height: 38px;
    }
    
    .final-actions {
        gap: 0.8rem;
    }
    
    .final-actions button {
        padding: 11px 18px;
        font-size: 0.9rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .header {
        padding: 0;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .brand-name {
        font-size: var(--font-size-lg);
    }
    
    .logo {
        height: 35px;
    }
    
    .hero {
        padding: 5rem 0 var(--spacing-lg);
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: var(--font-size-base);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: center;
    }
    
    .stat {
        min-width: 120px;
    }
    
    .hero-actions {
        width: 100%;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: var(--font-size-base);
    }
    
    .section-title {
        font-size: var(--font-size-xl);
        line-height: 1.3;
    }
    
    .section-description {
        font-size: var(--font-size-sm);
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .feature-card,
    .benefit-card {
        padding: var(--spacing-lg);
    }
    
    .feature-icon,
    .benefit-icon {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-lg);
    }
    
    .pricing {
        padding: 2rem 0;
    }
    
    .pricing-grid {
        gap: 2rem;
        padding: 0.5rem;
        max-width: 100%;
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
        margin: 0;
        border-radius: 24px;
        min-height: 400px;
    }
    
    .pricing-header {
        padding-top: 1rem;
        margin-bottom: 2rem;
    }
    
    .pricing-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .price {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .pricing-folios {
        font-size: 1.25rem;
        padding: 1rem 1.5rem;
        margin: 1.5rem auto;
        max-width: 200px;
    }
    
    .btn-full {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
        min-height: 50px;
    }
    
    .pricing-title {
        font-size: var(--font-size-lg);
    }
    
    .price {
        font-size: 1.5rem;
    }
    
    .pricing-folios {
        font-size: var(--font-size-sm);
        padding: var(--spacing-xs);
    }
    
    .btn-full {
        padding: 0.75rem 1rem;
        font-size: var(--font-size-sm);
    }
    
/* Mejoras adicionales para móviles muy pequeños */
@media (max-width: 480px) {
    .contact {
        padding: 2rem 0 !important;
    }
    
    .contact-content {
        gap: 2rem;
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
    }
    
    .contact-info {
        order: 1;
    }
    
    .contact-form {
        order: 2;
        display: block !important;
        visibility: visible !important;
        padding: 1.5rem !important;
        margin-top: 0;
        border-radius: 12px !important;
        width: 100%;
        max-width: none;
        background: #ffffff !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    }
    
    .form-header {
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
        text-align: center;
    }
    
    .form-header h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem;
    }
    
    .form-header p {
        font-size: 0.9rem !important;
        color: #666;
    }
    
    .form-body {
        margin-bottom: 1.5rem;
    }
    
    .input-row {
        gap: 0.75rem !important;
        margin-bottom: 0.75rem;
    }
    
    .form-body input,
    .form-body textarea {
        padding: 1rem 0.75rem !important;
        font-size: 16px !important;
        border-radius: 8px !important;
    }
    
    .form-body textarea {
        min-height: 120px !important;
        margin-bottom: 0.75rem;
        resize: vertical;
    }
    
    .contact-submit-btn {
        width: 100%;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
    }
    
    .privacy-note {
        margin-top: 1rem !important;
        font-size: 0.75rem !important;
        text-align: center;
    }
    
    .contact-info .section-title {
        font-size: 1.75rem !important;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .contact-info .section-description {
        text-align: center;
        font-size: 0.95rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }
    
    .contact-item {
        padding: 1.25rem 1rem;
        margin-bottom: 0.75rem;
        background: rgba(49, 151, 127, 0.04);
        border-radius: 12px;
        border-left: 4px solid var(--primary-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .contact-item i {
        font-size: 1.25rem;
        margin-top: 0;
        color: var(--primary-color);
    }
    
    .contact-item h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }
    
    .contact-item p {
        font-size: 0.9rem;
        line-height: 1.4;
        color: #555;
    }
}
    
    .cta-title {
        font-size: var(--font-size-xl);
        line-height: 1.3;
    }
    
    .cta-description {
        font-size: var(--font-size-base);
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-lg);
    }
    
    .step p {
        font-size: var(--font-size-xs);
    }
    
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-md);
    }
    
    .footer-brand {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .footer-description {
        text-align: center;
    }
    
    .footer-contact p {
        font-size: var(--font-size-sm);
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xs);
    }
    
    /* Download Form Mobile Styles */
    .phase-separator {
        margin: 0.75rem 0 1.5rem 0;
        padding: 0.75rem 0;
    }
    
    .separator-text {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
        margin: 0 0.5rem;
    }
    
    .separator-text i {
        font-size: 0.9rem;
    }
    
    .download-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-item {
        gap: 0.75rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-icon i {
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .download-header h3 {
        font-size: 1.25rem;
    }
    
    .download-header p {
        font-size: 0.8rem;
    }
    
    .download-option {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .download-option .option-icon {
        width: 35px;
        height: 35px;
        margin-right: 0.75rem;
    }
    
    .download-option .option-icon i {
        font-size: 16px;
    }
    
    .download-option .option-title {
        font-size: 0.9rem;
    }
    
    .download-option .option-count {
        font-size: 0.75rem;
    }
    
    .progress-info {
        font-size: 0.8rem;
    }
    
    .btn-download {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .download-success .success-content i {
        font-size: 1.5rem;
    }
    
    .download-success .success-content span {
        font-size: 1rem;
    }
    
    .detail-item {
        font-size: 0.8rem;
    }
    
    .final-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .final-actions button {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* Landscape phones */
@media (max-width: 667px) and (orientation: landscape) {
    .hero {
        padding: 3rem 0 var(--spacing-lg);
    }
    
    .hero-title {
        font-size: var(--font-size-xl);
    }
    
    .nav-menu {
        height: 100vh;
        overflow-y: auto;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: var(--font-size-lg);
    }
    
    .pricing-grid {
        padding: 0;
    }
    
    .pricing-card {
        margin: 0;
        padding: var(--spacing-md);
    }
    
    .btn-large {
        padding: 0.75rem 1rem;
        font-size: var(--font-size-sm);
    }
}

/* Touch Device Optimizations */
.touch-device .btn {
    min-height: 44px;
    min-width: 44px;
}

.touch-device .pricing-card:hover {
    transform: none;
}

.touch-device .pricing-card.touch-hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(49, 151, 127, 0.2);
}

.touch-device .feature-card.touch-hover,
.touch-device .benefit-card.touch-hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn.touch-active {
    transform: scale(0.98);
}

/* Improved mobile menu buttons */
@media (max-width: 992px) {
    .menu-close {
        position: absolute;
        top: var(--spacing-md);
        right: var(--spacing-md);
        background: none;
        border: none;
        font-size: var(--font-size-xl);
        color: var(--text-primary);
        cursor: pointer;
        padding: var(--spacing-sm);
        border-radius: 50%;
        transition: var(--transition);
        z-index: 1001;
    }
    
    .menu-close:hover {
        background-color: var(--background-light);
        color: var(--primary-color);
    }
    
    .nav-menu .nav-actions .btn {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
        font-weight: 600;
        border-radius: var(--radius-lg);
    }
    
    .nav-menu .nav-actions .btn-outline {
        background-color: transparent;
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
    }
    
    .nav-menu .nav-actions .btn-primary {
        background-color: var(--primary-color);
        color: white;
        border: 2px solid var(--primary-color);
    }
    
    .nav-actions-mobile .btn {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
        font-weight: 600;
        border-radius: var(--radius-lg);
    }
    
    .nav-actions-mobile .btn-outline {
        background-color: transparent;
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
    }
    
    .nav-actions-mobile .btn-primary {
        background-color: var(--primary-color);
        color: white;
        border: 2px solid var(--primary-color);
    }
}

/* Viewport Height Fix for Mobile Browsers */
.nav-menu {
    height: calc(100vh - 80px);
    height: calc(var(--vh, 1vh) * 100 - 80px);
}

/* Improved Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Better Text Selection */
::selection {
    background-color: var(--primary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: white;
}

/* Smooth Scrolling Enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Improved Loading Performance */
img {
    max-width: 100%;
    height: auto;
}

/* Better Form Styling for Mobile */
@media (max-width: 768px) {
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: var(--radius-lg);
    }
}

/* Enhanced Mobile Menu */
body.menu-open {
    overflow: hidden;
}

/* Improved Hamburger Animation */
.hamburger {
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
}

.hamburger:hover {
    opacity: 0.8;
}

.hamburger span {
    display: block;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Desktop Navigation - ensure it's visible */
@media (min-width: 993px) {
    .nav-menu {
        display: flex !important;
        position: static;
        width: auto;
        height: auto;
        background: none;
        backdrop-filter: none;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        padding: 0;
        box-shadow: none;
        gap: var(--spacing-lg);
    }
    
    .nav-menu .nav-actions {
        display: none; /* Hide nav-actions inside menu on desktop */
    }
    
    .nav-actions-mobile {
        display: none !important; /* Force hide mobile actions on desktop */
    }
    
    .hamburger {
        display: none !important;
    }
    
    .nav-actions {
        display: flex !important; /* Show nav-actions outside menu on desktop */
        order: 0;
        margin-bottom: 0;
        flex-direction: row;
        width: auto;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-link {
        font-size: var(--font-size-base);
        padding: 0;
    }
}

/* Improved Pricing Grid for Different Screen Sizes */
@media (min-width: 1400px) {
    .pricing-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 1600px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Better Text Contrast for Accessibility */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #4a4a4a;
        --text-light: #666666;
    }
    
    .pricing-card.white {
        border-color: #333333;
    }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .pricing-card.featured-green {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-menu,
    .hamburger,
    .scroll-to-top,
    .btn {
        display: none !important;
    }
    
    .hero {
        margin-top: 0;
        padding: 2rem 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black !important;
        background: white !important;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .pricing-card {
        border: 1px solid #333 !important;
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.benefit-card,
.pricing-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll-to-top button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    /* Progreso (0 a 1) para el anillo */
    --progress: 0;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001; /* Aumentado para estar encima del sticky CTA */
    transition: bottom 0.3s ease; /* Suave transición cuando cambie la posición */
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 1000;
    position: fixed;
    overflow: visible;
}

.scroll-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.scroll-to-top.show {
    display: flex;
    animation: scrollPop 0.35s ease-out;
}

/* Anillo de progreso usando conic-gradient y máscara */
.scroll-to-top::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 3px; /* grosor del anillo */
    background:
        conic-gradient(var(--primary-light) calc(var(--progress) * 100%), rgba(255,255,255,0.15) 0);
    -webkit-mask:
        radial-gradient(farthest-side,#0000 calc(100% - 6px), #000 calc(100% - 6px));
    mask:
        radial-gradient(farthest-side,#0000 calc(100% - 6px), #000 calc(100% - 6px));
    transition: background 0.2s linear;
    pointer-events: none;
}

.scroll-to-top svg, .scroll-to-top i {
    position: relative;
    z-index: 2;
}

@keyframes scrollPop {
    0% { transform: scale(0.6); opacity: 0; }
    60% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-to-top.show { animation: none; }
    .scroll-to-top::before { transition: none; }
}

/* =========================== */
/* FOOTER FIXES DEFINITIVOS */
/* =========================== */

/* REGLA GLOBAL: Eliminar TODO elemento decorativo del footer */
footer,
footer *,
.footer,
.footer * {
    background: none !important;
    border-radius: 0 !important;
}

footer::before,
footer::after,
footer *::before,
footer *::after,
.footer::before,
.footer::after,
.footer *::before,
.footer *::after {
    content: none !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Restaurar solo los backgrounds necesarios del footer */
.footer {
    background-color: var(--text-primary) !important;
}

.social-link {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
}

.social-link:hover {
    background-color: var(--primary-color) !important;
}

/* Eliminar completamente elementos decorativos problemáticos */
.footer {
    isolation: isolate;
    clear: both;
    position: relative;
}

/* Prevenir interferencias de elementos decorativos */
.footer *,
.footer *::before,
.footer *::after {
    z-index: auto !important;
}

/* Aislar secciones decorativas para que NO afecten el footer */
.hero,
.features,
.benefits,
.pricing,
.complementos,
.rfc-service,
.contact,
.cta {
    isolation: isolate;
}

/* Limitar z-index de elementos decorativos */
.hero::before,
.hero::after,
.features::before,
.features::after,
.pricing::before,
.pricing::after,
.complementos::before,
.complementos::after,
.rfc-service::before,
.rfc-service::after {
    z-index: -1 !important;
}

/* Asegurar que el dashboard no interfiera */
.dashboard-container {
    isolation: isolate;
    z-index: 1;
}

/* Responsive del footer limpio */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* WhatsApp Widget Styles */
.whatsapp-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1001; /* Aumentado para estar encima del sticky CTA */
    animation: bounceIn 1s ease-out;
    transition: bottom 0.3s ease; /* Suave transición cuando cambie la posición */
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-button:active {
    transform: scale(0.95);
}

.whatsapp-icon {
    color: white;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-button:hover .whatsapp-icon {
    transform: rotate(10deg) scale(1.1);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.whatsapp-button:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

.tooltip-arrow {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #333;
}

/* Pulso animado */
.whatsapp-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: pulse-whatsapp 2s infinite;
    z-index: -1;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(50px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05) translateY(-10px);
    }
    70% {
        transform: scale(0.9) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulse-whatsapp {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-button {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-tooltip {
        display: none; /* Ocultar tooltip en móvil para mejor UX */
    }
    
    /* Mejorar responsive de contenedores */
    .container {
        padding: 0 var(--spacing-xs);
        width: 100%;
    }
    
    /* Hero responsive */
    .hero {
        padding: 6rem 0 var(--spacing-xl);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
        padding: 0 var(--spacing-xs);
    }
    
    /* Features responsive */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Benefits responsive */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Pricing responsive */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Ensure full width on mobile */
    .hero,
    .features,
    .benefits,
    .complementos,
    .rfc-service,
    .pricing,
    .contact,
    footer {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
}

/* Tablet responsive */
@media (max-width: 992px) and (min-width: 769px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

/* Large screens */
@media (min-width: 1201px) {
    .container {
        max-width: 1400px;
        padding: 0 var(--spacing-md);
    }
}

/* Ajuste para que no interfiera con el botón scroll-to-top */
@media (min-width: 769px) {
    .scroll-to-top {
        bottom: 100px; /* Mover el botón de scroll más arriba */
    }
}

/* ============================================
   SECTION SEPARATOR STYLES 
   ============================================ */

/* Section Separator */
.section-separator {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.section-separator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(49, 151, 127, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(49, 151, 127, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.separator-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.separator-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #31977f, transparent);
    border-radius: 1px;
    max-width: 200px;
}

.separator-text {
    background: white;
    padding: 2rem 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    min-width: 350px;
}

.separator-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.separator-text h3 {
    color: #1a202c;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0.5rem 0;
    line-height: 1.3;
}

.separator-text p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Responsive for separator */
@media (max-width: 768px) {
    .section-separator {
        padding: 3rem 0;
    }
    
    .separator-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .separator-line {
        max-width: 100px;
        height: 1px;
    }
    
    .separator-text {
        padding: 1.5rem 2rem;
        min-width: auto;
        width: 100%;
    }
    
    .separator-text h3 {
        font-size: 1.1rem;
    }
    
    .separator-text p {
        font-size: 0.9rem;
    }
}

/* ============================================
   SUBSCRIPTION PLANS TABLE STYLES 
   ============================================ */

/* Subscription Plans Section */
.subscription-plans {
    background: #f8fafc;
    padding: 5rem 0;
    position: relative;
}

/* Table Container */
.subscription-table-container {
    margin: 2rem 0;
    position: relative;
}

.subscription-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: relative;
}

.subscription-table-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #31977f;
    border-radius: 8px 8px 0 0;
}

/* Table Styles */
.subscription-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    background: white;
    min-width: 1100px;
}

/* Header Styles */
.subscription-table thead th {
    background: #f1f5f9;
    padding: 0;
    border: none;
    position: relative;
    vertical-align: top;
}

.feature-column {
    width: 280px;
    min-width: 280px;
    background: #31977f !important;
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 1.5rem 1rem !important;
    font-size: 1rem;
    border-radius: 8px 0 0 0;
}

.plan-column {
    width: 160px;
    min-width: 160px;
    position: relative;
}

/* Popular Badge */
.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #dc2626;
    color: white;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Plan Headers */
.plan-header {
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
    background: white;
    border-radius: 0 0 8px 8px;
    margin-bottom: 8px;
}

.plan-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.plan-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0.5rem 0;
    line-height: 1.2;
}

.plan-badge.new {
    background: #059669;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0.25rem 0;
    display: inline-block;
}

.plan-price {
    margin: 1rem 0 0.5rem 0;
}

.plan-price .monthly {
    font-size: 1.8rem;
    font-weight: 700;
    color: #31977f;
}

.plan-price .period {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 400;
}

.annual-price {
    font-size: 0.8rem;
    color: #059669;
    font-weight: 500;
    background: #f0fdf4;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 0.5rem;
    border: 1px solid #bbf7d0;
}

/* Plan Column Specific Colors */
.plan-column.starter .plan-header {
    border-top: 3px solid #059669;
}
.plan-column.basic .plan-header {
    border-top: 3px solid #2563eb;
}
.plan-column.advanced .plan-header {
    border-top: 3px solid #7c3aed;
    background: #fafafa;
}
.plan-column.pro .plan-header {
    border-top: 3px solid #d97706;
}
.plan-column.corporate .plan-header {
    border-top: 3px solid #dc2626;
}
.plan-column.master .plan-header {
    border-top: 3px solid #4f46e5;
}

/* Table Body */
.subscription-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
}

.subscription-table tbody tr:hover {
    background: #f8fafc;
}

.subscription-table tbody tr:last-child {
    border-bottom: none;
}

/* Table Cells */
.subscription-table td {
    padding: 0.8rem;
    text-align: center;
    vertical-align: middle;
    position: relative;
}

.feature-name {
    background: #f8fafc;
    text-align: left !important;
    font-weight: 500;
    color: #1a202c;
    border-right: 2px solid #e2e8f0;
    padding: 1rem 1.2rem !important;
    position: sticky;
    left: 0;
    z-index: 5;
    min-width: 280px;
}

.feature-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.feature-value {
    font-weight: 600;
    color: #31977f;
    font-size: 1rem;
}

.feature-value.highlight {
    background: #31977f;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 600;
    position: relative;
}

.feature-value.bonus {
    background: #d97706;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.feature-included {
    color: #059669;
    font-size: 1.2rem;
    font-weight: 600;
}

.feature-not-included {
    color: #dc2626;
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Action Rows */
.action-row {
    background: #f8fafc;
    border-top: 1px solid #cbd5e0 !important;
    border-bottom: 1px solid #cbd5e0 !important;
}

.action-row td {
    padding: 1.2rem 0.8rem;
}

/* Bonus Row */
.bonus-row {
    background: #fef7e0;
    border-top: 1px solid #fbbf24 !important;
    border-bottom: 1px solid #fbbf24 !important;
}

/* Subscription Buttons */
.btn-subscription {
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-starter {
    background: #059669;
    color: white;
    border: 1px solid #047857;
}

.btn-basic {
    background: #2563eb;
    color: white;
    border: 1px solid #1d4ed8;
}

.btn-popular {
    background: #7c3aed;
    color: white;
    border: 1px solid #6d28d9;
}

.btn-pro {
    background: #d97706;
    color: white;
    border: 1px solid #b45309;
}

.btn-corporate {
    background: #dc2626;
    color: white;
    border: 1px solid #b91c1c;
}

.btn-master {
    background: #4f46e5;
    color: white;
    border: 1px solid #4338ca;
}

.btn-subscription:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Note Section */
.subscription-note-section {
    margin-top: 2rem;
    text-align: center;
}

.note-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.note-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.note-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.note-card p {
    color: #4a5568;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design for Subscription Table */
@media (max-width: 1200px) {
    .subscription-table {
        min-width: 900px;
    }
    
    .feature-column {
        width: 250px;
        min-width: 250px;
    }
    
    .plan-column {
        width: 140px;
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .subscription-plans {
        padding: 3rem 0;
    }
    
    .subscription-table-wrapper {
        border-radius: 15px;
        margin: 0 -1rem;
    }
    
    .subscription-table {
        min-width: 800px;
    }
    
    .feature-column {
        width: 200px;
        min-width: 200px;
        font-size: 0.9rem;
        padding: 1.5rem 0.8rem !important;
    }
    
    .plan-column {
        width: 120px;
        min-width: 120px;
    }
    
    .plan-header {
        padding: 1.5rem 0.5rem 1rem 0.5rem;
    }
    
    .plan-header h3 {
        font-size: 0.95rem;
    }
    
    .plan-price .monthly {
        font-size: 1.6rem;
    }
    
    .annual-price {
        font-size: 0.7rem;
    }
    
    .subscription-table td {
        padding: 0.8rem 0.5rem;
    }
    
    .feature-name {
        padding: 1rem 1rem !important;
        font-size: 0.9rem;
    }
    
    .btn-subscription {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .note-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .popular-badge {
        padding: 6px 16px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .subscription-table {
        min-width: 700px;
    }
    
    .feature-column {
        width: 180px;
        min-width: 180px;
    }
    
    .plan-column {
        width: 100px;
        min-width: 100px;
    }
    
    .plan-header {
        padding: 1rem 0.3rem 0.8rem 0.3rem;
    }
    
    .plan-icon {
        font-size: 2rem;
    }
    
    .plan-price .monthly {
        font-size: 1.4rem;
    }
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(49, 151, 127, 0.1);
    border: 1px solid rgba(49, 151, 127, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(49, 151, 127, 0.15);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.stars i {
    color: #fbbf24;
    font-size: 1.1rem;
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.author-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.author-info span {
    color: #64748b;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

.author-info small {
    color: #94a3b8;
    font-size: 0.8rem;
}

.company-badge {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.testimonials-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    margin-top: 3rem;
}

.stat-item {
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonials-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* End Testimonials Section */

/* Urgency Banner */
.urgency-banner {
    background: linear-gradient(135deg, #dc2626, #ea580c);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.urgency-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.urgency-content {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 2rem;
    color: white;
}

.urgency-icon {
    font-size: 2.5rem;
    color: #fbbf24;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.urgency-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.urgency-text p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
}

.urgency-text strong {
    color: #fbbf24;
    font-weight: 700;
}

#countdown-spots {
    background: rgba(255,255,255,0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
    color: #fbbf24;
}

.urgency-timer {
    display: flex;
    gap: 1rem;
}

.timer-element {
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    min-width: 60px;
    border: 1px solid rgba(255,255,255,0.2);
}

.timer-element span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #fbbf24;
}

.timer-element label {
    display: block;
    font-size: 0.7rem;
    margin-top: 0.25rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-urgency {
    background: #fbbf24;
    color: #1a1a1a;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% { box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3); }
    100% { box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5); }
}

.btn-urgency:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.btn-urgency i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .urgency-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .urgency-text h3 {
        font-size: 1.2rem;
    }
    
    .urgency-timer {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .timer-element {
        min-width: 50px;
        padding: 0.5rem 0.25rem;
    }
    
    .timer-element span {
        font-size: 1.2rem;
    }
}

/* End Urgency Banner */

/* Guarantees Section */
.guarantees {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.guarantee-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(49, 151, 127, 0.08);
    border: 1px solid rgba(49, 151, 127, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.guarantee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.guarantee-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(49, 151, 127, 0.15);
}

.guarantee-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(49, 151, 127, 0.2);
}

.guarantee-icon i {
    font-weight: 900;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", sans-serif;
    line-height: 1;
    display: block;
}

/* Fallback para iconos que no cargan */
.guarantee-icon i::before {
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* Asegurar que todos los iconos de Font Awesome se muestren */
.fas, .far, .fab, .fal, .fad {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", sans-serif !important;
    font-weight: 900;
}

/* Iconos específicos con códigos Unicode como fallback */
.fa-certificate::before { content: "\f0a3"; }
.fa-undo-alt::before { content: "\f2ea"; }
.fa-headset::before { content: "\f590"; }
.fa-lock::before { content: "\f023"; }
.fa-cloud::before { content: "\f0c2"; }
.fa-thumbs-up::before { content: "\f164"; }
.fa-check-circle::before { content: "\f058"; }
.fa-shield-alt::before { content: "\f3ed"; }
.fa-database::before { content: "\f1c0"; }
.fa-phone::before { content: "\f095"; }

/* Iconos específicos del chat con fallbacks */
.fa-comments::before { content: "\f086"; }
.fa-user::before { content: "\f007"; }
.fa-user-tie::before { content: "\f508"; }
.fa-times::before { content: "\f00d"; }
.fa-minus::before { content: "\f068"; }
.fa-paper-plane::before { content: "\f1d8"; }
.fa-arrow-right::before { content: "\f061"; }
.fa-dollar-sign::before { content: "\f155"; }
.fa-user-plus::before { content: "\f234"; }
.fa-tools::before { content: "\f7d9"; }

/* Fallback para iconos que no cargan - usar texto */
.chat-agent-avatar i:not([class*="fa-"])::after,
.message-avatar i:not([class*="fa-"])::after,
.chat-close i:not([class*="fa-"])::after,
.chat-minimize i:not([class*="fa-"])::after,
#chat-send i:not([class*="fa-"])::after {
    content: "💬";
    font-family: system-ui, -apple-system, sans-serif;
}

/* Fallbacks específicos para cada icono */
.fa-comments:not([class*="fa-"])::after { content: "💬"; }
.fa-user:not([class*="fa-"])::after { content: "👤"; }
.fa-times:not([class*="fa-"])::after { content: "✕"; }
.fa-minus:not([class*="fa-"])::after { content: "−"; }
.fa-arrow-right:not([class*="fa-"])::after { content: "→"; }

.guarantee-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.guarantee-card p {
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(49, 151, 127, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.guarantee-badge i {
    font-size: 0.9rem;
    font-weight: 900;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", sans-serif;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.trust-item:hover {
    opacity: 1;
}

.trust-item img {
    width: 80px;
    height: 32px;
    border-radius: 4px;
}

.trust-item span {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
}

@media (max-width: 768px) {
    .guarantees-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .guarantee-card {
        padding: 2rem 1.5rem;
    }
    
    .guarantee-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .trust-item img {
        width: 60px;
        height: 24px;
    }
}

/* End Guarantees Section */

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem 0;
    z-index: 999; /* Reducido para que esté debajo del WhatsApp y botón de subir */
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.sticky-cta.show {
    transform: translateY(0);
}

.sticky-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.sticky-cta-text {
    display: flex;
    flex-direction: column;
    color: white;
}

.sticky-cta-offer {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fbbf24;
}

.sticky-cta-action {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.btn-sticky-cta {
    background: #fbbf24;
    color: #1a1a1a;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-sticky-cta:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

@media (max-width: 768px) {
    .sticky-cta-content {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .sticky-cta-text {
        flex: 1;
    }
    
    .sticky-cta-offer {
        font-size: 0.8rem;
    }
    
    .sticky-cta-action {
        font-size: 1rem;
    }
    
    .btn-sticky-cta {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Ajustar widgets en mobile cuando sticky CTA está visible */
    .whatsapp-widget {
        right: 1rem;
        bottom: 20px;
    }
    
    .scroll-to-top {
        right: 1rem;
        bottom: 1.5rem;
    }
    
    .chat-widget {
        right: 1rem;
        bottom: 100px;
    }
}

/* End Sticky CTA */

/* Live Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 120px;
    right: 2rem;
    z-index: 1002; /* Aumentado para estar encima de todo */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: bottom 0.3s ease; /* Suave transición cuando cambie la posición */
}

.chat-bubble {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 1rem;
    max-width: 280px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(49, 151, 127, 0.1);
    animation: chatPulse 3s infinite;
}

@keyframes chatPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.chat-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.chat-bubble-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.chat-agent-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.chat-agent-avatar i {
    font-weight: 900;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", sans-serif;
}

/* Fallback si Font Awesome no carga */
.chat-agent-avatar i.fa-comments:before {
    content: "\f086";
}

.chat-agent-avatar:not(:has(i[class*="fa-"]))::before,
.chat-agent-avatar i:empty::after {
    content: "💬";
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.2rem;
}

.chat-bubble-text strong {
    display: block;
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.chat-bubble-text p {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.3;
}

.chat-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #ef4444;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-close i {
    font-weight: 900;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", sans-serif;
    font-size: 0.6rem;
}

/* Fallback para botón cerrar */
.chat-close i.fa-times:before {
    content: "\f00d";
}

.chat-close:not(:has(i[class*="fa-"]))::before,
.chat-close i:empty::after {
    content: "✕";
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.7rem;
    font-weight: bold;
}

.chat-bubble:hover .chat-close {
    opacity: 1;
}

.chat-window {
    display: none;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border: 1px solid rgba(49, 151, 127, 0.1);
}

.chat-window.show {
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-agent-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-agent-details h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.9;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
}

.status-dot.online {
    background: #10b981;
}

.chat-minimize {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-minimize i {
    font-weight: 900;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", sans-serif;
    font-size: 0.8rem;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f8fafc;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.chat-message.agent .message-avatar {
    order: 1;
}

.chat-message.agent .message-content {
    order: 2;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.message-avatar i {
    font-weight: 900;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", sans-serif;
}

/* Fallback para avatares de mensajes */
.message-avatar i.fa-user:before {
    content: "\f007";
}

.message-avatar:not(:has(i[class*="fa-"]))::before,
.message-avatar i:empty::after {
    content: "👤";
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.9rem;
}

.chat-message.user .message-avatar {
    background: #64748b;
}

.message-content {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    max-width: 70%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chat-message.user .message-content {
    background: var(--primary-color);
    color: white;
}

.message-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message-time {
    font-size: 0.7rem;
    color: #94a3b8;
    display: block;
    margin-top: 0.25rem;
}

.chat-message.user .message-time {
    color: rgba(255, 255, 255, 0.7);
}

.chat-quick-questions {
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.quick-question {
    background: #f1f5f9;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-question i {
    font-size: 0.75rem;
    width: 12px;
    text-align: center;
}

.quick-question:hover {
    background: var(--primary-color);
    color: white;
}

.chat-input-area {
    display: flex;
    padding: 1rem;
    gap: 0.75rem;
    border-top: 1px solid #e2e8f0;
    background: white;
}

#chat-input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

#chat-input:focus {
    border-color: var(--primary-color);
}

#chat-send {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#chat-send i {
    font-weight: 900;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", sans-serif;
    font-size: 0.9rem;
}

/* Fallback para botón enviar */
#chat-send i.fa-arrow-right:before {
    content: "\f061";
}

#chat-send:not(:has(i[class*="fa-"]))::before,
#chat-send i:empty::after {
    content: "→";
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: bold;
}

#chat-send:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .chat-widget {
        right: 1rem;
        bottom: 100px;
    }
    
    .chat-window {
        width: 300px;
        height: 400px;
    }
    
    .chat-bubble {
        max-width: 250px;
    }
}

/* End Live Chat Widget */