/* =========================================================
   VARIABLES I CONFIGURACIÓ
   ========================================================= */
:root {
    --accent: #ff2a53;
    --accent-dark: #e61b44;
    --gold: #8c6b3a;
    --text: #333;
    --muted: #666;
    --title-font: 'Playfair Display', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: -apple-system, system-ui, sans-serif; 
    color: var(--text);
    background: #fff;
    line-height: 1.5;
}

/* =========================================================
   LAYOUT (Split Screen)
   ========================================================= */
.container { display: flex; flex-direction: column; min-height: 100vh; }

.image-section {
    position: relative;
    height: 40vh;
    background: url('fasana2_opt.jpg') center/cover no-repeat;
}

@media (min-width: 768px) {
    .container { flex-direction: row; }
    .image-section { position: fixed; width: 50%; height: 100vh; }
    .image-section::after {
        content: ""; position: absolute; inset: 0;
        background: url('opt_salactes.jpg') center/cover no-repeat;
        opacity: 0; transition: opacity 0.8s ease;
    }
    .image-section:hover::after { opacity: 1; }
    .content-section { width: 50%; margin-left: 50%; min-height: 100vh; justify-content: center; }
}

/* Hero Chips (Botons sobre imatge) */
.hero-cta {
    position: absolute; inset: 0; z-index: 10;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.8rem; background: rgba(0, 0, 0, 0.15);
}

.hero-chip {
    background: var(--accent); color: #fff; text-decoration: none;
    font-weight: 800; padding: 0.75rem 1.25rem; border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: all 0.3s ease;
    border: 2px solid transparent;
}
.hero-chip:hover { transform: translateY(-3px); background: var(--accent-dark); border-color: rgba(255,255,255,0.4); }

/* =========================================================
   CONTINGUT I MARCS
   ========================================================= */
.content-section { padding: 3rem 1.5rem; display: flex; flex-direction: column; align-items: center; }

.main-title { font-family: var(--title-font); color: var(--accent); text-align: center; line-height: 1.1; font-size: 2.2rem; }
.main-title.small { font-size: 1.8rem; }
.logo { margin-bottom: 2.5rem; }
.logo-subtitle { text-align: center; text-transform: uppercase; letter-spacing: 4px; font-size: 0.85rem; color: var(--gold); }

.content-frame { position: relative; padding: 2.5rem 2rem; max-width: 480px; width: 100%; border: 3px solid var(--gold); }
.content-frame::after { content: ""; position: absolute; inset: -8px; border: 1px solid var(--gold); opacity: 0.3; pointer-events: none; }

.corner { position: absolute; width: 20px; height: 20px; border: 2px solid var(--gold); }
.tl { top: -12px; left: -12px; border-right: 0; border-bottom: 0; }
.tr { top: -12px; right: -12px; border-left: 0; border-bottom: 0; }
.bl { bottom: -12px; left: -12px; border-right: 0; border-top: 0; }
.br { bottom: -12px; right: -12px; border-left: 0; border-top: 0; }

/* =========================================================
   TARGETES (CORREGIT: Llegibilitat millorada)
   ========================================================= */
.priority-container { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }

.priority-card {
    position: relative; display: block; border-radius: 4px;
    border: 2px solid var(--gold); overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.priority-card img { width: 100%; display: block; transition: transform 0.6s ease; }

/* Amaguem el text per defecte per no "embrutar" la imatge */
.priority-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0); /* Transparent inicialment */
    color: #fff; display: flex; align-items: center; justify-content: center;
    text-align: center; opacity: 0; /* Invisible inicialment */
    transition: all 0.4s ease;
}

/* Efecte HOVER de les targetes */
.priority-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.priority-card:hover img {
    transform: scale(1.05);
}

.priority-card:hover .priority-overlay {
    opacity: 1;
    background: rgba(0,0,0,0.5); /* Enfosquim per fer llegible el text només al fer hover */
}

/* =========================================================
   CONTACTE I SOCIAL
   ========================================================= */
.divider { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 1.5rem 0; }
.subtitle { color: var(--muted); text-align: center; font-size: 0.95rem; margin-bottom: 1.5rem; }
.contact-grid { display: flex; flex-direction: column; gap: 0.8rem; align-items: center; }
.contact-item { text-decoration: none; color: var(--text); display: flex; align-items: center; font-size: 0.95rem; }
.icon { width: 18px; fill: var(--accent); margin-right: 10px; }

.social-links { display: flex; gap: 0.8rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.social-circle {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--accent); border-radius: 50%; transition: all 0.3s ease;
}
.social-circle svg { width: 18px; height: 18px; fill: var(--accent); }
.social-circle:hover { background: var(--accent); transform: translateY(-3px) rotate(8deg); }
.social-circle:hover svg { fill: #fff; }

/* Animacions */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fade { animation: fadeIn 1.2s ease forwards; }
.animate-up { opacity: 0; animation: fadeInUp 0.8s ease forwards; }
.animate-up-delay { opacity: 0; animation: fadeInUp 0.8s ease 0.3s forwards; }

.announcement-box {
    background: #fdfaf5;
    border: 2px solid var(--gold);
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    text-align: left;
}

.announcement-title {
    color: var(--accent);
    font-family: var(--title-font);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    text-align: center;
}

.announcement-content p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.announcement-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--accent);
    font-weight: bold;
    text-decoration: none;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--accent);
}
