/* Base y Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: transparent; /* Fondo transparente para el body */
    scroll-behavior: smooth; /* Desplazamiento suave para anclas */
    overflow-x: hidden; /* Evita el scroll horizontal */
}

/* Estilos para el Canvas de partículas */
#particlesCanvas {
    position: fixed; /* Fija el canvas en el fondo */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Lo envía al fondo, detrás de todo el contenido */
    background-color: transparent; /* Asegura que el fondo del canvas sea transparente */
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Elimina espacio extra debajo de las imágenes */
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    color: #0056b3;
}

ul {
    list-style: none;
}

/* Header */
.main-header {
    background-color: #fff;
    padding: 10px 0; /* Ajustado para hacer la barra menos alta */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Para que el logo y nav se ajusten en móviles */
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: #007bff;
    margin-right: 20px; /* Espacio entre logo y nav en desktop */
}

/* --- ESTILOS PARA EL MENÚ MÓVIL Y HAMBURGUESA --- */

/* Oculta el menú hamburguesa por defecto en desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8em;
    color: #007bff;
    cursor: pointer;
    padding: 10px;
}

/* Estilos de la navegación principal (desktop) */
.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 10px; /* Ajustado para hacer la barra de menú menos ancha */
}

.main-nav ul li a {
    color: #555;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #007bff;
}

/* --- FIN ESTILOS MENÚ MÓVIL Y HAMBURGUESA --- */


/* Botones */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 20px;
    cursor: pointer; /* Indica que es clickeable */
}

.primary-btn {
    background-color: #007bff;
    color: #fff;
    border: 2px solid #007bff;
}

.primary-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.secondary-btn {
    background-color: #fff;
    color: #007bff;
    border: 2px solid #007bff;
}

.secondary-btn:hover {
    background-color: #e6f0ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.1);
}

/* Secciones Generales */
section {
    padding: 80px 0;
    text-align: center;
    background-color: transparent; /* Fondo transparente para las secciones */
}

.section-title {
    font-size: 2.5em;
    color: #222;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #007bff;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    /* Degradado suave con transparencia del 0.7 */
    background: linear-gradient(to right, rgba(230, 240, 255, 0.7), rgba(195, 218, 255, 0.7)); 
    color: #333;
    text-align: left;
    padding: 100px 0;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px; /* Espacio entre el texto y la imagen */
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px; /* Asegura que no sea demasiado pequeño */
}

.hero-content h2 {
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #0056b3;
}

.hero-content p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.hero-quote {
    font-style: italic;
    font-weight: 600;
    color: #007bff;
    margin-top: 30px;
    font-size: 1.2em;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex; /* Para centrar la imagen si es más pequeña */
    justify-content: center;
    align-items: center;
}

.hero-image img {
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: translateY(-5px);
}

/* Services Section */
.services-section {
    background-color: transparent; /* Fondo transparente para la sección de servicios */
    padding: 80px 0;
}

.service-card {
    background-color: #fff; /* Mantener el fondo blanco para las tarjetas de servicio */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
    padding: 40px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.service-header h3 {
    font-size: 2em;
    color: #007bff;
    margin-bottom: 10px;
    flex-basis: 70%; /* Para que el título ocupe más espacio */
    min-width: 200px;
}

.service-price {
    font-size: 2.2em;
    font-weight: 700;
    color: #333;
    background-color: #e6f0ff;
    padding: 8px 15px;
    border-radius: 8px;
    flex-basis: 25%; /* Para que el precio tenga su propio espacio */
    text-align: center;
    min-width: 120px;
}
.service-price span {
    font-size: 0.9em; /* Ajusta el tamaño de la moneda */
}

.service-content {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.service-content.reverse-order {
    flex-direction: row-reverse; /* Para alternar la posición de la imagen */
}

.service-image-container {
    flex: 1;
    min-width: 280px; /* Mínimo para la imagen */
    max-width: 45%;
}

.service-image-container img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-description {
    flex: 2;
    min-width: 300px; /* Mínimo para la descripción */
    max-width: 55%;
}

.service-description p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.service-description h4 {
    font-size: 1.4em;
    color: #007bff;
    margin-top: 25px;
    margin-bottom: 10px;
}

.service-description ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.service-description ul li {
    margin-bottom: 8px;
    font-size: 1em;
}

.payment-info {
    background-color: #f0f8ff;
    border-left: 4px solid #007bff;
    padding: 15px 20px;
    border-radius: 5px;
    margin-top: 25px;
}

.payment-info p {
    margin: 5px 0;
    font-size: 0.95em;
}

.payment-info strong {
    color: #0056b3;
}

.small-text {
    font-size: 0.85em;
    color: #666;
}

/* Clase para resaltar texto en azul */
.highlight-blue {
    color: #007bff; /* El mismo azul que "Tu visión es nuestra inspiración." */
    font-weight: 600; /* Para mantener la negrita que tenían */
}


/* Contact Section */
.contact-section {
    background-color: transparent; /* Fondo transparente para la sección de contacto */
    padding: 80px 0;
    text-align: left; /* Ajustado para el contenido de contacto */
}

.contact-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-section .section-title {
    text-align: center; /* Título centrado para esta sección */
    margin-bottom: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 2em;
    color: #007bff;
    margin-bottom: 30px;
}

.contact-info p {
    font-size: 1.1em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-icon {
    font-size: 1.5em;
    margin-right: 10px;
    color: #007bff;
    line-height: 1; /* Asegura que el ícono no cree espacio extra */
}

.cta-phrase {
    font-size: 1.3em;
    font-weight: 600;
    color: #555;
    margin-top: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.contact-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-image img {
    border-radius: 10px;
}


/* Footer */
.main-footer {
    background-color: rgba(51, 51, 51, 0.8); /* Fondo con transparencia del 0.8 */
    color: #fff;
    text-align: center;
    padding: 25px 0;
    font-size: 0.9em;
}

.main-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start; /* Alinea los elementos en la parte superior */
    text-align: left; /* Alinea el texto a la izquierda dentro de cada columna */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    gap: 20px; /* Espacio entre las columnas del footer */
}

.footer-sitemap,
.footer-brand-info, /* Nuevo estilo para la información de la marca en el footer */
.footer-copyright {
    flex: 1;
    min-width: 200px; /* Ancho mínimo para cada columna */
    margin-bottom: 20px; /* Espacio inferior en móviles */
}

.footer-sitemap h4,
.footer-brand-info h4 { /* Estilo para el título de la marca */
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #007bff;
}

.footer-brand-info p { /* Estilo para el eslogan */
    font-size: 0.95em;
    color: #ccc;
    line-height: 1.4;
}

.footer-sitemap ul {
    list-style: none;
    padding: 0;
}

.footer-sitemap ul li {
    margin-bottom: 8px;
}

.footer-sitemap ul li a {
    color: #fff;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.footer-sitemap ul li a:hover {
    color: #007bff;
}

.footer-copyright {
    text-align: right; /* Alinea el copyright a la derecha en desktop */
}

.footer-copyright p {
    font-size: 0.9em;
    color: #ccc;
}


/* Animaciones Sutiles (Clases añadidas por JS) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.active {
    opacity: 1;
    transform: translateX(0);
}


.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.slide-up.active {
    opacity: 1;
    transform: translateY(0);
}

.animate-btn {
    transition: all 0.3s ease;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366; /* Color de WhatsApp */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 8px #777;
}

/* Responsive Design */
@media (max-width: 900px) {
    /* --- MENÚ HAMBURGUESA --- */
    .menu-toggle {
        display: block; /* Muestra el botón de hamburguesa */
    }

    .main-nav {
        display: none; /* Oculta el menú por defecto en móviles */
        width: 100%;
        order: 3; /* Para que aparezca debajo del logo y el botón */
        flex-basis: 100%; /* Ocupa todo el ancho */
        text-align: center;
        background-color: #fff; /* Fondo para el menú desplegado */
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 8px 0; /* Ajustado para hacer el menú móvil menos alto */
        transform: translateY(-20px); /* Para una pequeña animación */
        opacity: 0;
        transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    }

    .main-nav.active {
        display: block; /* Muestra el menú cuando tiene la clase 'active' */
        transform: translateY(0);
        opacity: 1;
        width: 70%; /* Ajustado para hacer la barra de menú menos ancha en móviles */
        margin: 0 auto; /* Centra el menú en móviles */
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav ul li {
        margin: 10px 0; /* Espacio vertical entre los ítems del menú */
    }

    .main-nav ul li a {
        color: #007bff; /* Color de los enlaces en el menú móvil */
        padding: 8px 15px;
        display: block;
        border-radius: 5px;
    }

    .main-nav ul li a:hover {
        background-color: #e6f0ff;
    }
    /* --- FIN MENÚ HAMBURGUESA --- */


    .hero .container,
    .service-content,
    .contact-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content,
    .hero-image,
    .service-image-container,
    .service-description,
    .contact-info,
    .contact-image {
        max-width: 100%;
        flex: none; /* Deshabilita flex-grow/shrink para que ocupen todo el ancho */
        margin-bottom: 30px; /* Espacio entre elementos apilados */
    }

    .hero-content h2 {
        font-size: 2.5em;
    }

    .service-content.reverse-order {
        flex-direction: column; /* También en reversa para mantener la lógica */
    }

    .service-header {
        flex-direction: column;
        align-items: center;
    }

    .service-header h3 {
        font-size: 1.8em;
        margin-bottom: 15px;
        text-align: center;
    }

    .service-price {
        font-size: 1.8em;
        width: 100%; /* El precio toma todo el ancho */
    }

    .service-card {
        padding: 30px;
    }

    .contact-section .section-title,
    .contact-info h3 {
        text-align: center;
    }

    .contact-info p {
        justify-content: center; /* Centra los iconos y texto de contacto */
    }

    /* Ajuste para el botón flotante en móviles */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }

    /* Ajustes para el footer en móviles */
    .main-footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-sitemap,
    .footer-brand-info, /* Centra el texto en móviles */
    .footer-copyright {
        text-align: center; /* Centra el texto en móviles */
        width: 100%; /* Ocupa todo el ancho */
    }

    .footer-sitemap ul {
        padding: 0; /* Elimina el padding de la lista para centrar */
    }
}

@media (max-width: 600px) {
    .main-header .container {
        flex-direction: row; /* Mantener logo y toggle en fila en la parte superior */
        justify-content: space-between;
        align-items: center;
    }
    /* El main-nav ahora será controlado por JS para su visibilidad */
    
    .hero-content h2 {
        font-size: 2em;
    }

    .section-title {
        font-size: 2em;
    }

    .btn {
        width: 100%;
        box-sizing: border-box; /* Para que el padding se incluya en el ancho */
    }
}
