/* Reset y variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores primarios */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    /* Colores de acento */
    --accent-50: #ecfdf5;
    --accent-100: #d1fae5;
    --accent-500: #10b981;
    --accent-600: #059669;
    --accent-700: #047857;

    /* Grises */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Fuente */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Transiciones */
    --transition: all 0.3s ease;
}

/* Base */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-700);
    background-color: #ffffff;
}

html {
    scroll-behavior: smooth;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--primary-800);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-900);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-600);
    border: 2px solid var(--primary-600);
}

.btn-outline:hover {
    background-color: var(--primary-600);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* Header */
.header {
    background-color: white;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    background-color: var(--primary-800);
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: white;
    font-size: 2rem;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-800);
    line-height: 1;
}

.logo-text p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1;
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-800);
}

.cta-desktop {
    display: none;
}

@media (min-width: 768px) {
    .cta-desktop {
        display: inline-flex;
    }
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-700);
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--gray-200);
}

.nav-mobile.active {
    display: flex;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
    padding: 5rem 0;
}

.hero-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-800);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.accent {
    color: var(--accent-600);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-icon {
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 2rem;
    color: var(--accent-600);
}

.stat h3 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-800);
    margin-bottom: 0.25rem;
}

.stat p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.hero-image {
    position: relative;
    animation: slideInRight 0.8s ease-out;
}

.image-container {
    background-color: white;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-2xl);
    position: relative;
}

.image-container img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
    border-radius: 0.5rem;
}

.image-badge {
    position: absolute;
    /*top: -1rem;*/
    right: -1rem;
    background-color: var(--accent-600);
    color: white;
    padding: 1rem;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
}

.image-badge i {
    font-size: 4rem;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-text {
    animation: fadeIn 0.6s ease-out;
}

/* Sections comunes */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-800);
    margin-bottom: 1rem;
}

.section-header h3 {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--primary-800);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 48rem;
    margin: 0 auto;
}

/* Services */
.services {
    padding: 5rem 0;
    background-color: var(--gray-50);
}

.services-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.service-icon {
    background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-800);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.service-features li::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--accent-600);
    border-radius: 50%;
    margin-right: 0.75rem;
}

.services-cta {
    background: linear-gradient(135deg, var(--primary-800), var(--accent-600));
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
}

.services-cta h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.services-cta p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.services-cta .btn {
    background-color: white;
    color: var(--primary-800);
}

.services-cta .btn:hover {
    background-color: var(--gray-100);
}

/* About */
.about {
    padding: 5rem 0;
    background-color: white;
}

.about-content {
    display: grid;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}

@media (min-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-800);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.certifications {
    background-color: var(--gray-50);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.certifications h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-800);
    margin-bottom: 1rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cert-dot {
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--accent-600);
    border-radius: 50%;
}

.cert-item span {
    color: var(--gray-700);
    font-size: 0.875rem;
}

.about-image {
    position: relative;
}

.about-image-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 24rem;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

@media (max-width: 600px) {
    .about-image-img {
        min-height: 120px;
        max-height: 14rem;
    }
}

.about-image .image-badge {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
}

.about-image .image-badge h4 {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--primary-800);
    margin-bottom: 0.25rem;
}

.about-image .image-badge p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.values-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.value-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    box-shadow: var(--shadow-xl);
}

.value-icon {
    background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.value-icon i {
    font-size: 2rem;
    color: white;
}

.value-card h4 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-800);
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--gray-600);
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
}

.testimonials-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-2xl);
}

.quote-icon {
    margin-bottom: 1.5rem;
}

.quote-icon i {
    font-size: 2rem;
    color: var(--accent-600);
}

.testimonial-card p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-weight: bold;
    color: var(--primary-800);
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--accent-600);
    font-weight: 500;
}

.stats {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-800);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--gray-600);
}

/* Contact */
.contact {
    padding: 5rem 0;
    background-color: var(--gray-50);
}

.contact-content {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-content {
        grid-template-columns: 2fr 1fr;
    }
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

.form-header h3 {
    font-size: 1.5rem;
    color: var(--primary-800);
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info {
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.contact-info h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-800);
    margin-bottom: 1rem;
}

.info-item {
    margin-bottom: 1rem;
}

.info-item h4 {
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.info-item p {
    color: var(--gray-600);
}

.why-choose-us {
    background: linear-gradient(135deg, var(--primary-800), var(--accent-600));
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
}

.why-choose-us h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.why-choose-us ul {
    list-style: none;
}

.why-choose-us li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.why-choose-us li::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background-color: white;
    border-radius: 50%;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--primary-900);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    background-color: var(--accent-600);
}

.footer-logo h3 {
    font-size: 1.25rem;
    font-weight: bold;
}

.footer-logo p {
    font-size: 0.875rem;
    opacity: 0.75;
}

.footer-company p {
    color: var(--gray-300);
    margin-bottom: 1rem;
    max-width: 28rem;
}

.company-info {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.footer-services h4,
.footer-contact h4 {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-services ul,
.footer-contact ul {
    list-style: none;
}

.footer-services li,
.footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-services a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
}

.footer-services a:hover {
    color: var(--accent-400);
}

.footer-contact li {
    color: var(--gray-300);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-400);
}

/* Toast */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background-color: var(--accent-600);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    /* Mueve el toast fuera del área visible */
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 100;
    max-width: calc(100vw - 4rem);
    /* evita desbordamiento horizontal */
    overflow-wrap: break-word;
    opacity: 0;
}

.toast.show {
    transform: translateX(0);
    /* Muestra el toast dentro de pantalla */
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast-content i {
    font-size: 1.25rem;
}

/* Responsive mejoras */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states para accesibilidad */
.btn:focus,
input:focus,
textarea:focus,
.nav-link:focus {
    outline: 2px solid var(--accent-500);
    outline-offset: 2px;
}

/* Modal de imagenes */
                    .modal {
                        position: fixed;
                        z-index: 1000;
                        left: 0;
                        top: 0;
                        width: 100vw;
                        height: 100vh;
                        overflow: auto;
                        background: rgba(0, 0, 0, 0.6);
                        display: flex;
                        align-items: center;
                        justify-content: center;
                    }
                    .modal-content {
                        background: #fff;
                        padding: 2rem;
                        border-radius: 8px;
                        position: relative;
                        width: 700px;
                        height: 500px;
                        max-width: 95vw;
                        max-height: 95vh;
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        align-items: center;
                    }
                    .close {
                        position: absolute;
                        top: 10px;
                        right: 20px;
                        font-size: 2rem;
                        cursor: pointer;
                    }
                    .carousel {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        width: 100%;
                        height: 100%;
                    }
                    .carousel-btn {
                        background: none;
                        border: none;
                        font-size: 2rem;
                        cursor: pointer;
                        color: #333;
                    }
                    .carousel-slides {
                        width: 650px;
                        height: 400px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        overflow: hidden;
                    }
                    .carousel-img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        border-radius: 8px;
                    }
                    @media (max-width: 750px) {
                        .modal-content {
                            width: 95vw;
                            height: 70vw;
                            min-height: 300px;
                        }
                        .carousel-slides {
                            width: 90vw;
                            height: 40vw;
                        }
                    }
                    @media (max-width: 500px) {
                        .modal-content {
                            width: 98vw;
                            height: 60vw;
                            min-height: 220px;
                        }
                        .carousel-slides {
                            width: 90vw;
                            height: 40vw;
                        }
                    }