:root {
    --primary-color: #ff0000;
    --text-color: #333333;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --black: #000000;
    --gray: #888888;
    --light-gray: #f8f8f8;
    --orange: #ff6b35;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
#header {
    position: fixed;
    width: 100%;
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 100px;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

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

.contact-btn {
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    padding: 13px 25px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

.header-social {
    display: flex;
    gap: 15px;
}

.header-social a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.header-social a:hover {
    color: var(--primary-color);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.cta-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

/* About Section */
#about {
    padding: 100px 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    height: 400px;
    object-fit: cover;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* Mission Vision Section */
#mission-vision {
    padding: 100px 0;
    background: var(--white);
}

.mv-content {
    max-width: 1000px;
    margin: 0 auto;
}

.mv-text h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-color);
    text-align: center;
}

.mv-blocks {
    display: flex;
    gap: 50px;
}

.mission,
.vision {
    flex: 1;
}

.mission h3,
.vision h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mission i,
.vision i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.mission p,
.vision p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Footer */
footer {
    background: #f0f0f0;
    color: var(--text-color);
    padding: 60px 0 30px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr 1fr; /* Ajuste del ancho de las columnas */
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-nav h4,
.footer-contact h4,
.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

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

.footer-nav ul li {
    margin-bottom: 10px;
}

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

.contact-item {
    display: flex;
    align-items: center; /* Alineación vertical del icono y texto */
    gap: 8px; /* Espacio entre el icono y el texto */
    margin-bottom: 15px;
    word-break: normal; /* Evitar división incorrecta del texto */
}

.contact-item a {
    white-space: nowrap; /* Evitar división en múltiples líneas */
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* Redes Sociales */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.1);
    text-decoration: none;
    border-bottom: none;
}

.social-links a:hover {
    color: var(--white);
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Animations */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.slide-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

.slide-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

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

    .menu-toggle i {
        font-size: 24px;
        color: var(--text-color);
    }

    .nav-content {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        transition: all 0.3s ease;
    }

    .nav-content.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .header-social {
        margin-top: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .mv-blocks {
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr; /* Dos columnas en vez de cuatro */
        gap: 30px;
        text-align: center; /* Centra el contenido del footer */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo img {
        height: 60px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr; /* Una sola columna */
        text-align: center;
    }

    /* CORREGIDO: Ya no ocultamos el logo en móvil */
    .footer-logo {
        text-align: center;
        margin-bottom: 15px; /* Espacio debajo del logo */
    }

    .footer-logo img {
        height: 50px; /* Logo un poco más pequeño para móvil */
        margin: 0 auto 10px; /* Centrar el logo */
    }

    .social-links {
        justify-content: center;
    }

    /* Mejoras adicionales para móvil */
    #header {
        padding: 10px 0;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .mv-text h2 {
        font-size: 2rem;
    }

    .mission h3,
    .vision h3 {
        font-size: 1.3rem;
    }

    .mission p,
    .vision p {
        font-size: 1rem;
    }

    .contact-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    #about,
    #mission-vision {
        padding: 60px 0;
    }
}

/* Footer NAV & CONTACT Hover efecto rojo */
.footer-nav a:hover,
.contact-item a:hover {
    color: var(--primary-color) !important;
    transition: color 0.3s ease;
}

/* Ajustes específicos para el footer en móviles */
@media (max-width: 480px) {
    /* Organizar mejor el espaciado y centrado */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    /* Mejorar el aspecto de los elementos de contacto */
    .contact-item {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    /* Estilo para los iconos sociales - Eliminando líneas y bordes inferiores */
    .social-links {
        display: flex;
        justify-content: center;
        gap: 20px;
    }
    
    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        background-color: rgba(255, 0, 0, 0.1);
        border-radius: 50%;
        font-size: 1.5rem;
        text-decoration: none;
        border-bottom: none;
        box-shadow: none;
        border: none;
    }
    
    /* Eliminar cualquier decoración de texto o líneas para todos los iconos sociales */
    .footer-social a, 
    .social-links a i {
        text-decoration: none !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }
    
    /* Reducir el tamaño de los títulos de sección */
    .footer-nav h4,
    .footer-contact h4,
    .footer-social h4 {
        margin-bottom: 15px;
    }
    
    /* Añadir algo de espacio entre las secciones */
    #contacto .container {
        padding-bottom: 20px;
    }
    
    /* Ajuste para la dirección que parece estar creando un espacio grande */
    .contact-item i.fas.fa-map-marker-alt + span {
        display: inline-block;
        text-align: center;
        margin-top: 5px;
    }
}
/* Estilos para el botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-decoration: none;
    padding: 15px 25px 10px 20px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-float-icon {
    font-size: 32px; /* Tamaño más grande del ícono */
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float-text {
    font-size: 16px; /* Texto más grande */
    font-weight: 600;
    white-space: nowrap;
}

/* Estilos responsivos para móviles */
@media (max-width: 767px) {
    .whatsapp-float {
        padding: 12px 20px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float-icon {
        font-size: 28px; /* Aún grande pero adaptado a móvil */
    }
    
    .whatsapp-float-text {
        font-size: 14px;
    }
}

/* Para pantallas muy pequeñas, solo mostrar el ícono */
@media (max-width: 480px) {
    .whatsapp-float {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }
    
    .whatsapp-float-icon {
        margin-right: 0;
        font-size: 32px;
    }
    
    .whatsapp-float-text {
        display: none;
    }
}
/* Estilos para el chatbot */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    font-family: 'Montserrat', sans-serif;
}

.chatbot-toggle {
    display: flex;
    align-items: center;
    background-color: #1a365d;
    color: #ffffff;
    border-radius: 50px;
    padding: 10px 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    background-color: #2c4a7c;
}

.chatbot-avatar {
    background-color: #ffffff;
    color: #1a365d;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 20px;
}

.chatbot-info {
    display: flex;
    flex-direction: column;
}

.chatbot-name {
    font-weight: 600;
    font-size: 14px;
}

.chatbot-status {
    font-size: 12px;
    color: #8cff7a;
}

.chatbot-window {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 320px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 500px;
}

.chatbot-header {
    background-color: #1a365d;
    color: #ffffff;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
}

.chatbot-header-avatar {
    background-color: #ffffff;
    color: #1a365d;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 20px;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 16px;
}

.chatbot-close {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

.chatbot-messages {
    padding: 15px;
    overflow-y: auto;
    height: 300px;
    display: flex;
    flex-direction: column;
}

.message-container {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.bot-message {
    align-items: flex-start;
}

.user-message {
    align-items: flex-end;
}

.message-bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.bot-message .message-bubble {
    background-color: #f0f2f5;
    color: #333;
    border-bottom-left-radius: 5px;
}

.user-message .message-bubble {
    background-color: #1a365d;
    color: #ffffff;
    border-bottom-right-radius: 5px;
}

.message-bubble p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

/* Estilos para los botones de servicios */
.services-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    padding-left: 0;
    width: 100%;
}

.service-option-btn {
    background-color: #1a365d;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 5px rgba(26, 54, 93, 0.2);
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    max-width: 250px;
}

.service-option-btn:hover {
    background-color: #2c4a7c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 54, 93, 0.3);
}

.service-option-btn:active {
    transform: translateY(0);
}

/* Estilos para el botón de WhatsApp dentro del chat */
.whatsapp-button-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 15px;
    padding-left: 0;
}

.whatsapp-chat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.whatsapp-chat-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-chat-btn i {
    margin-right: 8px;
    font-size: 18px;
}

.chatbot-suggestions {
    padding: 10px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    border-top: 1px solid #e9e9e9;
}

.suggestion-btn {
    background-color: #f0f2f5;
    border: none;
    border-radius: 15px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
}

.suggestion-btn:hover {
    background-color: #e0e2e5;
}

.chatbot-input {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-top: 1px solid #e9e9e9;
}

.chatbot-input input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
}

.chatbot-input button {
    background-color: #1a365d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.chatbot-input button:hover {
    background-color: #2c4a7c;
}

/* Responsive styles */
@media screen and (max-width: 767px) {
    .chatbot-window {
        width: 280px;
        left: 0;
        bottom: 70px;
        max-height: 400px;
    }
    
    .chatbot-messages {
        height: 250px;
    }
    
    .chatbot-toggle {
        padding: 8px 15px;
    }
    
    .chatbot-avatar {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .chatbot-name {
        font-size: 13px;
    }
    
    .chatbot-status {
        font-size: 11px;
    }
    
    .whatsapp-chat-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .service-option-btn {
        font-size: 12px;
        padding: 9px 14px;
    }
}