/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 3rem;
    background-color: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

section:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
    font-size: 2rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #3498db;
}

/* Header */
header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 1.5rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 60px;
    width: auto;
    transition: transform 0.3s;
}

.logo:hover {
    transform: rotate(15deg);
}

.logo-text h1 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.slogan {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Navegación */
nav {
    background-color: #2c3e50;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
    position: relative;
}

nav ul li a:hover {
    color: #3498db;
    background-color: rgba(255, 255, 255, 0.1);
}

nav ul li a.active {
    color: #3498db;
    background-color: rgba(255, 255, 255, 0.1);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #3498db;
}

@media (max-width: 768px) {
    .mobile-login-item {
        display: block !important;
        margin: 10px 0;
    }
    
    .mobile-login-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        color: white !important;
        padding: 12px 20px;
        border-radius: 30px;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
        transition: all 0.3s ease;
    }
    
    .mobile-login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
        background: linear-gradient(135deg, #0069d9 0%, #004a9f 100%);
    }
    
    .mobile-login-btn i {
        font-size: 1.2rem;
    }
    
    /* Asegurar que el botón sea táctil */
    .mobile-login-btn {
        min-width: 140px;
        min-height: 44px; /* Tamaño mínimo para tacto */
    }
}

/* Sección Inicio */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid #3498db;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Sección Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-info {
    padding: 1.5rem;
}

.service-info h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.service-info p {
    color: #7f8c8d;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.service-info .service-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.service-info .service-btn:hover {
    background-color: #2980b9;
}


/* Responsive */
@media (max-width: 992px) {
    .client-logo {
        min-width: 150px;
        height: 100px;
        padding: 15px;
    }

    .testimonial-card {
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .client-logo {
        min-width: 130px;
        height: 90px;
        margin: 0 10px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
    }

    .testimonial-card {
        min-width: 85%;
        padding: 20px;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .client-logo {
        min-width: 110px;
        height: 80px;
    }

    .client-tooltip {
        font-size: 10px;
        padding: 3px 10px;
        bottom: -20px;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }
}

/* Sección Clientes */
.clients-container {
    margin-top: 3rem;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.client-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.client-logo {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.client-card:hover .client-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.client-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.client-sector {
    color: #7f8c8d;
    font-size: 0.85rem;
}

/* Testimonios */
.testimonials-section {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.testimonials-slider {
    position: relative;
    margin-top: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 0 1rem;
    position: relative;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    line-height: 1.7;
    position: relative;
    padding: 0 1rem;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    opacity: 0.2;
    position: absolute;
    font-family: serif;
    line-height: 1;
}

.testimonial-text::before {
    top: 0;
    left: -10px;
}

.testimonial-text::after {
    bottom: -20px;
    right: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    border: 2px solid #3498db;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0;
    color: #2c3e50;
}

.author-info p {
    margin: 0.3rem 0 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Slider Navigation */
.slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: #3498db;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .client-logo {
        max-width: 100px;
    }
}

@media (max-width: 576px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }

    .client-card {
        padding: 1rem;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .client-logo {
        min-width: 150px;
        height: 100px;
        padding: 15px;
    }

    .testimonial-card {
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .client-logo {
        min-width: 130px;
        height: 90px;
        margin: 0 10px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
    }

    .testimonial-card {
        min-width: 85%;
        padding: 20px;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .client-logo {
        min-width: 110px;
        height: 80px;
    }

    .client-tooltip {
        font-size: 10px;
        padding: 3px 10px;
        bottom: -20px;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }
}

/* Sección Contacto */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.contact-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-card p {
    margin-bottom: 0.5rem;
    color: #7f8c8d;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    padding: 0.8rem 1.5rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Sección Nosotros */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #7f8c8d;
    line-height: 1.7;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.about-image:hover img {
    transform: scale(1.05);
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.mv-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.mv-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mv-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0 0;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-logo p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links h3,
.footer-services h3,
.footer-social h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #3498db;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 0.8rem;
}

.footer-links a,
.footer-services a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover,
.footer-services a:hover {
    color: #3498db;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #3498db;
    transform: translateY(-3px);
}

.newsletter input {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.newsletter button {
    width: 100%;
    padding: 0.8rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.newsletter button:hover {
    background-color: #2980b9;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #bdc3c7;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom i {
    color: #e74c3c;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Responsive */
@media (max-width: 992px) {

    .contact-container,
    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 2rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 1rem;
    }

    section {
        padding: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.clients-container {
    padding: 40px 0;
    text-align: center;
}

.client-filters {
    margin: 20px 0;
}

.filter-btn {
    background: #f1f1f1;
    border: none;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background: #007bff;
    color: white;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px auto;
    max-width: 1000px;
}

.client-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.client-card:hover {
    transform: translateY(-5px);
}

.client-card img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.client-card:hover img {
    filter: grayscale(0%);
}

.client-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 15px;
    transition: bottom 0.3s;
}

.client-card:hover .client-overlay {
    bottom: 0;
}

.view-more-btn {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
    padding: 10px 25px;
    border-radius: 30px;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.view-more-btn:hover {
    background: #007bff;
    color: white;
}

/* Estilos para la carga */
.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Estilos para estrellas de valoración */
.rating-stars {
    color: #FFD700;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.rating-stars.large {
    font-size: 1.2rem;
    margin: 1rem 0;
}

/* Modal de detalle de cliente */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.client-detail .client-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.client-logo-large {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
}

.client-testimonial {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #3498db;
}

.client-testimonial blockquote {
    margin: 0;
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

.projects-list {
    list-style: none;
    padding: 0;
}

.projects-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.projects-list li:last-child {
    border-bottom: none;
}

.project-date {
    display: block;
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
}

/* Notificaciones */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    animation: slideIn 0.3s;
}

.notification.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.close-notification {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 1rem;
    color: inherit;
}