:root {
    --seccionSecundaria: rgba(192, 192, 192);
    --seccionPrimaria: rgba(0, 174, 239);
    --seccionTercera: #f6f3f5;
    --botones-color: rgba(255, 204, 0);
    --primary-color: rgb(0, 0, 0);
    --text-dark: rgb(0, 0, 0);
    --text-blanco: rgb(255, 255, 255);
    --size-text-menu: 1.5rem;


    --sizeHeroCarousel: 34px;
    --colorBtnCambioCarousel: rgba(0, 0, 0, 0.5);
    --sizeAboutContent: 23px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Roboto, Montserrat;
}

/* Estilos comunes */
.card {
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--seccionPrimaria);
}

.card a {
    color: var(--text-dark);
    text-decoration: none;
}

.card a.btn {
    display: inline-block;
    width: auto;
    max-width: 100%;
}


.card-img {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-img img {
    width: 60%;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: inline-block;
    /* 👈 Añade esta línea */
    white-space: nowrap;
    /* 👈 Opcional: evita salto de línea */
    overflow: hidden;
    /* 👈 Previene desbordamientos */
    text-overflow: ellipsis;
}

.btn:hover {
    background: var(--seccionPrimaria);
}

.btn-primary {
    background: var(--botones-color);
    color: var(--text-dark)
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Header superior */
.header-top {
    background: var(--seccionPrimaria);
    padding: 8px 0;
    color: var(--text-dark);
}

.header-top p {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    /* Permite que los elementos se ajusten en caso de ser necesario */
    gap: 8px;
    /* Espacio entre los elementos */
    margin: 0;
    font-weight: bold;
}

.header-top a {
    color: var(--text-dark) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-top a:hover {
    color: var(--text-blanco) !important;
}

/* Header superior */


/* Header principal */
.header-area {
    padding: 20px 0;
    background: var(--seccionTercera);
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
}

.logo img {
    width: 30%;
}

/* Header principal */
/* Menú de navegación */
.main-menu {
    text-align: right;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
    justify-content: flex-end;
}

.nav-link {
    color: var(--text-dark);
    font-size: var(--size-text-menu);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--seccionPrimaria) !important;
}

/* Menú de navegación */
/* Menú móvil */
.mobile-menu {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: var(--botones-color);
    transition: all 0.3s ease;
}

/* Menú móvil */


/* Hero Carrusel */
.hero-carousel {
    height: 100vh;
    position: relative;
    overflow: hidden;
    font-size: var(--sizeHeroCarousel);
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-content {
    background: rgba(0, 0, 0, 0.55);
    width: 100%;
    height: 100%;
    /* Ocupa el 100% del alto del slide */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-blanco);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
}

.carousel-control {
    position: absolute;
    top: 80%;
    transform: translateY(-50%);
    z-index: 2;
    background: var(--botones-color);
    border: none;
    color: var(--colorBtnCambioCarousel);
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    font-weight: bold;
}

.carousel-control:hover {
    background: var(--seccionPrimaria);
}

.carousel-control.prev {
    left: 2rem;
}

.carousel-control.next {
    right: 2rem;
}

/* Sección Beneficios */
.benefits-section {
    padding: 5rem 2rem;
    background: var(--seccionTercera);
}

/* Sección Acerca de */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 5rem 2rem;
    background: var(--seccionPrimaria);
    color: white;
}

.about-content {
    text-align: center;
    font-size: var(--sizeAboutContent);
}

ul {
    margin-top: 15px;
    list-style: none;
    /* 🔹 Quita los bullets */
    padding-left: 0;
    /* 🔹 Elimina indentación izquierda */
    text-align: left;
    /* 🔹 Alinea el texto a la derecha */
}

ul li {
    margin-bottom: 8px;
    /* 🔹 Espaciado entre líneas (opcional) */
}


/* Sección Servicios */
.services {
    gap: 2rem;
    padding: 5rem 2rem;
    background: var(--seccionTercera);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}


/* Testimonios */
.testimonials-section {
    background: var(--seccionTercera);
    padding: 5rem 2rem;
}

.testimonial-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Ventajas */
.advantages-grid {
    padding: 5rem 2rem;
    background: var(--seccionTercera);
}

/* Formulario Final */
.final-cta {
    background: var(--seccionTercera);
    padding: 5rem 2rem;
    text-align: center;
    color: var(--text-dark);
    font-weight: bold;
}

.cta-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--seccionPrimaria);
}

.cta-form input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--seccionPrimaria);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #333;
}

.cta-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--seccionPrimaria);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #333;
}

/* Contacto y FAQ */
.contact-section {
    padding: 5rem 2rem;
    background: var(--seccionTercera);
}

/* Estilos para FAQs */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.faq-card {
    background: var(--text-light);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--seccionPrimaria);
    transition: transform 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-5px);
}

.faq-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.faq-card p {
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Estilos para información de contacto */
.contact-card {
    background: var(--text-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.contact-card p {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.contact-social {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-social a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary-color);
    text-decoration: none;
}

/* Iconos */
.fas,
.fab {
    font-size: 1.2rem;
    color: var(--botones-color);
}

footer {
    background: var(--seccionPrimaria);
    ;
    color: white;
    text-align: center;
    padding: 2rem;
}

footer a {
    color: var(--botones-color);
}

/* Estilos para los botones flotantes */
.float-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.whatsapp-btn,
.back-to-top {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    animation: pulse-whatsapp 2s infinite;
}

.back-to-top {
    background: var(--seccionPrimaria);
    color: white;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-btn:hover,
.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .float-buttons {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-btn,
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
}

/* Añade estas media queries al final de tu CSS */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .nav-list {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .mobile-menu.active {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 250px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        padding: 20px;
        z-index: 1000;
    }

    .mobile-nav {
        list-style: none;
        margin-top: 50px;
    }

    .mobile-nav li {
        margin: 15px 0;
    }
}

@media (max-width: 1200px) {

    /* Ajustes generales */
    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 992px) {

    /* Hero Section */
    .hero-carousel h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-carousel p {
        font-size: 1.1rem;
    }

    /* Testimonios */
    .testimonial-carousel {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Ventajas */
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Header */
    .logo img {
        max-width: 140px;
    }

    .header-top p {
        font-size: 0.9rem;
    }

    /* Hero Section */
    .hero-carousel {
        height: 70vh;
    }

    .hero-carousel h1 {
        font-size: 2rem;
        padding: 0 15px;
    }

    .carousel-control {
        width: 35px;
        height: 35px;
        padding: 0.8rem;
    }

    /* Secciones grid */
    .benefits-grid,
    .services-grid,
    .testimonial-carousel,
    .advantages-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    /* Acerca de */
    .about-section {
        grid-template-columns: 1fr;
        padding: 3rem 1rem;
    }

    .about-image {
        order: 2;
        margin-top: 2rem;
    }

    /* Formulario */
    .final-cta .container {
        flex-direction: column;
    }

    /* FAQ */
    .faq-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .social-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 576px) {

    /* Ajustes móviles pequeños */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .card {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
    }

    /* Header */
    .header-top a {
        display: block;
        margin: 5px 0;
    }

    /* Hero Section */
    .hero-carousel {
        height: 60vh;
    }

    .hero-carousel h1 {
        font-size: 1.5rem;
    }

    .hero-carousel p {
        font-size: 1rem;
    }

    /* Formulario */
    .cta-form input {
        width: 100%;
        margin-bottom: 1rem;
    }

    /* Mapa */
    iframe {
        height: 250px;
    }

    /* Footer */
    footer p {
        font-size: 0.9rem;
    }
}

/* Añade esto para mejorar la legibilidad en móviles */
@media (max-width: 400px) {
    html {
        font-size: 14px;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .faq-card h4 {
        font-size: 1rem;
    }
}


/* Permitir que el texto se ajuste en las celdas */
table.dataTable th,
table.dataTable td {
    white-space: normal !important;
    word-wrap: break-word;
    word-break: break-word;
    vertical-align: top;
}

/* Permitir redimensionamiento manual del encabezado */
table.dataTable th {
    resize: horizontal;
    /* overflow: auto; */
    min-width: 100px;
    max-width: 600px;
}

/* Forzar que las celdas se ajusten al contenedor si hay scroll */
.dataTables_wrapper,
.table-responsive {
    overflow-x: auto;
}



.cantidad-control {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.cantidad-control input[type="number"] {
    width: 60px;
    height: 40px;
    font-size: 1.2rem;
    text-align: center;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.btn-mas,
.btn-menos {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
}

.btn-mas {
    background-color: #28a745;
    /* verde */
}

.btn-menos {
    background-color: #dc3545;
    /* rojo */
}

.btn-mas:hover {
    background-color: #218838;
}

.btn-menos:hover {
    background-color: #c82333;
}