/* Colores */
:root {
    --primario: #c00000;
    --secundario: #333;
    /*--secundario: #383d42;*/
    --titulos-links: #c5c0a7;
    --fondo: #f5f5f5;
}

@font-face {
    font-family: 'LeagueGothicRegular';
    src: url('League_Gothic-webfont.eot');
    src: url('League_Gothic-webfont.eot?#iefix') format('eot'),
         url('League_Gothic-webfont.woff') format('woff'),
         url('League_Gothic-webfont.ttf') format('truetype'),
         url('League_Gothic-webfont.svg#webfont1Lb5Pdit') format('svg');
    font-weight: normal;
    font-style: normal;

}

/* General */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--fondo);
    color: #222;
}

h1, h2, h3, a {
    color: var(--titulos-links);
}

/* Header */
.hero {
    background-color: var(--secundario);
    padding: 5px 100px;
    color: white;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    font-weight: bold;
    color: white;
    font-size: 24px;
    font-family: 'LeagueGothicRegular';
}

/* Hero Content */
.hero-content {
    text-align: center;
    margin-top: 50px;
}

.btn {
    display: inline-block;
    background-color: var(--primario);
    color: var(--fondo);
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 20px;
    font-weight: bold;
}

/* Sections */
.section {
    padding: 20px 20px;
    text-align: center;
    position: relative;
}

.dark {
    background-color: var(--secundario);
    color: white;
}

.red {
    background-color: var(--primario);
    color: white;
    background-image: url(slide_1.jpg);
    background-position: cleft;
    background-repeat: no-repeat;
}

.cards {
    display: flex;
    justify-content: right;
    gap: 50px;
}

.card {
    background: var(--titulos-links);
    padding: 0px;
    border: 5px solid var(--titulos-links);
    border-radius: 0px;
    width: 260px;
}

.titol_contacte {
    font-size: 24px;
    font-family: 'LeagueGothicRegular';
    font-weight: bold;
}

/* Columnes */
.columnes {
    display: flex;
}

.columna {
    width: 25%;
    float: left;
    margin-left: 5%;
    text-align: justify;
}

.columna_contacte {
    width: 20%;
    float: left;
    margin-left: 5%;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--secundario);
    padding: 20px;
    text-align: center;
    color: var(--titulos-links);
}


/* WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    transition: 0.2s;
}
``

/* ----------------------------------------- */
/*              RESPONSIVE DESIGN            */
/* ----------------------------------------- */

@media (max-width: 768px) {

    /* Ajuste del menú */
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
        margin-top: 10px;
    }

    /* Cards en columna */
    .cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
        max-width: 350px;
    }

    /* Categorías más cómodas */
    .categories span {
        font-size: 14px;
        padding: 6px 12px;
    }

    /* Texto más legible */
    h1.logo {
        font-size: 22px;
        text-align: center;
        width: 100%;
    }

    .hero-content h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {

    /* Espaciado más compacto */
    .section {
        padding: 35px 15px;
    }

    .hero {
        padding: 30px 15px;
    }

    /* Botón más grande */
    .btn {
        padding: 14px 30px;
        font-size: 16px;
    }
}
