:root {
    --primary-blue: #2531DB;
    --primary-light: #ffff;
    --primary-mix: #E6E7F9;
    --text-dark: #1A1A1A;
    --text-light: #ffff;
    --overlay: rgba(37, 49, 219, 0.1);
    --accent: #2531DB;
    --hover-accent: #1a20af;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header y Navegación */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/*begin hamburger*/
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
    position: relative;
}

.hamburger {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--primary-blue);
    position: relative;
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 3px;
    background: var(--primary-blue);
    left: 0;
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
    background: var(--primary-blue);
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
    background: var(--primary-blue);
}

/* Navegación */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slider {
    position: relative;
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-light);
    z-index: 2;
    width: 80%;
    max-width: 800px;
}

.slide-content h1 {
    font-size: 45px;
}

.slide-content p {
    font-size: 20px;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(37, 49, 219, 0.3), rgba(37, 49, 219, 0.5));
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 1rem;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.prev-slide {
    left: 2rem;
}

.next-slide {
    right: 2rem;
}

/* Servicios Acordeón */
.services {
    padding: 6rem 2rem;
    background: var(--primary-mix);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-blue);
}

.accordion-container {
    display: flex;
    min-height: 500px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 0.5rem;
}

.accordion-panel {
    position: relative;
    flex: 1;
    transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.accordion-panel:hover {
    flex: 4;
}

.accordion-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-panel:hover .accordion-background {
    transform: scale(1.1);
}

.accordion-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.accordion-panel:hover .accordion-content {
    opacity: 1;
}

/* Botón de servicio */
.service-btn {
    display: none;
}

/* Botones generales */
.btn {
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--text-light);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: var(--hover-accent);
}

/* Socios Comerciales */
.partners {
    padding: 6rem 1rem;
    background: var(--primary-light);
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.partner-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--primary-mix);
    border-radius: 15px;
    padding: 3rem;
    margin-top: 2rem;
    width: 100%;
}

.partner-content h3 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.partner-features {
    list-style: none;
    margin-top: 2rem;
}

.partner-features li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.partner-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
}

.partner-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Ubicación */
.location {
    position: relative;
    height: 600px;
    background: var(--primary-mix);
}

.map-container {
    position: relative;
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.location-info {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-width: 350px;
}

.location-info h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.location-info p {
    margin-bottom: 1.5rem;
}

/* Contacto */
.contact {
    padding: 4rem 1rem;
    background: var(--primary-light);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

button[type="submit"]:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.contact-info {
    background: var(--primary-mix);
    padding: 2rem;
    border-radius: 10px;
    height: fit-content;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--text-light);
    padding: 4rem 1rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 0.8;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sobre Nosotros */
.about {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    color: white;
}

.about-container {
    position: relative;
    width: 100%;
    max-width: 2200px;
    max-height: 2000px;
    z-index: 2;
}

.about-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.about-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: white;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Media Queries */
@media (max-width: 768px) {
    /* Menú móvil */
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 2rem;
        padding-top: 3rem;
        z-index: 999;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem;
        color: var(--primary-blue);
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(37, 49, 219, 0.1);
    }

    /* Servicios en móvil */
    .accordion-container {
        flex-direction: column;
        gap: 1.5rem;
        min-height: auto;
    }

    .accordion-panel {
        height: 300px;
        flex: none;
        width: 100%;
        position: relative;
        transition: transform 0.3s ease;
    }

    .accordion-panel:hover {
        flex: none;
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .accordion-content {
        opacity: 1;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
        padding: 1.5rem;
    }

    .service-btn {
        display: inline-block;
        padding: 0.5rem 1rem;
        background: var(--accent);
        color: white;
        text-decoration: none;
        border-radius: 4px;
        margin-top: 1rem;
        font-size: 0.9rem;
        transition: background 0.3s ease;
    }

    .service-btn:hover {
        background: var(--hover-accent);
    }

    /* Otros ajustes móviles */
    .stats-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-content h2 {
        font-size: 2.5rem;
    }

    .about-content p {
        font-size: 1.1rem;
    }

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

    .partner-highlight {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .partner-image img {
        height: 250px;
    }
}

@media (max-width: 1024px) {
    .partner-highlight {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efectos de hover y estados activos */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
    width: 300%;
    height: 300%;
}

input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 2px rgba(37, 49, 219, 0.2);
}

/* Mensajes de formulario */
.error-message {
    color: #ff3333;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.success-message {
    color: #00cc66;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Ajuste adicional para el footer en dispositivos móviles */
.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}