:root {
    --primary: #2490ea;
    --primary-dark: #1a7bc9;
    --secondary: #060F19;
    --accent: #4CAF50;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: white;
    color: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img{
    margin: 0;
    padding: 0;
}

.logo-placeholder {
    width: 30rem;
    height: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    border-radius: 5px;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    margin-right: 3rem;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.btn-login {
    background-color: var(--primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-login:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(36, 144, 234, 0.3);
    color: #e9ecef;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
}

/* Language Switcher */
.language-switcher {
    margin-left: 1rem;
    position: relative;
}

.language-btn {
    background: none;
    border: none;
    color: var(--secondary);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.language-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.language-btn i {
    transition: transform 0.3s;
}

.language-btn.active i {
    transform: rotate(180deg);
}

.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    margin-right: 0.5rem;
}

.language-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    display: none;
    z-index: 100;
    min-width: 120px;
}

.language-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--secondary);
    transition: all 0.3s;
}

.language-dropdown a:hover {
    background-color: var(--light-gray);
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 5rem;
    background: linear-gradient(135deg, rgba(6, 83, 171, 0.9) 0%, rgba(36, 144, 234, 0.8) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 50%;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid white;
    cursor: button;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.video-container {
    width: 50%;
    position: relative;
    perspective: 1000px;
    z-index: 2;
}

.video-wrapper {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-10deg) rotateX(10deg);
    transition: transform 0.5s;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
}

.video-wrapper:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.video-placeholder {
    width: 100%;
    height: 500px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(36, 144, 234, 0.3) 0%, rgba(6, 15, 25, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-wrapper:hover .video-overlay {
    opacity: 1;
}

.play-btn {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.play-btn:hover {
    transform: scale(1.1);
    background-color: white;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-bg-shape {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(36, 144, 234, 0.2) 0%, rgba(36, 144, 234, 0) 70%);
    right: -200px;
    top: -200px;
    z-index: 1;
}

/* Features Section */
.features {
    padding: 6rem 5%;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(36, 144, 234, 0.15);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 2;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(36, 144, 234, 0.1) 0%, rgba(76, 175, 80, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 2rem;
    transition: all 0.5s;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    transform: rotateY(360deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.feature-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.feature-card:hover h3::after {
    width: 50px;
}

.feature-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.feature-card .feature-list {
    text-align: left;
    margin-bottom: 1.5rem;
}

.feature-card .feature-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    list-style: none;
    color: var(--gray);
}

.feature-card .feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.feature-card .feature-benefit {
    display: inline-block;
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Stats Section */
.stats {
    padding: 4rem 5%;
    background-color: var(--light);
    text-align: center;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.stat-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    width: 300px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(10deg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
    transition: all 0.3s;
}

.stat-card:hover .stat-number {
    color: var(--accent);
}

.stat-text {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo .logo-placeholder {
    background-color: transparent;
    color: var(--secondary);
}

.footer-about p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.legal-links a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s;
}

.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

.modal-body {
    color: var(--dark);
    line-height: 1.7;
}

.modal-body h3 {
    margin: 1.5rem 0 1rem;
    color: var(--secondary);
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.modal-body ul li {
    margin-bottom: 0.5rem;
}

.modal-footer {
    margin-top: 2rem;
    text-align: right;
}

.btn-accept {
    background-color: var(--primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-accept:hover {
    background-color: var(--primary-dark);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }
    
    .hero-content, .video-container {
        width: 100%;
    }
    
    .hero-content {
        margin-bottom: 3rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .video-wrapper {
        transform: none;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .language-switcher {
        margin-left: 0.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
}

/* Añadir al final del archivo CSS, antes de las media queries */

/* Stats Section - Clock Animation */
.stat-time {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    position: relative;
    margin: 0 auto 1.5rem;
    border: 5px solid var(--primary);
    box-shadow: 0 0 0 5px rgba(36, 144, 234, 0.2);
}

.clock-hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform-origin: bottom center;
    background-color: var(--primary);
}

.hour-hand {
    width: 4px;
    height: 25px;
    margin-left: -2px;
    animation: rotateHour 8s linear infinite;
    border-radius: 4px 4px 0 0;
}

.minute-hand {
    width: 3px;
    height: 35px;
    margin-left: -1.5px;
    animation: rotateMinute 4s linear infinite;
    border-radius: 3px 3px 0 0;
}

@keyframes rotateHour {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateMinute {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Features Section - 3x3 Grid Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Feature Card Styling */
.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    width: 100%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(36, 144, 234, 0.15);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 2;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(36, 144, 234, 0.1) 0%, rgba(76, 175, 80, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 2rem;
    transition: all 0.5s;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    transform: rotateY(360deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.feature-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.feature-card:hover h3::after {
    width: 50px;
}

.feature-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.feature-list {
    text-align: left;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.feature-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--gray);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.feature-benefit {
    display: inline-block;
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: auto;
}

/* Animation for feature cards */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: cardFadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.email-contact-box {
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
    max-width: 450px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: absolute;
    z-index: 100;
    display: none;
    animation: fadeInUp 0.3s ease-out;
}

.email-contact-box p {
    margin: 0 0 1rem 0;
    color: var(--dark);
    font-size: 0.9rem;
}

#email-address {
    font-weight: 600;
    color: var(--primary);
    word-break: break-all;
}

.btn-copy {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
}

.btn-copy:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}