﻿/* Ocultar el sidebar del layout MVC */
#sidebar, .sidebar, aside, .side-nav, .side-menu, .side-bar {
    display: none !important;
}

/* Estilos base */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #10b981;
    --accent-color: #6366f1;
    --light-color: #f8fafc;
    --dark-color: #0f172a;
    --gray-color: #e2e8f0;
    --text-color: #334155;
}
.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-label {
    font-size: 0.8rem;
    font-weight: bold;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Inter', sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
    }

    .btn:hover::before {
        width: 300px;
        height: 300px;
    }

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

    .btn-secondary:hover {
        background-color: var(--primary-color);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

/* Barra de progreso de scroll */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    width: 0%;
    z-index: 9999;
    transition: width 0.2s ease;
}

/* Header y navegación */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-color);
}

    .logo span {
        color: var(--primary-color);
    }

    .logo i, .logo img {
        margin-right: 0.5rem;
        font-size: 2rem;
        color: var(--primary-color);
    }

nav ul {
    display: flex;
    list-style: none;
}

    nav ul li {
        margin: 0 1.2rem;
    }

        nav ul li a {
            color: var(--dark-color);
            font-weight: 500;
            position: relative;
            padding: 0.5rem 0;
        }

            nav ul li a::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 0;
                height: 2px;
                background-color: var(--primary-color);
                transition: width 0.3s ease;
            }

            nav ul li a:hover::after,
            nav ul li a.active::after {
                width: 100%;
            }

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Selector de tema */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 2rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
    }

input:checked + .slider {
    background-color: var(--primary-color);
}

    input:checked + .slider:before {
        transform: translateX(26px);
    }

.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }

/* Variables para tema oscuro */
[data-theme="dark"] {
    --primary-color: #60a5fa;
    --secondary-color: #34d399;
    --light-color: #111827;
    --dark-color: #f3f4f6;
    --gray-color: #1f2937;
    --text-color: #e5e7eb;
}

    [data-theme="dark"] .service-card,
    [data-theme="dark"] .stat-card,
    [data-theme="dark"] .testimonial-card,
    [data-theme="dark"] .contact-form {
        background-color: #1f2937;
        border-color: #374151;
    }

    [data-theme="dark"] header {
        background-color: rgba(17, 24, 39, 0.95);
    }

    [data-theme="dark"] nav ul li a {
        color: #e5e7eb;
    }

/* Sección Hero */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 80px;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.shape {
    position: absolute;
    opacity: 0.4;
    transition: transform 0.3s ease;
}

.shape1 {
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 20%;
    left: 10%;
}

.shape2 {
    width: 150px;
    height: 150px;
    background-color: var(--secondary-color);
    border-radius: 58% 42% 33% 67% / 36% 59% 41% 64%;
    bottom: 20%;
    right: 10%;
}

.shape3 {
    width: 80px;
    height: 80px;
    background-color: var(--accent-color);
    border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
    top: 50%;
    left: 50%;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.5s;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

    .hero-title span {
        color: var(--primary-color);
        display: block;
    }

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    transform: translateX(30px);
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.8s;
}

    .hero-image img {
        max-width: 100%;
        border-radius: 20px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        animation: float 4s ease-in-out infinite;
    }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Estilos de sección */
section {
    padding: 6rem 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .section-header.animate {
        opacity: 1;
        transform: translateY(0);
    }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 10px;
    }

.section-subtitle {
    max-width: 700px;
    margin: 0 auto;
}

/* Sección de servicios */
.services {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 0;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        transition: all 0.3s ease;
        z-index: -1;
        opacity: 0;
    }

    .service-card:hover {
        transform: translateY(-15px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

        .service-card:hover::before {
            height: 100%;
            opacity: 0.1;
        }

    .service-card.animate {
        opacity: 1;
        transform: translateY(0);
    }

    .service-card:nth-child(1) {
        transition-delay: 0.1s;
    }

    .service-card:nth-child(2) {
        transition-delay: 0.2s;
    }

    .service-card:nth-child(3) {
        transition-delay: 0.3s;
    }

    .service-card:nth-child(4) {
        transition-delay: 0.4s;
    }

    .service-card:nth-child(5) {
        transition-delay: 0.5s;
    }

    .service-card:nth-child(6) {
        transition-delay: 0.6s;
    }

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
    color: white;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-desc {
    transition: all 0.3s ease;
}

/* Sección Nosotros */
.about {
    background-color: var(--light-color);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-content {
    flex: 1;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .about-content.animate {
        opacity: 1;
        transform: translateX(0);
    }

.about-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

    .about-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 80px;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 10px;
    }

.about-text {
    margin-bottom: 1.5rem;
}

.about-image {
    flex: 1;
    position: relative;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .about-image.animate {
        opacity: 1;
        transform: translateX(0);
    }

    .about-image::before {
        content: '';
        position: absolute;
        width: 90%;
        height: 90%;
        border: 4px solid var(--primary-color);
        top: -20px;
        left: -20px;
        z-index: 1;
        border-radius: 10px;
        opacity: 0;
        transition: opacity 0.6s ease 0.3s;
    }

    .about-image.animate::before {
        opacity: 1;
    }

    .about-image img {
        width: 100%;
        border-radius: 10px;
        position: relative;
        z-index: 2;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-card {
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid var(--gray-color);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .stat-card.animate {
        opacity: 1;
        transform: translateY(0);
    }

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    .stat-card:nth-child(1) {
        transition-delay: 0.1s;
    }

    .stat-card:nth-child(2) {
        transition-delay: 0.2s;
    }

    .stat-card:nth-child(3) {
        transition-delay: 0.3s;
    }

    .stat-card:nth-child(4) {
        transition-delay: 0.4s;
    }

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.real-time-stats {
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.5s;
}

    .real-time-stats.animate {
        opacity: 1;
        transform: translateY(0);
    }

    .real-time-stats p {
        margin-bottom: 0.5rem;
    }

    .real-time-stats span {
        font-weight: bold;
        font-size: 1.2rem;
    }

/* Testimonios */
.testimonials {
    background-color: white;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 1rem;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

    .testimonial-slide.active {
        opacity: 1;
        transform: scale(1);
    }

.testimonial-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
}

    .testimonial-card::before {
        content: '\201C';
        font-size: 6rem;
        position: absolute;
        top: 0;
        left: 20px;
        color: var(--primary-color);
        opacity: 0.2;
        font-family: serif;
        line-height: 1;
    }

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 1rem;
}

.author-position {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.testimonial-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .testimonial-btn:hover {
        background-color: var(--primary-color);
        color: white;
        transform: translateY(-3px);
    }

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 0.5rem;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .testimonial-dot.active {
        background-color: var(--primary-color);
        transform: scale(1.2);
    }

/* Contacto */
.contact {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .contact-info.animate {
        opacity: 1;
        transform: translateX(0);
    }

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.contact-form {
    background-color: white;
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .contact-form.animate {
        opacity: 1;
        transform: translateX(0);
    }

.contact-form-title {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

    .contact-form-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 80px;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 10px;
    }

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray-color);
    border-radius: 6px;
    background-color: var(--light-color);
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--text-color);
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
        outline: none;
    }

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.hidden {
    display: none;
}

#form-success {
    text-align: center;
    padding: 2rem;
    color: var(--primary-color);
}

    #form-success i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

    .footer-col h4::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 2px;
        background-color: var(--primary-color);
    }

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
}

    .footer-logo span {
        color: var(--primary-color);
    }

    .footer-logo i {
        margin-right: 0.5rem;
        font-size: 2rem;
        color: var(--primary-color);
    }

.footer-about p {
    margin-bottom: 1.5rem;
    color: #94a3b8;
}

.footer-links li {
    margin-bottom: 0.75rem;
    list-style: none;
}

    .footer-links li a {
        color: #94a3b8;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
    }

        .footer-links li a:hover {
            color: white;
            padding-left: 5px;
        }

        .footer-links li a i {
            margin-right: 0.5rem;
            color: var(--primary-color);
        }

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: all 0.3s ease;
}

    .social-icon:hover {
        background-color: var(--primary-color);
        transform: translateY(-5px);
    }

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    text-align: center;
}

.copyright {
    color: #94a3b8;
    font-size: 0.9rem;
}

.subscribe-form {
    display: flex;
    margin-bottom: 1.5rem;
}

.subscribe-input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 6px 0 0 6px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.subscribe-btn {
    padding: 0.75rem 1rem;
    background-color: var(--primary-color);
    border: none;
    border-radius: 0 6px 6px 0;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .subscribe-btn:hover {
        background-color: var(--primary-dark);
    }

/* Responsive */
@media screen and (max-width: 991px) {
    .about-container {
        flex-direction: column;
    }

    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        justify-content: center;
    }

    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        height: 0;
        overflow: hidden;
        transition: all 0.4s ease;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }

        nav.active {
            height: 300px;
        }

        nav ul {
            flex-direction: column;
            padding: 2rem 5%;
        }

            nav ul li {
                margin: 1rem 0;
            }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .theme-toggle {
        margin-right: 1rem;
    }
}

@media screen and (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card {
        padding: 2rem;
    }

    .contact-grid {
        gap: 2rem;
    }
}