/* 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 */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    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: 5px;
    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: 5px;
    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 SPA */
.hero-spa {
    background-color: #f9f5f9; /* Un tono claro para el fondo */
    padding: 100px 20px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content-spa {
    max-width: 800px;
    margin-bottom: 40px;
}

.hero-content-spa h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.hero-content-spa .hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin-bottom: 40px;
}

.hero-card h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-card p {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 15px;
}

.hero-card .hero-btn {
    border-radius: 5px;
}

.hero-image-spa {
    max-width: 100%;
    height: auto;
}

.hero-image-spa img {
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Solutions Section */
.solutions-section {
    padding: 80px 0;
    background-color: var(--gray-light);
    text-align: center;
}

.solutions-section .section-title {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.solutions-section .section-subtitle {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1rem;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.solution-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease-in-out;
}

.solution-card:hover {
    transform: translateY(-5px);
}

.solution-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.solution-card h3 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.solution-card p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: var(--white);
}

.faq-section .section-title {
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.faq-item {
    background-color: var(--gray-light);
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.faq-question {
    background-color: transparent;
    color: var(--accent-color);
    padding: 15px;
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.faq-question.open::after {
    content: '−';
    color: var(--dark-color);
}

.faq-answer {
    padding: 0 15px;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.faq-answer.open {
    max-height: 500px; /* Ajusta según la necesidad */
    padding: 15px;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.contact-section .section-title {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-section .section-subtitle {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1rem;
}

.contact-section .contact-btn {
    border-radius: 5px;
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* 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-spa {
        padding-top: 80px;
    }

    .hero-content-spa {
        margin-bottom: 30px;
    }

    .hero-image-spa img {
        max-width: 400px;
    }

    .solutions-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .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: 5px;
        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-spa h1 {
        font-size: 2.8rem;
    }

    .hero-content-spa .hero-subtitle {
        font-size: 1rem;
    }

    .hero-card {
        padding: 30px;
    }

    .hero-card h2 {
        font-size: 1.8rem;
    }

    .hero-image-spa img {
        max-width: 300px;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .faq-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;
    }
}
/* Estilos para FAQ desplegable */
.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.faq-question.open::after {
    content: '−';
    color: var(--dark-color);
}