:root {
    --primary: #0f1b33;
    --secondary: #152951;
    --accent: #2ecc71;
    --accent-alt: #3498db;
    --light: #f8f9fa;
    --dark: #0a1429;
    --card-bg: rgba(21, 41, 81, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    background: #0a1429; /* Fondo para el área fuera del cuerpo principal */
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0a1429 0%, #162b50 100%);
    color: #e0e7ff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    padding-bottom: 100px;

    /* ## ESTILO DE ANCHO MÁXIMO PARA H5 ## */
    max-width: 600px; /* Ancho máximo para el contenido */
    margin: 0 auto; /* Centra el cuerpo en la página */
    position: relative; /* Necesario para algunos posicionamientos internos */
    box-shadow: 0 0 20px rgba(0,0,0,0.5); /* Sombra sutil para el efecto de marco */
}

.container {
    max-width: 100%;
    padding: 0 20px;
}

section {
    padding: 25px 0;
}

/* Header Styles */
header {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: header-appear 0.6s ease-out;
}

@keyframes header-appear {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(0); }
}

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

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

.logo-icon {
    background: var(--accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    animation: pulse-icon 2s infinite;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 20px;
    background: linear-gradient(to right, #2ecc71, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.5px;
}

.tagline {
    font-size: 12px;
    color: #a0b1e5;
    font-weight: 300;
    opacity: 0.9;
}

/* Stock Ticker Styles */
.ticker-container {
    background: rgba(15, 27, 51, 0.9);
    border-bottom: 2px solid rgba(46, 204, 113, 0.3);
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
    animation: ticker-appear 0.8s ease-out;
}

@keyframes ticker-appear {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.ticker {
    display: flex;
    animation: ticker-scroll 60s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.ticker-item {
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.exchange {
    font-weight: 700;
    color: #3498db;
    margin-right: 6px;
    font-size: 13px;
}

.stock-code {
    font-weight: 700;
    margin-right: 5px;
    font-size: 13px;
}

.stock-change {
    font-weight: 700;
    color: #2ecc71;
    margin-right: 8px;
    font-size: 13px;
}

.stock-desc {
    color: #a0b1e5;
    font-size: 12px;
    font-style: italic;
    white-space: nowrap;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 20px 0;
    position: relative;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 16px;
    color: #a0b1e5;
    margin: 0 auto 25px;
    max-width: 320px;
    font-weight: 300;
}

.highlight {
    background: linear-gradient(90deg, rgba(46,204,113,0.15) 0%, rgba(46,204,113,0) 100%);
    border-left: 3px solid var(--accent);
    padding: 20px 15px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.highlight-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    margin-bottom: 15px;
    color: #2ecc71;
    text-align: center;
}

/* Stock Card Carousel */
.stock-carousel {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 15px;
    border: 2px solid rgba(46, 204, 113, 0.4);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
}

.stock-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.8s ease;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stock-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.stock-slide.fade-out {
    opacity: 0;
    transform: translateX(-20px);
    z-index: 1;
}

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

.stock-symbol {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.stock-change-large {
    font-size: 20px;
    font-weight: 800;
    color: #2ecc71;
}

/* Dynamic Change Effect */
.change-effect {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    border-radius: 10px;
    background: rgba(46, 204, 113, 0.15);
    animation: pulse-bg 2s infinite;
}

.change-value {
    font-size: 28px;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(to right, #ffd700, #ffa500);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.change-text {
    font-size: 14px;
    color: #fff;
    margin-top: 5px;
}

.stock-info {
    font-size: 14px;
    color: #a0b1e5;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.stock-info i {
    margin-top: 4px;
    color: #3498db;
    min-width: 16px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* Features Section */
.features {
    padding: 30px 0;
}

.section-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    margin-bottom: 30px;
    color: #fff;
    position: relative;
    font-weight: 800;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 10px auto;
    border-radius: 2px;
}

.features-carousel {
    position: relative;
    height: 260px;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 15px;
}

.feature-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(15, 27, 51, 0.8) 100%);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.feature-slide.fade-out {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    z-index: 1;
}

.feature-icon {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 20px;
    background: rgba(46, 204, 113, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-title {
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
}

.feature-desc {
    font-size: 15px;
    color: #c5d0f0;
    max-width: 300px;
}

/* Performance Section */
.performance {
    padding: 30px 0;
    background: rgba(10, 20, 41, 0.6);
    border-radius: 20px;
    margin: 20px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.stat-card {
    text-align: center;
    background: rgba(21, 41, 81, 0.8);
    border-radius: 15px;
    padding: 25px 15px;
    border: 2px solid rgba(46, 204, 113, 0.2);
    position: relative;
    overflow: hidden;
    animation: pulse-border 3s infinite;
}

.stat-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
    animation: progress 5s infinite linear;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
}

.stat-label {
    font-size: 14px;
    color: #a0b1e5;
}

.performance-highlight {
    background: linear-gradient(90deg, rgba(52,152,219,0.15) 0%, rgba(46,204,113,0.15) 100%);
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.performance-highlight strong {
    color: #2ecc71;
    font-weight: 700;
}

/* Testimonials */
.testimonials {
    padding: 30px 0;
}

.testimonial-slider {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 15px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    background: var(--card-bg);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateY(0);
    z-index: 2;
}

.testimonial-slide.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    z-index: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
    color: #e0e7ff;
    font-size: 15px;
    line-height: 1.5;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-alt), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 18px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: bold;
    color: #fff;
    font-size: 15px;
}

.author-details {
    font-size: 12px;
    color: #a0b1e5;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 320px;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-redirect-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px 20px;
    background: linear-gradient(90deg, #25D366 0%, #128C7E 100%);
    color: white;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
}

.whatsapp-redirect-button:hover {
    transform: scale(1.05);
}

.whatsapp-redirect-button:active {
    transform: scale(0.98);
}

.whatsapp-redirect-button i {
    font-size: 24px;
    margin-right: 12px;
}

/* Loader for WhatsApp button */
.loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-content {
    background: rgba(10, 20, 41, 0.9);
    padding: 30px;
    border-radius: 15px;
    max-width: 300px;
    text-align: center;
    border: 2px solid var(--accent);
}

.loader-text {
    color: white;
    font-size: 16px;
    margin-top: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes pulse-icon {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes pulse-whatsapp {
    0% {
        transform: translateX(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
}
    50% {
        transform: translateX(-50%) scale(1.03);
}
    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
}
    100% {
        transform: translateX(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
}
}

@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-200%); }
}

@keyframes progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.3); }
    70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

@keyframes pulse-bg {
    0% { background: rgba(46, 204, 113, 0.15); }
    50% { background: rgba(46, 204, 113, 0.3); }
    100% { background: rgba(46, 204, 113, 0.15); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
footer {
    background: var(--primary);
    padding: 30px 0 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(46, 204, 113, 0.2);
    font-size: 12px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
    position: relative;
    padding-bottom: 8px;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #a0b1e5;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
    display: block;
    padding: 5px 0;
}

.footer-links a i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0b1e5;
    font-size: 12px;
    margin-top: 20px;
}

.disclaimer {
    background: rgba(231, 76, 60, 0.1);
    border-left: 3px solid #e74c3c;
    padding: 15px;
    margin-top: 20px;
    border-radius: 0 8px 8px 0;
    font-size: 12px;
    line-height: 1.5;
}

.disclaimer strong {
    color: #e74c3c;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
.container {
        padding: 0 15px;
    }

.hero h1 {
        font-size: 26px;
    }

.section-title {
        font-size: 22px;
    }

.ticker-item {
        padding: 0 12px;
    }
}

@media (max-width: 350px) {
.hero h1 {
        font-size: 24px;
    }

.stock-carousel, .features-carousel {
        height: 280px;
    }
}
