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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 80px;
}

/* Header y Navegación */
.navbar {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 0 0 15px 15px;
    padding: 0.5rem 0;
}

.navbar-brand img {
    max-height: 40px;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: #007bff;
}

.btn-primary {
    background: #007bff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
}

.btn-primary:hover {
    background: #0056b3;
}

/* Secciones principales */
section {
    padding: 6rem 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-weight: 600;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    margin-top: -80px;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
}

.cta-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-card i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

.service-card p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-link:hover {
    color: #007bff;
}

/* Contacto */
.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-item i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
    line-height: 1;
}

.contact-item p {
    color: #6c757d;
    margin: 0;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 6rem;
}

footer .container {
    padding: 0 1rem;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 350px;
    max-width: 90%;
    display: none;
}

.chat-widget.active {
    display: block;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #007bff;
    color: white;
    border-radius: 15px 15px 0 0;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.chat-header img {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
}

.chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 1rem;
}

.chat-input {
    display: flex;
    padding: 1rem;
    gap: 1rem;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.chat-input button {
    padding: 0.75rem 1.5rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chat-input button:hover {
    background: #0056b3;
}

/* Botón de soporte */
.support-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.support-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

/* Ajustes para computadora */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.chat-trigger:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .chat-widget {
        width: 90%;
    }
}

/* Estilos del menú móvil */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: block;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.menu-icon:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.menu-icon i {
    font-size: 24px;
    color: #2c3e50;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1001;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

/* Mostrar menú cuando el checkbox está marcado */
.menu-toggle:checked ~ .mobile-nav {
    display: block;
}

/* Estilos del menú en pantallas pequeñas */
@media screen and (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        text-align: center;
        color: #2c3e50;
        text-decoration: none;
        transition: background-color 0.3s ease;
    }

    .nav-links a:hover {
        background-color: #f0f0f0;
    }

    .support-button {
        display: block;
        width: 100%;
        padding: 1rem;
        background: #3498db;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .support-button:hover {
        background: #2980b9;
    }
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

/* Ocultar menú móvil en desktop */
.mobile-menu {
    display: none;
}

/* Estilos responsivos */
@media screen and (max-width: 768px) {
    /* Mostrar menú móvil en móviles */
    .mobile-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 1rem;
    }

    .menu-toggle {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.8rem;
        border-radius: 5px;
        transition: background-color 0.3s ease;
        min-width: 40px;
        min-height: 40px;
        position: relative;
        z-index: 1002;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .menu-toggle:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }

    .menu-toggle i {
        font-size: 24px;
        color: #2c3e50;
    }

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1523275335684-37898b6baf30?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    padding: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 2rem;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #2980b9;
}

/* Servicios */
.services {
    padding: 5rem 2rem;
    background-color: #f9f9f9;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card a {
    text-decoration: none;
    color: #2c3e50;
    display: block;
    transition: color 0.3s ease;
}

.service-card a:hover {
    color: #3498db;
    text-decoration: none;
}

.service-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.service-card p {
    color: #7f8c8d;
}

/* Contacto */
.contact {
    padding: 5rem 2rem;
    background-color: #fff;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    padding: 2rem;
}

.contact-item i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Estilos para la página Acerca de */
.about-hero {
    padding: 120px 2rem 4rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    text-align: center;
}

.visual-section {
    padding: 80px 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.visual-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.visual-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    height: 350px;
}

.visual-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #3498db 0%, #2c3e50 100%);
    opacity: 0.1;
    z-index: 1;
}

.visual-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.visual-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.visual-content i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.visual-content h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.visual-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.about-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.about-section h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
}

.about-section p {
    color: #666;
    line-height: 1.8;
    text-align: justify;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.about-section ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.about-section ul li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.about-section ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    top: 0;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.expertise-item {
    text-align: center;
    padding: 2rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.expertise-item:hover {
    transform: translateY(-5px);
}

.expertise-item i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.expertise-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.expertise-item p {
    color: #666;
    font-size: 0.9rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.achievement-item {
    text-align: center;
    padding: 2rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.achievement-number {
    font-size: 2.5rem;
    color: #3498db;
    font-weight: bold;
    margin-bottom: 1rem;
}

.achievement-item p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.team-section {
    margin-top: 4rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.team-member {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.team-member p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.contact-section {
    background: #f8f9fa;
    padding: 4rem 2rem;
    text-align: center;
}

.contact-section .contact-info {
    max-width: 800px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.contact-section .contact-item {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-section .contact-item i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

/* Ajustes generales */
.about-hero h1 {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.about-hero p {
    font-size: 1.5rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }
    
    .about-hero p {
        font-size: 1.2rem;
    }
    
    .about-section {
        padding: 1.5rem;
    }
    
    .about-section h2 {
        font-size: 1.5rem;
    }
    
    .about-section p {
        font-size: 0.9rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-member {
        padding: 1.5rem;
    }
    
    .team-member h3 {
        font-size: 1.2rem;
    }
    
    .contact-section .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-section .contact-item {
        padding: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
        position: relative;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hamburger {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .hamburger span {
        width: 24px;
        height: 2px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        overflow-y: auto;
    }

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

    .nav-links ul {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        display: block;
        padding: 0.8rem;
        color: #333;
        text-decoration: none;
    }

    .support-button {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .service-card {
        margin-bottom: 1rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .contact-item {
        text-align: center;
    }

    .chat-widget {
        width: 100%;
        max-width: 100%;
        bottom: 0;
        right: 0;
        left: 0;
        border-radius: 0;
        margin: 0;
    }

    .chat-trigger {
        bottom: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
    }

    .chat-trigger img {
        width: 24px;
        height: 24px;
    }
}

/* Animación del menú hamburguesa */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navegación principal */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.nav-links ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    gap: 1.5rem;
}

.nav-links li {
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #007bff;
}
}
