:root {
        --primary-color: #3498db;
        /* Un azul más vibrante */
        --secondary-color: #2ecc71;
        /* Un verde fresco */
        --background-color: #ecf0f1;
        /* Un gris muy claro */
        --text-color: #34495e;
        /* Un gris oscuro para el texto */
        --card-bg: #ffffff;
        --footer-bg: #2c3e50;
        --white: #ffffff;
    }

    body {
        font-family: 'Poppins', sans-serif;
        background-color: var(--background-color);
        color: var(--text-color);
    }

    .navbar {
        background-color: rgba(44, 62, 80, 0.85);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .navbar-brand .logo {
        height: 45px;
        width: 45px;
        border-radius: 50%;
        margin-right: 15px;
        object-fit: cover;
        border: 2px solid var(--primary-color);
        transition: transform 0.3s ease;
    }

    .navbar-brand:hover .logo {
        transform: rotate(360deg);
    }

    .navbar-dark .navbar-nav .nav-link {
        color: rgba(255, 255, 255, 0.8);
        font-weight: 400;
        padding: 10px 15px;
        border-radius: 5px;
        transition: color 0.3s ease, background-color 0.3s ease;
    }

    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link.active {
        color: var(--white);
        background-color: var(--primary-color);
    }

    .nav-link i {
        margin-right: 8px;
    }

    .hero {
        background: linear-gradient(45deg, rgba(52, 152, 219, 0.468), rgba(46, 204, 112, 0.651)), url('/img/matetermo.jpg') center/cover no-repeat;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: var(--white);
    }

    .hero h1 {
        font-size: 4rem;
        font-weight: 700;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .hero p {
        font-size: 1.25rem;
        font-weight: 300;
    }

    /* Media Queries para Responsividad */
    @media (max-width: 768px) {
        .hero h1 {
            font-size: 3rem;
        }

        .hero p {
            font-size: 1rem;
        }

        .section-title {
            font-size: 2rem;
        }

        .navbar-brand span {
            font-size: 1.2rem;
        }
    }

    @media (max-width: 576px) {
        .hero h1 {
            font-size: 2.5rem;
        }

        .hero p {
            font-size: 0.9rem;
        }

        .section-title {
            font-size: 1.8rem;
            margin: 60px 0 40px;
        }

        .navbar-brand .logo {
            height: 35px;
            width: 35px;
            margin-right: 10px;
        }

        .navbar-brand span {
            font-size: 1rem;
        }

        .whatsapp-float {
            width: 55px;
            height: 55px;
            font-size: 2rem;
            bottom: 20px;
            right: 20px;
        }

        .scroll-top-btn {
            width: 45px;
            height: 45px;
            font-size: 1.8rem;
            bottom: 80px;
            right: 20px;
        }

        .site-footer {
            padding: 40px 0;
        }

        .site-footer h5 {
            margin-bottom: 15px;
        }

        .site-footer .col-md-4 {
            margin-bottom: 30px;
        }

        .site-footer .col-md-4:last-child {
            margin-bottom: 0;
        }
    }

    .card {
        transition: transform 0.3s ease, box-shadow 0.4s ease;
        border: none;
        border-radius: 15px;
        overflow: hidden;
        height: 100%;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    }

    .card:hover {
        transform: translateY(-12px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

    .card img {
        height: 250px;
        object-fit: cover;
    }

    .btn-custom {
        background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
        border: none;
        color: var(--white);
        padding: 12px 25px;
        font-weight: 600;
        border-radius: 50px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .btn-custom:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        color: var(--white);
    }

    .whatsapp-float {
        position: fixed;
        bottom: 30px;
        right: 30px;
        background: linear-gradient(45deg, #25d366, #128c7e);
        color: var(--white);
        border-radius: 50%;
        width: 65px;
        height: 65px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2.5rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        text-decoration: none;
        z-index: 1000;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .whatsapp-float:hover {
        transform: translateY(-5px) scale(1.1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }

    .section-title {
        font-weight: 700;
        font-size: 2.8rem;
        margin: 80px 0 50px;
        text-align: center;
        color: var(--text-color);
        position: relative;
        padding-bottom: 15px;
    }

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
        border-radius: 2px;
    }

    #contacto .card {
        background-color: var(--card-bg);
        padding: 30px;
    }

    .contact-info i {
        font-size: 1.5rem;
        color: var(--primary-color);
        margin-right: 15px;
        width: 40px;
        text-align: center;
    }

    .map-container {
        border-radius: 15px;
        overflow: hidden;
        height: 400px;
        width: 100%;
    }

    /* Estilos para el modal de imagen */
    .modal {
        display: none;
        position: fixed;
        z-index: 1050;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.9);
    }

        .modal-content {
        margin: auto;
        display: block;
        width: 80%;
        max-width: 700px;
        animation-name: zoom;
        animation-duration: 0.6s;
        position: relative; /* Añadido para posicionar el botón de cierre */
    }

    @keyframes zoom {
        from {transform: scale(0)}
        to {transform: scale(1)}
    }

    .close {
        position: absolute;
        top: 10px; /* Ajustado */
        right: 25px; /* Ajustado */
        color: white;
        font-size: 35px; /* Ajustado */
        font-weight: bold;
        transition: 0.3s;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        line-height: 35px;
        text-align: center;
        z-index: 1051;
    }

    .close:hover,
    .close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

    @media only screen and (max-width: 700px){
        .modal-content {
            width: 100%;
        }
    }

    /* Footer */
    .site-footer {
        background-color: var(--footer-bg);
        color: var(--background-color);
        padding: 60px 0;
        font-size: 0.9rem;
    }

    .site-footer h5 {
        color: var(--primary-color);
        font-weight: 600;
        margin-bottom: 20px;
    }

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

    .site-footer a:hover {
        color: var(--primary-color);
    }

    .footer-social-links li a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--white);
        font-size: 1.2rem;
        transition: all 0.3s ease;
        position: relative;
    }

    .footer-social-links li a:hover {
        transform: translateY(-5px) scale(1.1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .footer-social-links li a[data-social="facebook"]:hover {
        background: #3b5998;
    }

    .footer-social-links li a[data-social="instagram"]:hover {
        background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    }

    .footer-social-links li a[data-social="x"]:hover {
        background: #000;
    }

    .footer-social-links li a[data-social="tiktok"]:hover {
        background: #000;
    }

    .footer-social-links li a::before {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 125%;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--primary-color);
        color: var(--white);
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 0.8rem;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .footer-social-links li a:hover::before {
        opacity: 1;
        visibility: visible;
    }

    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 30px;
        margin-top: 30px;
    }

    /* Botón Subir */
    .scroll-top-btn {
        position: fixed;
        bottom: 100px;
        right: 30px;
        z-index: 999;
        display: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: var(--primary-color);
        color: var(--white);
        text-align: center;
        font-size: 2rem;
        line-height: 50px;
        transition: all 0.3s ease;
    }

    .scroll-top-btn:hover {
        background: var(--secondary-color);
        transform: translateY(-5px);
        color: var(--white);
    }