/* Reset de Estilos Globales */
:root {
    --primary: #10b981;
    --primary-light: #34d399;
    --primary-bg: #ecfdf5;
    --accent: #b59410;
    --accent-light: #d4af37;
    --accent-rgb: 181, 148, 16;
    --dark: #111827;
    --grey-dark: #374151;
    --grey-light: #f9fafb;
    --grey-border: #f3f4f6;
    --white: #ffffff;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--grey-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Tipografías */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
}

/* Botones y Enlaces Comunes */
a {
    text-decoration: none;
    transition: all 0.3s ease;
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

/* --- NAVBAR HEADER --- */
.navbar-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--grey-border);
    transition: background 0.3s ease;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-highlight {
    color: var(--accent);
}

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--grey-dark);
}

.nav-link:hover {
    color: var(--primary-light);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login-header {
    background: var(--primary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(15, 81, 50, 0.2);
}

.btn-login-header:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(15, 81, 50, 0.3);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-login-header:hover .btn-arrow {
    transform: translateX(4px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    padding: 5px;
}

.mobile-menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 140px 20px 80px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(244, 252, 247, 0.6) 0%, rgba(255, 255, 255, 1) 90%);
}

.hero-background-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: radial-gradient(var(--primary-bg) 2px, transparent 2px);
    background-size: 30px 30px;
    mask-image: linear-gradient(to left, rgba(0,0,0,0.4), transparent);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.4), transparent);
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    background: var(--primary-bg);
    border: 1px solid rgba(25, 135, 84, 0.2);
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 30%, var(--accent) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--grey-dark);
    margin-bottom: 35px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.btn-primary-hero {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    padding: 15px 35px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(15, 81, 50, 0.2);
}

.btn-primary-hero:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(15, 81, 50, 0.3);
}

.btn-secondary-hero {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 600;
    padding: 13px 30px;
    border-radius: 8px;
}

.btn-secondary-hero:hover {
    background: var(--primary-bg);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 600;
    margin-top: 5px;
}

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

.hero-image-box {
    width: 460px;
    height: 340px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 1px solid var(--grey-border);
}

.hero-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-floating-card {
    position: absolute;
    top: -40px;
    right: -20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 5;
    width: 240px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: floating 4s ease-in-out infinite alternate 0.8s;
}

.floating-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-icon {
    font-size: 1.4rem;
    background: var(--primary-bg);
    padding: 5px;
    border-radius: 6px;
}

.floating-header h4 {
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.floating-header p {
    font-size: 0.7rem;
    color: #6c757d;
}

.floating-progress-bar {
    width: 100%;
    height: 4px;
    background-color: var(--grey-border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-light);
}

.floating-amount {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
}

/* --- BENEFICIOS --- */
.benefits-section {
    padding: 80px 20px;
    background-color: var(--white);
}

.section-header {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-tag {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 10px;
}

.section-tag-light {
    color: var(--accent-light);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: #6c757d;
    font-size: 1.05rem;
}

.benefits-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-card {
    background: var(--white);
    border: 1px solid var(--grey-border);
    padding: 40px 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(25, 135, 84, 0.2);
}

.benefit-icon-wrapper {
    font-size: 1.8rem;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.benefit-icon-wrapper.shield { background: #eff6ff; color: #1d4ed8; }
.benefit-icon-wrapper.calendar { background: #fef2f2; color: #dc2626; }
.benefit-icon-wrapper.money { background: #f0fdf4; color: #16a34a; }
.benefit-icon-wrapper.option { background: #fffbeb; color: #d97706; }

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 0.92rem;
    color: #6c757d;
}

/* --- PRODUCTOS / SECCION PRODUCTOS --- */
.products-section {
    padding: 80px 20px;
    background-color: var(--grey-light);
}

.products-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--grey-border);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image-wrapper {
    height: 180px;
    position: relative;
    overflow: hidden;
}

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

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

.product-badge-cat {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    text-transform: uppercase;
}

.product-emoji {
    font-size: 4rem;
}

.product-info {
    padding: 30px;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.product-info p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    min-height: 70px;
}

.product-features-list {
    list-style: none;
    margin-bottom: 25px;
}

.product-features-list li {
    font-size: 0.88rem;
    color: #495057;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-features-list li span {
    color: var(--primary-light);
    font-weight: 800;
}

.btn-product-sim {
    display: block;
    text-align: center;
    background: var(--primary-bg);
    color: var(--primary);
    border: 1px solid rgba(25, 135, 84, 0.2);
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.btn-product-sim:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* --- SIMULADOR / CALCULADORA --- */
.calculator-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #082d1c 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.calculator-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(181, 148, 16, 0.05);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
}

.calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.calculator-info h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.calculator-info p {
    color: #b2dfdb;
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.calculator-guidelines {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.guide-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.guide-num {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-light);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    flex-shrink: 0;
}

.guide-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #e0f2f1;
}

.guide-item p strong {
    color: var(--white);
    display: block;
    margin-bottom: 2px;
}

/* Contenedor Card del Simulador */
.calculator-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    box-shadow: var(--shadow-lg);
}

.form-group-calc {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-calc label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e0f2f1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.value-display {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-light);
}

/* Radio buttons como botones de selección */
.calc-asset-selectors, .calc-currency-selector, .calc-term-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.calc-currency-selector {
    grid-template-columns: 1fr 1fr;
}

.calc-term-selector {
    grid-template-columns: repeat(5, 1fr);
}

.calc-asset-btn, .currency-btn, .term-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-asset-btn input, .currency-btn input, .term-btn input {
    display: none;
}

.calc-asset-btn span, .currency-btn span, .term-btn span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e0f2f1;
}

.calc-asset-btn.active, .currency-btn.active, .term-btn.active {
    background: var(--white);
    border-color: var(--white);
}

.calc-asset-btn.active span, .currency-btn.active span, .term-btn.active span {
    color: var(--primary);
}

/* Inputs de tipo Range */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-light);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-limits {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #b2dfdb;
}

/* Cuadro de Resultados */
.calc-results-box {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.results-header span {
    font-size: 0.85rem;
    color: #b2dfdb;
    text-transform: uppercase;
}

.results-header h3 {
    color: var(--white);
    font-size: 1.4rem;
}

.results-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #e0f2f1;
}

.result-row strong {
    color: var(--white);
}

.result-row.total-row {
    border-top: 1px dashed rgba(255,255,255,0.15);
    padding-top: 15px;
    margin-top: 8px;
    align-items: center;
}

.total-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.total-currency {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-light);
}

.total-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1;
}

.results-disclaimer {
    font-size: 0.72rem;
    color: #b2dfdb;
    line-height: 1.4;
    margin-top: 10px;
}

.btn-calc-apply {
    display: block;
    width: 100%;
    background: var(--accent-light);
    color: var(--dark);
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.btn-calc-apply:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Scroll Margin para enlaces ancla con navbar fija */
section[id] {
    scroll-margin-top: 80px;
}

/* --- SECCION CONTACTO --- */
.contact-section {
    padding: 100px 20px;
    background-color: var(--white);
    scroll-margin-top: 80px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    align-items: stretch;
}

.contact-header-card {
    background: var(--primary);
    color: var(--white);
    border-radius: 16px;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-header-card h2 {
    color: var(--white);
    font-size: 2.3rem;
    margin-top: 10px;
    margin-bottom: 15px;
}

.contact-header-card p {
    color: #e0f2f1;
    font-size: 1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 50px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-icon {
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.detail-item h4 {
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.detail-item p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-light);
}

/* Card del Formulario */
.contact-form-card {
    background: var(--white);
    border: 1px solid var(--grey-border);
    box-shadow: var(--shadow-md);
    border-radius: 16px;
    padding: 50px 40px;
}

.form-row-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.form-group-contact label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--grey-dark);
}

.form-group-contact input, .form-group-contact select, .form-group-contact textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    font-family: var(--font-body);
    font-size: 0.92rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group-contact input:focus, .form-group-contact select:focus, .form-group-contact textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
}

.form-group-contact textarea {
    height: 100px;
    resize: none;
}

.alert-box {
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 15px;
}

.alert-box.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-box.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.hidden {
    display: none !important;
}

.btn-submit-contact {
    display: block;
    width: 100%;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(15, 81, 50, 0.15);
}

.btn-submit-contact:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 81, 50, 0.25);
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--dark);
    color: #a0aec0;
    padding: 80px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto 50px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 50px;
}

.footer-about {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.logo-img-footer {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4, .footer-portal h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-links a {
    color: #a0aec0;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: 5px;
}

.footer-portal {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-portal p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.btn-portal-footer {
    display: inline-block;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.88rem;
}

.btn-portal-footer:hover {
    background: var(--accent-light);
    color: var(--dark);
    border-color: var(--accent-light);
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 25px;
    text-align: center;
    font-size: 0.8rem;
}

/* --- ANIMACIONES --- */
@keyframes floating {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-12px); }
}

@keyframes rotate-dashed {
    100% { transform: rotate(360deg); }
}

/* --- RESPONSIVIDAD (MEDIA QUERIES) --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* Navbar móvil */
    .navbar-container {
        padding: 12px 16px;
    }
    
    .logo-img {
        height: 32px;
        max-width: 155px;
    }

    .btn-login-header {
        padding: 7px 12px;
        font-size: 0.8rem;
        gap: 5px;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--grey-border);
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero Section móvil */
    .hero-section {
        padding: 105px 16px 50px;
        overflow: hidden;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 28px;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content {
        align-items: center;
        width: 100%;
        max-width: 100%;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 5px 14px;
        margin-bottom: 14px;
    }

    .hero-title {
        font-size: 2.15rem;
        line-height: 1.18;
        letter-spacing: -0.5px;
        margin-bottom: 16px;
        word-break: break-word;
    }

    .hero-description {
        font-size: 0.98rem;
        line-height: 1.55;
        margin-bottom: 25px;
        padding: 0 4px;
        max-width: 100%;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-bottom: 30px;
        padding: 0;
    }

    .btn-primary-hero, 
    .btn-secondary-hero {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 0.95rem;
        display: block;
    }
    
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        padding: 14px 10px;
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(16, 185, 129, 0.18);
        border-radius: 12px;
        backdrop-filter: blur(8px);
    }

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

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

    .stat-label {
        font-size: 0.68rem;
        line-height: 1.25;
        margin-top: 4px;
    }
    
    .hero-media-wrapper {
        margin-top: 25px;
        width: 100%;
        max-width: 100%;
        position: relative;
    }

    .hero-image-box {
        width: 100%;
        max-width: 100%;
        height: 220px;
        border-radius: 14px;
    }

    .main-floating-card {
        position: absolute;
        top: -15px;
        right: 8px;
        left: auto;
        width: auto;
        max-width: calc(100% - 16px);
        padding: 10px 14px;
        animation: none;
    }

    .card-icon {
        font-size: 1.15rem;
        padding: 3px;
    }

    .floating-header h4 {
        font-size: 0.82rem;
    }

    .floating-header p {
        font-size: 0.7rem;
    }

    .floating-amount {
        font-size: 0.85rem;
    }

    /* Secciones generales */
    .section-header {
        margin-bottom: 35px;
        padding: 0 8px;
    }

    .section-header h2 {
        font-size: 1.85rem;
        line-height: 1.2;
    }

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

    .benefits-section,
    .products-section,
    .calculator-section,
    .contact-section {
        padding: 60px 16px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 16px;
    }

    .benefit-card {
        padding: 24px 20px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 20px;
    }

    /* Calculadora móvil */
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .calculator-info h2 {
        font-size: 1.85rem;
        text-align: center;
    }

    .calculator-info p {
        text-align: center;
        margin-bottom: 25px;
    }

    .calculator-card {
        padding: 24px 16px;
        border-radius: 14px;
    }

    .calc-asset-selectors {
        grid-template-columns: 1fr;
    }

    .calc-currency-selector {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .calc-term-selector {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .total-value {
        font-size: 1.85rem;
    }
    
    /* Contacto móvil */
    .contact-section {
        padding: 40px 18px 60px;
        scroll-margin-top: 85px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 22px;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-header-card {
        padding: 34px 22px;
        border-radius: 18px;
        box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.25);
        margin: 0;
    }

    .contact-header-card h2 {
        font-size: 1.65rem;
        line-height: 1.22;
        margin-top: 6px;
        margin-bottom: 12px;
    }

    .contact-header-card p {
        font-size: 0.94rem;
        line-height: 1.5;
        color: #ecfdf5;
    }

    .contact-details {
        margin-top: 24px;
        gap: 18px;
    }

    .detail-item {
        gap: 12px;
    }

    .item-icon {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
        flex-shrink: 0;
    }

    .detail-item h4 {
        font-size: 0.8rem;
    }

    .detail-item p {
        font-size: 0.95rem;
        word-break: break-all;
    }
    
    .contact-form-card {
        padding: 30px 20px;
        border-radius: 18px;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
    }
    
    .form-row-contact {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Footer móvil */
    .site-footer {
        padding: 60px 16px 25px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.85rem;
    }

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

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

    .logo-img {
        height: 28px;
        max-width: 130px;
    }

    .btn-login-header span.btn-arrow {
        display: none;
    }
}
