* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2937;
    background: #f8fafc;
    line-height: 1.6;
}

header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 2rem;
    color: #0f172a;
}

.logo p {
    color: #2563eb;
    font-size: 0.95rem;
    font-weight: 600;
}

nav a {
    text-decoration: none;
    color: #334155;
    margin-left: 1.5rem;
    font-weight: 600;
}

nav a:hover {
    color: #2563eb;
}

.hero {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    padding: 5rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero h2 {
    font-size: 3.5rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.hero h3 {
    font-size: 1.5rem;
    color: #2563eb;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn {
    display: inline-block;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #1d4ed8;
}

.hero-image {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    text-align: center;
    /* font-size: 5rem; */
    width: 650px;
    height: auto;
}

.hero-image img {
    max-width: 100%;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #0f172a;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    color: #0f172a;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.contact {
    background: #0f172a;
    color: #ffffff;
    text-align: center;
}

.contact p {
    max-width: 700px;
    margin: 1rem auto 2rem;
    font-size: 1.1rem;
}

footer {
    background: #020617;
    color: #cbd5e1;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    nav a {
        margin: 0 0.75rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero h3 {
        font-size: 1.25rem;
    }
}

.social {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social a {
    color: #cbd5e1;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

/* Footer legal links */
.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Botó secundari (outline) */
.btn-outline {
    display: inline-block;
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
    text-decoration: none;
    padding: 0.8rem 1.7rem;
    border-radius: 999px;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-outline:hover {
    background: #2563eb;
    color: #ffffff;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* WhatsApp flotant */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #25d366;
    color: #ffffff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 200;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

/* Pàgines internes (contingut legal, Sobre nosaltres...) */
.page-header {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.25rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #475569;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}

.legal-content h2 {
    color: #0f172a;
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p,
.legal-content li {
    color: #334155;
    margin-bottom: 0.75rem;
}

.legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content .updated {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Info de contacte ràpida */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.contact-info .card a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

/* Formulari de contacte simple */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.contact-form label {
    display: block;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #2563eb;
    border-color: #2563eb;
}

/* Timeline "Sobre nosaltres" */
.timeline {
    max-width: 700px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.timeline-year {
    flex-shrink: 0;
    width: 90px;
    font-weight: 700;
    color: #2563eb;
    font-size: 1.1rem;
}

.timeline-text p {
    color: #334155;
}

/* Llista de serveis extra */
.extra-services {
    margin-top: 3rem;
}

.extra-services ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.extra-services li {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    color: #334155;
}

@media (max-width: 768px) {
    /* Menú en columna */
    .navbar {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    nav a {
        margin: 0;
    }

    /* Seccions en una sola columna */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    /* Imatges adaptables */
    .hero-image {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
    }

    .hero-image img,
    img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* Mapa responsive */
    iframe {
        width: 100% !important;
        height: 300px;
    }

    /* Instagram responsive */
    blockquote.instagram-media {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    /* Botons a ample complet */
    .btn {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        text-align: center;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn-outline {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        text-align: center;
    }

    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .timeline-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    /* Text una mica més petit */
    .hero h2,
    .section-title h2 {
        font-size: 2rem;
    }

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