/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #f8fafc;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navegación moderna */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 80px;
    position: relative;
}

.nav-logo {
    justify-self: start;
}

.nav-logo h2 {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
    background: #F1F4FF;
    padding: 6px 12px;
    border-radius: 50px;
    justify-self: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.nav-menu:hover {
    background: #E8F2FF;
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.nav-cta {
    display: inline-flex;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #2563eb;
    background: transparent;
    transform: translateY(-1px);
    box-shadow: none;
    border-color: transparent;
}

.nav-cta {
    background: #2563eb;
    color: white !important;
    padding: 8px 16px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    justify-self: end;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    animation: pulse 2s infinite;
}

.nav-cta:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    animation: none;
}

.nav-cta::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
}

.bar {
    width: 24px;
    height: 2px;
    background: #374151;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 1px;
}

/* Hero Section moderna */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(to top, #ffffff 0%, #f8fafc 30%, #f1f5f9 100%);
    overflow: hidden;
    padding: 120px 0 40px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 80%, rgba(96, 165, 250, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 75%, rgba(37, 99, 235, 0.05) 0%, transparent 45%);
    filter: blur(60px);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 85%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 75% 85%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
    z-index: 2;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-left {
    color: #1a1a1a;
}

.hero-category {
    margin-bottom: 1.5rem;
}

.category-tag {
    display: inline-block;
    background: #ffffff;
    color: #1a1a1a;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: #64748b;
    font-weight: 400;
    line-height: 1.6;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 650px;
}

.main-hero-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-height: 400px;
}

.data-card {
    position: absolute;
    background: #ffffff;
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    z-index: 10;
    transition: all 0.2s ease;
    animation: float 3s ease-in-out infinite;
}

.data-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.investment-card {
    top: 15px;
    right: -30px;
    width: 180px;
    animation-delay: 0s;
}

.portfolio-card {
    bottom: 15px;
    left: -30px;
    width: 200px;
    animation-delay: 1.5s;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.card-header h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.card-header p {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.green {
    background: #10b981;
}

.chart-container {
    margin-bottom: 1rem;
}

.chart-metrics {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.75rem;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #10b981;
    line-height: 1;
}

.metric-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.bar-chart {
    display: flex;
    align-items: end;
    gap: 6px;
    height: 80px;
    margin-bottom: 0.5rem;
    position: relative;
}

.bar {
    flex: 1;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 3px 3px 0 0;
    min-height: 8px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.bar-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: #10b981;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 4px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bar:hover .bar-value {
    opacity: 1;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #64748b;
}

.chart-footer {
    font-size: 0.75rem;
    color: #64748b;
}

.donut-chart {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: conic-gradient(
        #2563eb 0deg 120deg,
        #10b981 120deg 180deg,
        #f59e0b 180deg 240deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut-center {
    width: 35px;
    height: 35px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 0.75rem;
}

.portfolio-legend {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.monthly { background: #2563eb; }
.legend-dot.annual { background: #10b981; }
.legend-dot.leverage { background: #f59e0b; }

.legend-item .amount {
    margin-left: auto;
    font-weight: 600;
    color: #1a1a1a;
}

/* Botones modernos */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-align: center;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: #ffffff;
    color: #2563eb;
    border: 2px solid #2563eb;
    backdrop-filter: none;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #1d4ed8;
    transform: translateY(-2px);
}

.btn-oferta {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    letter-spacing: 0.025em;
}

.btn-oferta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-oferta:hover::before {
    left: 100%;
}

.btn-oferta:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-modalidad {
    width: 100%;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
}

.btn-calculadora {
    width: 100%;
    margin-top: 1.5rem;
}

/* Sección Oferta moderna */
.oferta {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    padding: 1.5rem 0;
    text-align: center;
    color: #1a1a1a;
    position: relative;
    overflow: hidden;
    margin: 2rem 2rem;
    border-radius: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.oferta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
    filter: blur(40px);
    z-index: 1;
}

.oferta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 25%, rgba(37, 99, 235, 0.3) 0%, rgba(37, 99, 235, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 45% 75%, rgba(37, 99, 235, 0.25) 0%, rgba(37, 99, 235, 0.25) 1px, transparent 1px);
    z-index: 2;
}

.oferta-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.oferta-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    color: #1a1a1a;
    line-height: 1.2;
}

.oferta-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.6;
}

.oferta-badge {
    margin-bottom: 0.75rem;
    display: inline-block;
}

.badge-text {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.badge-text:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}

/* Secciones Generales */
.section-header {
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.header-text {
    flex: 1;
}

.section-category {
    display: inline-block;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
    text-align: left;
}

.section-header p {
    font-size: 1.25rem;
    color: #64748b;
    line-height: 1.6;
    text-align: left;
}

.stats-container {
    display: flex;
    gap: 3rem;
    flex-shrink: 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2563eb;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.section-subtitle {
    font-size: 1.5rem;
    color: #64748b;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Sobre Nosotros moderna */
.sobre-nosotros {
    padding: 3rem 0 6rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
    margin: 2rem 2rem 0 2rem;
    border-radius: 60px 60px 0 0;
}

.sobre-nosotros::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(96, 165, 250, 0.05) 0%, transparent 50%);
    filter: blur(40px);
    z-index: 1;
}

.sobre-nosotros::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 25%, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.15) 1px, transparent 1px);
    z-index: 2;
}

.sobre-nosotros .container,
.modalidades .container,
.calculadora .container,
.referidos .container {
    position: relative;
    z-index: 3;
}

.sobre-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #475569;
    position: relative;
    z-index: 3;
}

.sobre-intro p {
    margin-bottom: 1.5rem;
}

.sobre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* Layout Principal */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.image-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 500px;
    gap: 2rem;
}

.main-image {
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    aspect-ratio: 4/3;
    position: relative;
}

.main-image:hover {
    transform: translateY(-4px);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 24px;
    position: absolute;
    top: 0;
    left: 0;
}

/* Contenido adicional debajo de la imagen */
.image-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.content-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(37, 99, 235, 0.2);
}

.content-icon {
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.content-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.content-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.025em;
}

.content-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Tarjeta con imagen */
.image-card {
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.card-image-small {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.card-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-card:hover .card-image-small img {
    transform: scale(1.05);
}

.card-content-small {
    padding: 1.5rem;
    flex: 1;
}

.card-content-small h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.card-content-small p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.cards-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.cards-grid .full-width {
    grid-column: 1 / -1;
}

/* Efectos específicos para cada sección */
.mision-section::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 2px;
    z-index: 1;
}

.vision-section::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 2px;
    z-index: 1;
}

.valores-section::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 2px;
    z-index: 1;
}

/* Cards simplificadas como en la imagen */
.modern-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 0 2rem 2rem 2rem;
    min-height: 400px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    animation: cardSlideIn 0.6s ease-out;
}

.modern-card h3 {
    margin-top: 1.5rem;
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.modern-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.modern-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.card-btn {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-btn::after {
    content: '';
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: translateX(2px);
}

.card-btn:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
    transform: translateX(2px);
}

/* Estilos para imágenes en cards */
.card-image {
    width: calc(100% + 4rem);
    height: 200px;
    margin: 0rem -2rem 1.5rem -2rem;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-image:hover img {
    transform: scale(1.05);
}

/* Cards específicas con colores como en la imagen */
.mision-card {
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.95) 0%, rgba(224, 242, 254, 0.95) 100%);
    border: 1px solid rgba(37, 99, 235, 0.15);
    position: relative;
}

.mision-card:hover {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.25);
}

.vision-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
}

.valores-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
}

/* Responsive para cards simplificadas */
@media (max-width: 768px) {
    .modern-card {
        padding: 1.25rem;
    }

    .modern-card h3 {
        font-size: 1rem;
    }

    .modern-card p {
        font-size: 0.85rem;
    }

    .card-btn {
        font-size: 0.85rem;
        padding: 6px 12px;
        border-radius: 16px;
    }

    .card-image {
        width: calc(100% + 2.5rem);
        height: 150px;
        margin: -1.25rem -1.25rem 1rem -1.25rem;
        border-radius: 20px 20px 0 0;
    }
}

/* Animaciones suaves para las cards */
.modern-card {
    animation: fadeInUp 0.6s ease-out;
}

.modern-card:nth-child(1) {
    animation-delay: 0.1s;
}

.modern-card:nth-child(2) {
    animation-delay: 0.2s;
}

.modern-card:nth-child(3) {
    animation-delay: 0.3s;
}

.sobre-card {
    background: #ffffff;
    padding: 3rem;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

/* Cards Modernas - Estilos adicionales */

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.modern-card:hover::before {
    opacity: 1;
}

.card-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
    z-index: 2;
}

.card-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sobre-icon-modern {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.icon-bg {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.modern-card:hover .icon-bg {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4);
}

.modern-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    position: relative;
}

.modern-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.card-number {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.modern-card:hover .card-number {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Efectos hover mejorados para cards modernas */
.modern-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: rgba(37, 99, 235, 0.2);
}

.modern-card:hover h3 {
    color: #2563eb;
    transform: translateY(-2px);
}

.modern-card:hover p {
    color: #475569;
}

/* Animación de entrada para cards */
@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modern-card:nth-child(1) {
    animation-delay: 0.1s;
}

.modern-card:nth-child(2) {
    animation-delay: 0.2s;
}

.modern-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Lista de Valores Moderna */
.valores-list {
    text-align: left;
    margin-bottom: 2rem;
}

.valor-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.valor-item:hover {
    background: rgba(37, 99, 235, 0.08);
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
}

.valor-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.valor-item span:last-child {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

.sobre-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.sobre-card:hover::before {
    transform: scaleX(1);
}

.sobre-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.sobre-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.sobre-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.sobre-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 1rem;
}

.sobre-card ul {
    text-align: left;
    list-style: none;
    padding: 0;
}

.sobre-card ul li {
    padding: 0.5rem 0;
    color: #64748b;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

.sobre-card ul li::before {
    content: '•';
    color: #2563eb;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Sección Testimonios */
.testimonials {
    padding: 8rem 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
    margin: 3rem 2rem;
    border-radius: 60px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.08);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 3;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-badge {
    display: inline-block;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    padding: 8px 20px;
    margin-bottom: 1.5rem;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.testimonials-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.testimonials-header p {
    font-size: 1.25rem;
    color: #6b7280;
    font-weight: 400;
}

.testimonials-gallery {
    margin-bottom: 4rem;
    overflow: hidden;
}

.gallery-images {
    display: flex;
    gap: 1rem;
    animation: scroll 60s linear infinite;
    width: calc(30 * 200px + 29 * 16px); /* 30 imágenes * 200px + 29 gaps * 16px */
}

.gallery-img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-15 * 200px - 14 * 16px)); /* Se mueve exactamente la mitad para el efecto infinito */
    }
}

.testimonials-cards {
    position: relative;
    overflow: hidden;
    padding: 0 2.5rem;
}

.testimonials-slider {
    display: flex;
    gap: 2rem;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonials-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    color: #1f2937;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 5;
}

.testimonials-nav.prev { left: 0.5rem; }
.testimonials-nav.next { right: 0.5rem; }

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.testimonials-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: background 0.3s ease, transform 0.3s ease;
}

.testimonials-dots .dot.active {
    background: #2563eb;
    transform: scale(1.2);
}

.testimonial-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex: 0 0 calc(33.333% - 1.333rem);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 1rem;
}

.star {
    color: #fbbf24;
    font-size: 1.25rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Responsive para Testimonios */
@media (max-width: 768px) {
    .testimonials {
        margin: 1.5rem 1rem;
        border-radius: 32px;
        padding: 4rem 0;
    }
    
    .testimonials-container {
        padding: 0 1rem;
    }
    
    .testimonials-header h2 {
        font-size: 2rem;
    }
    
    .testimonials-header p {
        font-size: 1rem;
    }
    
    .gallery-images {
        gap: 0.75rem;
        width: calc(30 * 150px + 29 * 12px); /* Ajustado para móvil */
    }
    
    .gallery-img {
        width: 150px;
        height: 112px;
        border-radius: 16px;
    }
    
    .testimonial-card { flex: 0 0 100%; padding: 1.5rem; border-radius: 20px; }
}

@media (max-width: 480px) {
    .testimonials {
        margin: 1rem 0.5rem;
        border-radius: 24px;
        padding: 3rem 0;
    }
    
    .gallery-images {
        width: calc(30 * 120px + 29 * 8px); /* Ajustado para móvil pequeño */
    }
    
    .gallery-img {
        width: 120px;
        height: 90px;
        border-radius: 12px;
    }
    
    .testimonial-card {
        padding: 1.25rem;
        border-radius: 16px;
    }
}

/* Sección Confianza Ancho Completo */
.confianza-fullwidth {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.confianza-block {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 50%, rgba(51, 65, 85, 0.95) 100%),
                url('https://images.unsplash.com/photo-1559526324-4b87b5e36e44?w=1200&h=800&fit=crop');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    padding: 8rem 2rem;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.confianza-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 30%, rgba(59, 130, 246, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 50% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
    filter: blur(60px);
    z-index: 1;
}

.confianza-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    margin: 0 auto;
}

.confianza-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 50px;
    padding: 8px 20px;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #60a5fa;
    backdrop-filter: blur(10px);
}

.confianza-content h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.confianza-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Modalidades modernas */
.modalidades {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
    margin: 3rem 2rem;
    border-radius: 60px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.08);
}

.modalidades::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.04) 0%, transparent 50%);
    filter: blur(40px);
    z-index: 1;
}

.modalidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.modalidad-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid rgba(37, 99, 235, 0.1);
    overflow: hidden;
    cursor: pointer;
}

.modalidad-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
    transition: left 0.4s ease;
    z-index: 10;
}

.modalidad-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.3);
}

.modalidad-card:hover::before {
    left: 0;
}

.modalidad-card:hover .modalidad-rate {
    transform: scale(1.1);
    color: #1d4ed8;
}

.modalidad-card:hover .modalidad-btn {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.modalidad-card.featured {
    border: 2px solid #2563eb;
    transform: scale(1.05);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #ffffff 100%);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.2);
    position: relative;
}

.modalidad-card.featured::after {
    content: '⭐ MÁS POPULAR';
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 6px 40px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    transform: rotate(45deg);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.modalidad-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 16px 50px rgba(37, 99, 235, 0.3);
}

/* Badge eliminado */

.modalidad-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modalidad-rate {
    font-size: 3rem;
    font-weight: 900;
    color: #2563eb;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modalidad-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.modalidad-header p {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.modalidad-content p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    text-align: center;
}

.modalidad-btn {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.modalidad-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.modalidad-beneficios {
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.beneficio-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.5rem;
    font-weight: 500;
    gap: 0.75rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.beneficio-item:last-child {
    margin-bottom: 0;
}

.beneficio-item:hover {
    background: rgba(37, 99, 235, 0.05);
    transform: translateX(5px);
    color: #1e293b;
}

.check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    position: relative;
    flex-shrink: 0;
    padding: 2px;
}

.check-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
}


/* Tabla Comparativa Compacta */
.tabla-compacta {
    margin-top: 3rem;
}

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

.tabla-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.025em;
}

.tabla-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow-x: auto;
}

.tabla-container table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.tabla-container th {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tabla-container td {
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
    font-weight: 500;
}

.tabla-container tr:hover {
    background: #f8fafc;
}

.tabla-container tr:last-child td {
    border-bottom: none;
}

.tabla-container .check-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    position: relative;
    display: inline-block;
    padding: 1px;
}

.tabla-container .check-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 4px;
    height: 7px;
    border: solid white;
    border-width: 0 1.5px 1.5px 0;
}

/* Calculadora moderna */
.calculadora {
    padding: 3rem 0;
    background: #ffffff;
    position: relative;
    margin: 3rem 2rem;
    border-radius: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}


.calculadora-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 3;
}

.calculadora-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.calculadora-header p {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

.calculadora-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.calculadora-form {
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row:last-child {
    grid-template-columns: 1fr auto;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #1f2937;
    background: #ffffff;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-calc {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    white-space: nowrap;
}

.btn-calc:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.calculadora-resultado {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
}

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

.resultado-numeros-section {
    flex: 1;
}

.resultado-chart-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

#grafica-pastel {
    max-width: 300px;
    max-height: 300px;
}

.resultado-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.resultado-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.resultado-monto {
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.resultado-actions {
    text-align: center;
}

.btn-resultado {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-resultado:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Estilos para los resultados de la calculadora */
.resultado-detalle {
    text-align: left;
}

.resultado-detalle h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.resultado-numeros {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.resultado-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.resultado-item.total {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-weight: 700;
}

.resultado-label {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.resultado-item.total .resultado-label {
    color: white;
}

.resultado-valor {
    font-size: 1rem;
    font-weight: 700;
    color: #3b82f6;
}

.resultado-item.total .resultado-valor {
    color: white;
    font-size: 1.125rem;
}

/* Estilos para cuando se muestran los resultados */
.resultado-monto .resultado-detalle {
    text-align: left;
    background: transparent;
    border: none;
    padding: 0;
}

.resultado-monto .resultado-detalle h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

.resultado-monto .resultado-numeros {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.resultado-monto .resultado-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.resultado-monto .resultado-item.total {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-weight: 700;
}

.resultado-monto .resultado-label {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.resultado-monto .resultado-item.total .resultado-label {
    color: white;
}

.resultado-monto .resultado-valor {
    font-size: 1rem;
    font-weight: 700;
    color: #3b82f6;
}

.resultado-monto .resultado-item.total .resultado-valor {
    color: white;
    font-size: 1.125rem;
}






/* Sistema de Referidos Dinámico */
.referidos {
    padding: 3rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
    margin: 3rem 2rem;
    border-radius: 60px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.08);
}

.referidos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
    filter: blur(40px);
    z-index: 1;
}

.referidos .container {
    position: relative;
    z-index: 3;
}

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

.referidos-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.referidos-header p {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

.referidos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.referidos-card {
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 390px;
}

.referidos-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-niveles {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.card-beneficios {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.card-ejemplo {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.card-niveles .card-content h3,
.card-ejemplo .card-content h3 {
    color: #1f2937;
}

.card-ejemplo .card-content h3 {
    color: white;
}

.card-content p {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.card-ejemplo .card-content p {
    color: rgba(255, 255, 255, 0.9);
}

.niveles-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.nivel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.nivel-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nivel-porcentaje {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
}

.nivel-separador {
    font-size: 1.25rem;
    color: #6b7280;
    font-weight: 700;
}

.beneficios-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.beneficio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #374151;
    font-weight: 500;
}

.check-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
}

.check-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 4px;
    height: 7px;
    border: solid white;
    border-width: 0 1.5px 1.5px 0;
}

.beneficio-item:hover .check-icon {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.ejemplo-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    flex: 1;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1f2937;
}

.card-ejemplo .stat-value {
    color: white;
}

.stat-label {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-ejemplo .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.card-actions {
    margin-top: auto;
    display: flex;
    justify-content: center;
}

.btn-card {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-card:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.card-ejemplo .btn-card {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.card-ejemplo .btn-card:hover {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.card-image {
    margin-top: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.avatars-group {
    display: flex;
    gap: -8px;
    align-items: center;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    margin-left: -6px;
    overflow: hidden;
    position: relative;
}

.avatar-circle:first-child {
    margin-left: 0;
}

.avatar-circle:last-child {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-plus {
    font-weight: 700;
    font-size: 0.75rem;
    color: white;
}

.dashboard-preview {
    width: 100px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    position: relative;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    top: 20px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
}

.chart-bars {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
    align-items: end;
    height: 30px;
}

.bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    height: 20px;
}

.bar:nth-child(2) {
    height: 25px;
}

.bar:nth-child(3) {
    height: 15px;
}

.bar:nth-child(4) {
    height: 30px;
}

.referidos-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Footer moderno */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: #ffffff;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
    margin: 3rem 2rem 2rem 2rem;
    border-radius: 60px 60px 0 0;
    box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.15);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(96, 165, 250, 0.06) 0%, transparent 50%);
    filter: blur(40px);
    z-index: 1;
}


.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.footer-section h3,
.footer-section h4 {
    color: #60a5fa;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-section ul li a:hover {
    color: #60a5fa;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
    position: relative;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .confianza-block {
        padding: 4rem 1.5rem;
        border-radius: 0;
    }
    
    .hamburger {
        display: flex;
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        grid-template-columns: none;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        backdrop-filter: blur(20px);
        border-radius: 0;
        margin: 0;
    }

    .nav-logo {
        justify-self: auto;
    }

    .nav-cta {
        display: none;
    }

    .hero::before,
    .hero::after {
        position: absolute;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Cambiar el orden en móvil para que la imagen aparezca primero */
    .hero-right {
        order: -1;
    }

    .hero-left {
        order: 1;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .data-card {
        position: absolute;
        margin: 0;
        width: 220px;
        max-width: 220px;
        animation: float 3s ease-in-out infinite;
    }

    .investment-card {
        top: 10px;
        right: -20px;
        animation-delay: 0s;
    }

    .portfolio-card {
        bottom: 10px;
        left: -20px;
        animation-delay: 1.5s;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .calculadora-card {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .form-row:last-child {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .btn-calc {
        width: 100%;
    }

    .resultado-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .resultado-chart-section {
        min-height: 250px;
    }
    
    #grafica-pastel {
        max-width: 250px;
        max-height: 250px;
    }

    .esquema-container {
        flex-direction: column;
    }

    .esquema-flecha {
        transform: rotate(90deg);
    }

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

    .modalidad-card {
        padding: 1.5rem;
    }

    .modalidad-card.featured {
        transform: none;
    }

    .modalidad-card.featured:hover {
        transform: translateY(-4px);
    }

    /* Margin eliminado */

    /* Badge eliminado */


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

    /* Responsive para el nuevo layout */
    .header-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .stats-container {
        justify-content: center;
        gap: 2rem;
    }

    .main-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .image-section {
        min-height: 300px;
        gap: 1.5rem;
    }
    
    .content-card {
        padding: 1.25rem;
    }
    
    .content-icon {
        width: 50px;
        height: 50px;
        padding: 0.75rem;
    }
    
    .content-text {
        gap: 0.375rem;
    }
    
    .content-card h4 {
        font-size: 1rem;
    }
    
    .content-card p {
        font-size: 0.85rem;
    }
    
    .card-image-small {
        height: 100px;
    }
    
    .card-content-small {
        padding: 1.25rem;
    }
    
    .card-content-small h4 {
        font-size: 1rem;
    }
    
    .card-content-small p {
        font-size: 0.85rem;
    }

    .main-image {
        aspect-ratio: 16/9;
    }

    .section-header h2 {
        font-size: 2.25rem;
        text-align: center;
    }

    .section-header p {
        text-align: center;
    }

    .referidos-content {
        gap: 1.5rem;
    }
    
    .referidos-header h2 {
        font-size: 2rem;
    }
    
    .referidos-card {
        padding: 1.25rem;
        min-height: 140px;
    }
    
    .niveles-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nivel-flecha {
        transform: rotate(90deg);
    }
    
    .referidos-cta {
        flex-direction: column;
        align-items: center;
    }

    .section-header h2 {
        font-size: 2.25rem;
    }


    /* Ajustes de border-radius para móvil */
    .oferta,
    .testimonials,
    .modalidades,
    .calculadora,
    .referidos,
    .footer {
        margin: 1.5rem 1rem;
        border-radius: 40px;
    }
    
    .sobre-nosotros {
        margin: 0 1rem;
        border-radius: 40px 40px 0 0;
        padding: 2rem 0 4rem 0;
    }

    .footer {
        margin: 1.5rem 1rem 1rem 1rem;
        border-radius: 40px 40px 0 0;
    }

    .sobre-card,
    .modalidad-card,
    .calculadora-form,
    .calculadora-resultado,
    .esquema-nivel {
        border-radius: 32px;
    }

    .confianza-block {
        border-radius: 40px;
        padding: 4rem 1.5rem;
    }
    
    .confianza-content h3 {
        font-size: 2.25rem;
    }
    
    .confianza-content p {
        font-size: 1.125rem;
    }

    .tabla-container {
        padding: 1rem;
    }
    
    .tabla-header h3 {
        font-size: 1.5rem;
    }
    
    .tabla-container table {
        font-size: 0.8rem;
    }
    
    .tabla-container th,
    .tabla-container td {
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.875rem;
    }

    .modalidad-card,
    .calculadora-form,
    .calculadora-resultado {
        padding: 2rem;
    }

    .esquema-nivel {
        padding: 2rem;
        min-width: 200px;
    }

    .sobre-card {
        padding: 2rem;
    }

    .modern-card {
        padding: 2rem;
    }

    .icon-bg {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .modern-card h3 {
        font-size: 1.25rem;
    }

    .modern-card p {
        font-size: 0.9rem;
    }

    .valor-item {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .valor-icon {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    /* Responsive para secciones separadas */
    .mision-section,
    .vision-section,
    .valores-section {
        margin-bottom: 4rem;
    }

    .section-card-container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .confianza-block {
        padding: 2.5rem;
    }

    .oferta-content h2 {
        font-size: 1.5rem;
    }

    .oferta-content p {
        font-size: 0.95rem;
    }

    .data-card {
        width: 160px;
        max-width: 160px;
    }

    .investment-card {
        top: 5px;
        right: -10px;
    }

    .portfolio-card {
        bottom: 5px;
        left: -10px;
    }

    /* Ajustes adicionales para móvil pequeño */
    .oferta,
    .testimonials,
    .modalidades,
    .calculadora,
    .referidos {
        margin: 1rem 0.5rem;
        border-radius: 32px;
        padding: 1.5rem 0;
    }
    
    .sobre-nosotros {
        margin: 0 0.5rem;
        border-radius: 32px 32px 0 0;
        padding: 1.5rem 0 3rem 0;
    }
    
    .referidos-header h2 {
        font-size: 1.75rem;
    }
    
    .referidos-card {
        padding: 1rem;
        min-height: 120px;
    }
    
    .nivel-item {
        padding: 1rem 0.75rem;
    }
    
    .nivel-porcentaje {
        font-size: 1.25rem;
    }

    .footer {
        margin: 1rem 0.5rem 0.5rem 0.5rem;
        border-radius: 32px 32px 0 0;
    }

    .sobre-card,
    .modalidad-card,
    .calculadora-form,
    .calculadora-resultado {
        border-radius: 28px;
    }

    .confianza-block {
        border-radius: 32px;
        padding: 3rem 1rem;
    }
    
    .confianza-content h3 {
        font-size: 1.875rem;
    }
    
    .confianza-content p {
        font-size: 1rem;
    }

    .tabla-container {
        padding: 0.75rem;
    }
    
    .tabla-header h3 {
        font-size: 1.25rem;
    }
    
    .tabla-container table {
        font-size: 0.75rem;
    }
    
    .tabla-container th,
    .tabla-container td {
        padding: 0.5rem;
    }
    
    .tabla-container .check-icon {
        width: 14px;
        height: 14px;
    }

    .esquema-nivel {
        border-radius: 28px;
    }

    .modern-card {
        padding: 1rem;
    }

    .icon-bg {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .modern-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .modern-card p {
        font-size: 0.8rem;
        margin-bottom: 1.25rem;
    }

    .card-image {
        width: calc(100% + 2rem);
        height: 120px;
        margin: -1rem -1rem 0.75rem -1rem;
        border-radius: 20px 20px 0 0;
    }

    .valor-item {
        padding: 0.5rem;
        margin-bottom: 0.75rem;
        gap: 0.75rem;
    }

    .valor-icon {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }

    .card-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    /* Responsive para secciones separadas en móvil pequeño */
    .mision-section,
    .vision-section,
    .valores-section {
        margin-bottom: 3rem;
    }

    .section-card-container {
        padding: 0 0.5rem;
    }

    .mision-section::before,
    .vision-section::before,
    .valores-section::before {
        width: 60px;
        height: 3px;
    }

    /* Responsive para móvil pequeño */
    .header-content {
        gap: 1.5rem;
    }

    .stats-container {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .main-layout {
        gap: 2rem;
    }

    .section-header h2 {
        font-size: 1.875rem;
    }

    .section-header p {
        font-size: 1.125rem;
    }

    .image-section {
        min-height: 250px;
        gap: 1rem;
    }
    
    .content-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .content-icon {
        width: 45px;
        height: 45px;
        padding: 0.5rem;
        align-self: center;
    }
    
    .content-text {
        gap: 0.25rem;
    }
    
    .content-card h4 {
        font-size: 0.95rem;
    }
    
    .content-card p {
        font-size: 0.8rem;
    }
    
    .card-image-small {
        height: 80px;
    }
    
    .card-content-small {
        padding: 1rem;
    }
    
    .card-content-small h4 {
        font-size: 0.95rem;
    }
    
    .card-content-small p {
        font-size: 0.8rem;
    }

    .main-image {
        aspect-ratio: 1/1;
    }
}

/* Animaciones modernas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Scroll suave mejorado */
html {
    scroll-padding-top: 80px;
}

/* Efectos hover mejorados */
.btn:hover {
    transform: translateY(-2px);
}

.sobre-card:hover,
.modalidad-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Transiciones globales */
*:not(.hero *):not(.navbar *):not(.data-card *) {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mejoras de accesibilidad */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Optimizaciones de rendimiento */
* {
    will-change: auto;
}

.btn:hover,
.sobre-card:hover,
.modalidad-card:hover {
    will-change: transform;
}

/* Efectos de glassmorphism */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradientes modernos */
.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sombras modernas */
.shadow-soft {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
}

.shadow-medium {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.shadow-strong {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
} 
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    z-index: 999;
}

.back-to-top:hover {
    background: #1d4ed8;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.45);
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 768px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 40px;
        height: 40px;
    }
}
.nav-link{
  font-size: 14px !important;
}

/* Efectos hover adicionales para elementos minimalistas */
.incluye-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.sobre-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.modalidad-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

/* Mejoras en inputs de formulario */
.form-group input,
.form-group select {
    transition: all 0.3s ease;
}

.form-group input:hover,
.form-group select:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* Estilo moderno para la tabla */
table tbody tr {
    transition: all 0.2s ease;
}

table tbody tr:hover {
    background: #f8fafc;
    transform: scale(1.01);
}

/* Animación suave para cards */
@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.sobre-card,
.modalidad-card,
.esquema-nivel {
    animation: none;
}

.sobre-card:hover,
.modalidad-card:hover,
.esquema-nivel:hover {
    animation: cardFloat 2s ease-in-out infinite;
}

/* Responsive Referidos Dinámico */
@media (max-width: 768px) {
    .referidos {
        padding: 2rem 0;
        margin: 2rem 1rem;
    }
    
    .referidos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .referidos-header h2 {
        font-size: 1.5rem;
    }
    
    .referidos-header p {
        font-size: 0.9rem;
    }
    
    .referidos-card {
        padding: 0.875rem;
        min-height: 100px;
    }
    
    .card-content h3 {
        font-size: 1rem;
    }
    
    .card-content p {
        font-size: 0.75rem;
    }
    
    .niveles-display {
        gap: 1rem;
    }
    
    .nivel-porcentaje {
        font-size: 1.5rem;
    }
    
    .nivel-badge {
        font-size: 0.7rem;
    }
    
    .nivel-separador {
        font-size: 1.25rem;
    }
    
    .beneficio-item {
        font-size: 0.85rem;
    }
    
    .check-icon {
        width: 18px;
        height: 18px;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .avatar-circle {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    .dashboard-preview {
        width: 100px;
        height: 70px;
    }
    
    .btn-card {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .referidos-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .referidos-cta .btn {
        width: 100%;
        max-width: 280px;
    }
}
