/* Reset y variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #9325A3;
    --secondary-color: #A44AD0;
    --light-bg: #F8F4FA;
    --dark-color: #6E1D7A;
    --accent-color: #1A2E5E;
    --text-dark: #1A2E5E;
    --text-light: #5A698F;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Botones genéricos (estilos antiguos, se mantienen para otras secciones) */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-color);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.btn-demo {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 50px;
    transition: background-color 0.3s;
}

.btn-demo:hover {
    background-color: var(--dark-color);
}

.btn-demo::after {
    display: none;
}

.country-flag {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--text-dark);
}

.country-flag img {
    height: 20px;
}

/* Menú de hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-dark);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section V2 (NUEVO) */
.hero {
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    text-align: center;
    min-height: 100vh;
}

.hero-v2 {
    flex-direction: row;
    text-align: left;
    padding-top: 150px;
}

.hero-content-v2 {
    max-width: 550px;
    margin-right: 50px;
}

.hero-content-v2 h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.hero-content-v2 p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.hero-buttons-v2 {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.btn-primary-v2 {
    display: inline-block;
    background-color: #00CFDE;
    color: var(--accent-color);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary-v2:hover {
    background-color: #00a9b3;
    transform: translateY(-2px);
}

.btn-secondary-v2 {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-secondary-v2:hover {
    background-color: #0e1a35;
    transform: translateY(-2px);
}

.hero-image-v2 {
    max-width: 550px;
}

.hero-image-v2 img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Sección de Partners (NUEVO) */
.partners-section {
    background-color: #F7FAFC;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid #E2E8F0;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partners-grid img {
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partners-grid img:hover {
    opacity: 1;
}

.partners-grid .more-partners {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Features Section (se mantiene) */
.features-section {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon img {
    width: 60px;
    height: auto;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-light);
}

/* Sección de Testimonios (NUEVO) */
.testimonials-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: #F7FAFC;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.testimonial-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.testimonial-card .testimonial-role {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.testimonial-card .testimonial-text {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}


/* Botones flotantes de redes sociales */
.social-floating {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-icon {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Footer */
.footer {
    background-color: var(--accent-color);
    color: white;
    padding: 60px 0 20px;
    font-size: 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info {
    display: flex;
    flex-direction: column;
}

.footer-logo img {
    width: 150px;
    margin-bottom: 20px;
}

.footer-info p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons img {
    width: 24px;
    height: 24px;
}

.footer-links h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero-v2 {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content-v2 {
        margin-right: 0;
        margin-top: 30px;
        text-align: center;
    }

    .hero-content-v2 h1 {
        font-size: 3rem;
    }

    .hero-buttons-v2 {
        justify-content: center;
    }

    .hero-image-v2 {
        max-width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-info {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }

    .nav-menu {
        position: fixed;
        right: 0;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        height: calc(100vh - 70px);
        padding: 40px 20px;
        gap: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 15px;
        border-radius: 10px;
        background-color: var(--gray-light);
        transition: background-color 0.3s;
    }

    .nav-menu a:hover {
        background-color: #e9e2f5;
    }

    .btn-demo {
        padding: 15px 0;
    }

    .country-flag {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content-v2 h1 {
        font-size: 2.5rem;
    }

    .hero-content-v2 p {
        font-size: 1.1rem;
    }

    .hero-buttons-v2 {
        flex-direction: column;
        align-items: center;
    }

    .partners-grid {
        gap: 20px;
    }

    .partners-grid img {
        height: 25px;
    }

    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-info {
        grid-column: span 1;
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }
}