/* =========================================
   1. VARIABLES I CONFIGURACIÓ GLOBAL
   ========================================= */
   :root {
    /* Colors Corporatius */
    --navy: #1B2043;       /* Blau Fosc Principal */
    --teal: #78C0A8;       /* Verd/Turquesa Secundari */
    --bg-light: #F8F9FA;   /* Fons Gris Molt Clar */
    --white: #FFFFFF;      /* Blanc Pur */
    --text-color: #2D3748; /* Gris Fosc per Textos */
    --gray-bg: #f0f7f4;    /* Fons alternatiu */
    
    /* Tipografia */
    --font-main: 'Outfit', sans-serif;
    
    /* Efectes */
    --shadow: 0 10px 40px rgba(27, 32, 67, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Compensa l'alçada de la barra de navegació fixa */
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden; /* Evita scroll horitzontal accidental */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* =========================================
   2. UTILITATS I LAYOUT
   ========================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Seccions amb fons alterns */
.section-white { background-color: var(--white); padding: 80px 0; }
.section-gray { background-color: var(--bg-light); padding: 80px 0; }
.section-navy { background-color: var(--navy); color: var(--white); padding: 80px 0; }

.hidden { display: none; }
.text-center { text-align: center; }

/* Tipografia */
h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
}

.section-navy h2 {
    color: var(--teal);
}

/* =========================================
   3. COMPONENTS: BOTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 50px; /* Arrodonit tipus pastilla */
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

/* Botó Principal (Blau) */
.btn-primary {
    background-color: var(--navy);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(27, 32, 67, 0.2);
}
.btn-primary:hover {
    background-color: #2a3266;
    transform: translateY(-2px);
}

/* Botó Secundari (Blanc amb vora Teal) */
.btn-secondary {
    background-color: var(--white);
    color: var(--navy);
    border-color: var(--teal);
}
.btn-secondary:hover {
    background-color: var(--teal);
    color: var(--white);
    transform: translateY(-2px);
}

/* Botó de Navegació (Petit Teal) */
.btn-nav {
    background-color: var(--teal);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 50px;
}
.btn-nav:hover {
    background-color: #64a690;
}

/* Botons de Contacte específics */
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    width: 100%;
    border-radius: 50px;
}
.btn-whatsapp:hover {
    background-color: #1ebc57;
}

.btn-email {
    background-color: var(--white);
    color: var(--navy);
    border: 2px solid var(--navy);
    width: 100%;
    border-radius: 50px;
}
.btn-email:hover {
    background-color: var(--navy);
    color: white;
}

/* =========================================
   4. BARRA DE NAVEGACIÓ
   ========================================= */
.navbar {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--teal);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--navy);
}

/* =========================================
   5. SECCIÓ HERO (PORTADA)
   ========================================= */
.hero {
    background-color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--navy);
}

.tagline {
    font-size: 1.5rem;
    color: var(--teal);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* =========================================
   6. SECCIÓ QUI SOC
   ========================================= */
.about-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.about-image {
    flex: 1;
    text-align: center;
    position: sticky;
    top: 100px; /* Es queda fixa al fer scroll */
}

.img-wrapper img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.intro-p {
    font-size: 1.1rem;
    text-align: center;
    color: var(--navy);
    font-weight: 500;
}

.about-cards {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border-left: 5px solid var(--teal);
}

.about-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.about-card i {
    color: var(--teal);
}

.link-arrow {
    display: inline-block;
    margin-top: 15px;
    color: var(--teal);
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

.link-arrow:hover {
    border-bottom: 1px solid var(--teal);
}

/* Targeta destacada final */
.highlight-card {
    background-color: var(--navy);
    color: var(--white);
    border-left: none;
    text-align: center;
    font-size: 1.1rem;
}

/* Classe per text en majúscules amb efecte hover */
.text-caps-hover {
    text-transform: uppercase;       /* Força les majúscules */
    color: var(--white);              /* Color inicial (o #1B2043) */
    font-weight: 600;                /* Opcional: una mica de negreta queda millor */
    cursor: pointer;                 /* Canvia el cursor a la mà */
    transition: color 0.3s ease;     /* Suavitza el canvi de color */
}

/* L'estil quan passes el ratolí per sobre */
.text-caps-hover:hover {
    color: var(--teal);              /* Color final (o #78C0A8) */
}

/* =========================================
   7. METODOLOGIA I ENFOCAMENT
   ========================================= */
.methodology-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

.highlight-text {
    margin-top: 30px;
    font-weight: 700;
    color: var(--navy);
    font-size: 1.3rem;
}

/* Caixa Sessió d'Enfocament */
.focus-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    border-top: 6px solid var(--teal);
}

.price-tag {
    font-size: 2.2rem;
    color: var(--navy);
    font-weight: 700;
    margin: 15px 0;
}

.small-note {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 30px;
}

/* =========================================
   8. SERVEIS I PREUS
   ========================================= */
/* Caixa Eficiència */
.efficiency-box {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border-left: 5px solid var(--navy);
}

.efficiency-box ul {
    margin-top: 15px;
    padding-left: 20px;
}

.efficiency-box li {
    margin-bottom: 10px;
    list-style-type: disc;
}

/* Controls de Preus (Toggle) */
.pricing-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.pricing-toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toggle-label {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy);
}

/* Estil Switch iOS */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--navy);
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider { background-color: var(--teal); }
input:checked + .slider:before { transform: translateX(26px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* Preu Sessió Solta */
.single-session-price {
    background-color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--navy);
    border: 1px solid var(--teal);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Missatge Dual */
.dual-info {
    background-color: #e6fffa;
    border: 1px solid var(--teal);
    color: #234e52;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
    animation: fadeIn 0.5s;
}

/* Graella de Packs */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.pricing-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: var(--navy);
    color: white;
    padding: 30px 20px 20px;
    text-align: center;
}

.card-header h4 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--teal);
}

.sessions {
    font-size: 0.9rem;
    opacity: 0.9;
}

.card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.description {
    font-style: italic;
    margin-bottom: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    min-height: 40px;
}

.price-block {
    text-align: center;
    margin-bottom: 15px;
}

.price-main {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
}

.price-sub {
    display: block;
    font-size: 0.9rem;
    color: #718096;
}

.savings-badge {
    background-color: #d1fae5;
    color: #065f46;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    align-self: center;
}

.features {
    margin-top: auto;
}

.features li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex;
    gap: 10px;
}

.features i {
    color: var(--teal);
    margin-top: 4px;
}

.badge-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--teal);
    color: var(--navy);
    text-align: center;
    font-weight: 700;
    padding: 5px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.pricing-card.recommended .card-header {
    padding-top: 40px;
}

.disclaimer {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 30px;
    font-style: italic;
}

.university-note {
    background-color: var(--white);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Enllaç discret Contracte */
.contract-link {
    margin-top: 30px;
    font-size: 0.9rem;
}

.contract-link a {
    color: #718096;
    text-decoration: none;
    border-bottom: 1px dotted #718096;
    transition: var(--transition);
}

.contract-link a:hover {
    color: var(--navy);
    border-bottom: 1px solid var(--navy);
}

/* =========================================
   9. ESPAI I FAQ
   ========================================= */
.space-container {
    display: flex;
    gap: 40px;
    align-items: center;
}

.space-text {
    flex: 1;
}

/* Separació botó Maps */
.space-text .btn-nav {
    margin-top: 25px;
    display: inline-block;
}

.space-map {
    flex: 1;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.faq-item h4 {
    color: var(--navy);
    margin-bottom: 10px;
}

.link-styled {
    color: var(--teal);
    text-decoration: underline;
    font-weight: 600;
}

/* =========================================
   10. CONTACTE
   ========================================= */
.contact-layout {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.intro-contact {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.contact-form-wrapper {
    flex: 1;
    background: rgba(255,255,255,0.1); /* Efecte vidre sobre fons fosc */
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--teal);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-family: inherit;
}

.full-width {
    width: 100%;
}

/* =========================================
   11. FOOTER I FLOATING ELEMENTS
   ========================================= */
footer {
    background-color: var(--white);
    color: #888;
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

.legal-links {
    margin-top: 10px;
    font-size: 0.85rem;
}

.legal-links a {
    margin: 0 5px;
    color: #888;
}

.legal-links a:hover {
    color: var(--navy);
}

/* Botó WhatsApp Flotant */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    z-index: 2000;
    transition: transform 0.3s;
}

.whatsapp-float img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* =========================================
   12. PÀGINES LEGALS
   ========================================= */
.legal-page {
    padding: 100px 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.5rem;
    text-align: left;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--teal);
}

.legal-page p, .legal-page li {
    margin-bottom: 15px;
    text-align: justify;
}

/* =========================================
   ESTILS PÀGINA CONDICIONS (ACORDIÓ)
   ========================================= */

/* Caixa d'avís informatiu */
.info-alert {
    background-color: #e3f2fd;
    border-left: 5px solid #2196F3;
    color: #0c5460;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
    display: flex;
    gap: 15px;
    align-items: start;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.info-alert i {
    font-size: 1.5rem;
    color: #2196F3;
    margin-top: 2px;
}

.info-alert p {
    margin: 0;
    font-size: 0.95rem;
    text-align: left;
}

.contract-intro {
    margin-bottom: 30px;
    text-align: left;
}

.rgpd-title {
    margin-top: 60px;
    color: var(--navy);
    padding-top: 20px;
    border-top: 2px dashed #eee;
}

/* Estils de l'Acordió */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: var(--teal);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.accordion-header {
    width: 100%;
    background: white;
    border: none;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background-color: #f8fafc;
}

/* Textos capçalera */
.header-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.acc-title {
    font-weight: 700;
    color: var(--navy);
    font-size: 1.1rem;
    text-transform: uppercase;
}

.acc-summary {
    font-size: 0.9rem;
    color: #64748b; /* Gris suau */
    font-style: italic;
}

/* Icona */
.accordion-header i {
    color: var(--teal);
    transition: transform 0.3s ease;
}

/* Estat Actiu */
.accordion-item.active {
    border-color: var(--navy);
}

.accordion-item.active .accordion-header {
    background-color: #f1f5f9;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

/* Contingut Desplegable */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1); /* Animació molt suau */
    background-color: white;
}

.inner-text {
    padding: 20px 20px 30px 20px;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.7;
    border-top: 1px solid #f1f5f9;
}

/* =========================================
   ESTILS FOOTER CONTACTE (PROTEGIT)
   ========================================= */
   .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-contact {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-contact a {
    color: var(--navy); /* Color corporatiu fosc */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact a:hover {
    color: var(--teal);
}

.footer-contact i {
    color: var(--teal);
}

.separator {
    color: #cbd5e0;
}

.copyright {
    font-size: 0.9rem;
    color: #718096;
}

/* Ajustos mòbil */
@media (max-width: 768px) {
    .footer-contact {
        flex-direction: column;
        gap: 10px;
    }
    .separator {
        display: none;
    }
}

/* =========================================
   AVÍS DE CONDICIONS SOTA PACKS
   ========================================= */
   .pricing-terms {
    margin-top: 60px; /* Augmentat per separar-ho del bloc University */
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--teal);
    text-align: center;
    font-size: 0.95rem;
    color: #64748b;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    /* Assegurem que l'enllaç hereti l'estil link-styled correctament */
}

.pricing-terms i {
    color: var(--teal);
    margin-right: 5px;
}

.pricing-terms strong {
    color: var(--navy);
}

/* Si vols forçar l'estil link-styled dins d'aquest bloc */
.pricing-terms .link-styled {
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.pricing-terms .link-styled:hover {
    color: var(--navy);
    border-bottom: 1px solid var(--navy);
}

@media (max-width: 768px) {
    .pricing-terms {
        margin-top: 40px;
        text-align: left;
    }
}

/* =========================================
   ESTILS NOVA TARGETA ENFOCAMENT
   ========================================= */
   .price-container-focus {
    padding: 20px 0;
    text-align: center;
}

.focus-highlight {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--teal); /* Color corporatiu destacat */
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.focus-explanation {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 10px;
    padding: 0 10px;
}

.focus-explanation strong {
    color: var(--navy);
    font-weight: 700;
}

.focus-subprice {
    font-size: 0.85rem;
    color: #94a3b8; /* Gris suau */
    font-style: italic;
}

/* =========================================
   CORRECCIÓ DE SEPARACIÓ (University Note)
   ========================================= */

/* Afegeix marge superior a la nota universitària per desenganxar-la de l'anterior */
.university-note {
    margin-top: 30px !important; /* Forcem la separació */
    padding: 20px;
    background-color: #fffbeb; /* Un fons crema suau diferent del gris de dalt */
    border-left: 4px solid #f59e0b; /* Color ambre per diferenciar */
    border-radius: 8px;
    font-size: 0.95rem;
    color: #78350f;
}

.university-note strong {
    color: #92400e;
}

/* Assegurem que l'anterior tingui espai també per sota si cal */
.pricing-terms {
    margin-bottom: 0; /* El marge el posa l'element de sota (.university-note) */
}

/* =========================================
   13. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    /* Menú Mòbil */
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: block;
    }

    /* Hero */
    .hero h1 {
        font-size: 2.5rem;
    }

    /* Layouts a columna única */
    .about-layout, 
    .contact-layout, 
    .space-container {
        flex-direction: column;
    }

    .about-image {
        position: static;
        margin-bottom: 30px;
    }
    
    .about-image img {
        width: 200px;
        height: 200px;
    }

    .university-note {
        flex-direction: column;
        text-align: center;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Animacions */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}