/*
Theme Name: HCC
Text Domain: hcc
Version: 1.0.0
Author: Lorenzo Cremonese
*/
:root {
            --fucsia: #FF006E;
            --rosa: #FF66B2;
            --naranja: #FF8C42;
            --white: #FFFFFF;
            --black: #000000;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        p {
            line-height: 1.8;
            margin-bottom: 1.5rem;
        }

        h1, h2, h3, h4 {
            margin-bottom: 1.5rem;
            line-height: 1.3;
        }

        body {
            font-family: 'Ubuntu', sans-serif;
            overflow-x: hidden;
            background: var(--black);
            color: var(--white); /* global white text */
        }

        .background-sections {
            position: relative;
            width: 100%;
            height: 100vh;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0;
            overflow: hidden;
        }

        .bg-section {
            position: relative;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.5s ease;
            height: 100vh;
            /* Filter moved to image */
        }

        .background-sections:hover .bg-section {
             /* filter: grayscale(100%) opacity(0.4); Removed to simplify logic for now, or move to image if needed */
             opacity: 0.8; /* Just dim the other sections slightly */
        }

        .background-sections .bg-section:hover {
             opacity: 1;
             z-index: 10;
        }

        .bg-section-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
            transition: transform 0.6s ease;
            /* grayscale filter removed */
        }

        .bg-section:hover .bg-section-image {
            transform: scale(1.05);
            /* filter change removed since default is no longer grayscale */
        }

        .bg-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            /* Stronger pink filter by default */
            background: linear-gradient(135deg, 
                rgba(255, 0, 110, 0.7) 0%, 
                rgba(255, 102, 178, 0.6) 50%,
                rgba(255, 255, 255, 0.3) 100%);
            z-index: 1;
            transition: opacity 0.5s ease;
            opacity: 1;
        }



        .bg-section:hover::before {
            opacity: 0; /* Remove filter completely on hover */
        }

        .bg-section::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 20%;
            background: linear-gradient(to top, 
                rgba(0, 0, 0, 0.5) 0%, 
                transparent 100%);
            z-index: 2;
        }

        .bg-section-title {
            position: absolute;
            bottom: 4rem;
            left: 0;
            right: 0;
            text-align: center;
            color: white;
            z-index: 3;
            padding: 2rem;
        }

        .bg-section-title h2 {
            font-size: 2.2rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 3px;
            text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
            margin-bottom: 1rem;
        }

        .bg-section-title p {
            font-size: 1rem;
            font-weight: 400;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.4s;
            text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
        }

        .bg-section:hover .bg-section-title p {
            opacity: 1;
            transform: translateY(0);
        }

        /* Transparent Header */
        /* Navigation */
        body.admin-bar nav {
            top: 32px;
        }
        @media screen and (max-width: 782px) {
            body.admin-bar nav {
                top: 46px;
            }
        }
        nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: transparent !important;
            padding: 2rem 3rem;
            transition: all 0.3s;
        }

        nav.scrolled {
            background: linear-gradient(to bottom,
                rgba(255, 0, 110, 0.6) 0%, 
                rgba(255, 102, 178, 0.5) 20%,
                rgba(255, 140, 66, 0.4) 40%,
                rgba(255, 255, 255, 0.3) 70%,
                rgba(255, 255, 255, 0) 100%);
            backdrop-filter: blur(15px);
            padding: 1rem 3rem;
        }

        .nav-container {
            max-width: 1800px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo img {
            height: 120px;
            width: auto;
            filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
            transition: all 0.3s;
        }

        nav.scrolled .logo img {
            height: 55px;
            filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
        }

        .nav-links {
            display: flex;
            gap: 3rem;
            list-style: none;
            align-items: center;
        }

        .nav-links a,
        .nav-links button {
            text-decoration: none;
            color: white;
            font-weight: 700;
            font-size: 1.05rem;
            text-transform: uppercase;
            letter-spacing: 2.5px;
            transition: all 0.3s;
            text-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
            position: relative;
            background: none !important;
            border: none !important;
            cursor: pointer;
            font-family: 'Ubuntu', sans-serif;
            padding: 0 !important;
            margin: 0 !important;
            border-radius: 0 !important;
            backdrop-filter: none !important;
            box-shadow: none !important;
        }

        .nav-links a::after,
        .nav-links button::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 3px;
            background: white;
            transition: width 0.3s;
        }

        .nav-links a:hover::after,
        .nav-links button:hover::after {
            width: 100%;
        }

        .nav-links a:hover,
        .nav-links button:hover {
            transform: translateY(-2px);
            background: none !important;
            color: white !important;
            box-shadow: none !important;
        }

        .nav-auth {
            display: flex;
            gap: 3rem;
        }

        /* Menú Hamburguesa */

        /* HAMBURGUESA */
        .hamburger {
            display: none;
            flex-direction: column;
            cursor: pointer;
            gap: 5px;
        }

        .hamburger span {
            width: 25px;
            height: 3px;
            background: white;
            display: block;
        }

    /* MÓVIL */
    @media (max-width: 1024px) {

        .logo img{
            width: 100%;
            height: 4rem;
        }

        .nav-links {
            flex-direction: column;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background: var(--fucsia);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease-in-out, background 0.3s ease;
            z-index: 999;
            gap: 0rem !important;
        }

        .nav-links li {
            width: 100%;
            text-align: center;
            padding: 1.5rem;
        }

        /* Links dentro del menú */
        .nav-links a,
        .nav-links button {
            color: white;
            text-shadow: 0 2px 8px rgba(0,0,0,0.3);
        }

        .nav-links.active {
            max-height: 1000px; /* Suficiente para todos los items */
        }

        .hamburger {
            display: flex;
            flex-direction: column;
            cursor: pointer;
            gap: 5px;
            z-index: 1001;
        }

        .hamburger span {
            width: 25px;
            height: 3px;
            background: white;
            transition: all 0.3s ease;
        }

        /* Animación de X */
        .hamburger.open span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .hamburger.open span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.open span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -5.7px) ;
        }
    }

        /* Cloudy gradient section */
        .gradient-section {
            position: relative;
            background: linear-gradient(180deg,
                rgba(0, 0, 0, 0.95) 0%,
                rgba(0, 0, 0, 0.9) 10%,
                var(--fucsia) 40%,
                var(--rosa) 60%,
                var(--naranja) 80%,
                var(--white) 100%);
            padding-top: 5rem;
        }

        .gradient-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(ellipse at 20% 30%, rgba(255, 0, 110, 0.4) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 50%, rgba(255, 102, 178, 0.3) 0%, transparent 40%),
                radial-gradient(ellipse at 40% 70%, rgba(255, 140, 66, 0.4) 0%, transparent 45%),
                radial-gradient(ellipse at 70% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
            pointer-events: none;
        }



        .cta-section {
            position: relative;
            z-index: 10;
            padding: 4rem 3rem !important;
            text-align: center;
            margin: 0 !important;
        }

        .cta-container {
            max-width: 1200px;
            margin: 0 auto;
            color: white;
        }

        .cta-content h2 {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            text-transform: uppercase;
            text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        }

        .cta-content > p {
            font-size: 1.3rem;
            font-weight: 300;
            margin-bottom: 3rem;
            opacity: 0.95;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        }

        .cta-benefits {
            display: flex;
            justify-content: center;
            gap: 3rem;
            margin-bottom: 3rem;
            flex-wrap: wrap;
        }

        .benefit {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            font-size: 1.1rem;
            font-weight: 400;
        }

        .benefit-icon {
            font-size: 1.8rem;
            padding-bottom: 0.3rem;
        }

        .btn-cta {
            background: rgba(255, 255, 255, 0.1); /* White Version for Home */
            color: var(--white);
            padding: 1.2rem 3.5rem;
            font-size: 1.1rem;
            font-weight: 700;
            display: inline-block;
            border: 2px solid var(--white);
            border-radius: 50px;
            backdrop-filter: blur(5px);
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: all 0.3s;
        }

        .btn-cta:hover {
            background: var(--white);
            color: var(--fucsia); /* Text becomes fuchsia on hover */
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
        }

        /* Footer */
        footer {
            position: relative;
            z-index: 10;
            background: transparent;
            padding: 4rem 0 2rem;
            margin: 0 !important;
        }

        .footer-content {
            max-width: 1800px;
            margin: 0 auto;
            padding: 0 3rem;
            display: flex;
            justify-content: space-evenly;
            gap: 2rem;
            padding-bottom: 3rem;
            flex-wrap: wrap; 
        }

        .footer-section h3 {
            font-size: 1.1rem;
            color: var(--white);
            margin-bottom: 1.5rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .footer-section a {
            color: var(--white);
            line-height: 2;
            text-decoration: none;
            display: block;
            margin-bottom: 0.8rem;
            transition: all 0.3s;
            font-weight: 300;
            opacity: 0.9;
        }

        .footer-section a:hover {
            opacity: 1;
            transform: translateX(5px);
        }

        .footer-logos {
            width: 100%;
            padding: 3rem 0;
            margin-top: 3rem;
        }

        .footer-logos-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 3rem;
            flex-wrap: wrap;
            max-width: 1800px;
            margin: 0 auto;
            padding: 0 3rem;
        }

        .footer-logo {
            height: 50px;
            width: auto;
            opacity: 1;
            transition: all 0.3s;
        }

        .footer-logo:hover {
            transform: scale(1.1);
        }

        .footer-logo-ministerio {
            height: 60px;
        }

        .footer-bottom {
            text-align: center;
            padding: 2rem 0;
            color: var(--black);
            font-size: 0.85rem;
            font-weight: 300;
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(10px);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .modal.active {
            display: flex;
            opacity: 1;
        }

        .modal-content {
            background: white;
            width: 90%;
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            padding: 3rem;
            transform: scale(0.9);
            transition: transform 0.3s;
        }

        .modal.active .modal-content {
            transform: scale(1);
        }

        .modal-close {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            background: none;
            border: none;
            font-size: 2.5rem;
            cursor: pointer;
            color: #999;
            transition: color 0.3s;
            font-weight: 300;
        }

        .modal-close:hover {
            color: var(--fucsia);
        }

        .modal h2 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 2rem;
            text-transform: uppercase;
            color: var(--black);
        }

        .login-form, .agent-form {
            display: grid;
            gap: 1.5rem;
        }

        .form-group {
            display: flex;
            flex-direction: column;
        }

        .form-group label {
            margin-bottom: 0.5rem;
            font-weight: 500;
            text-transform: uppercase;
            font-size: 0.85rem;
            letter-spacing: 1px;
            color: #666;
        }

        .form-group input,
        .form-group select {
            padding: 1rem;
            border: 1px solid #ddd;
            font-family: 'Work Sans', sans-serif;
            font-size: 1rem;
            transition: border-color 0.3s;
        }

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--fucsia);
        }

        .submit-btn {
            width: 100%;
            padding: 1.2rem;
            background: rgba(255, 0, 110, 0.15); /* Semi-transparent Fuchsia */
            border: 1px solid var(--fucsia);
            border-radius: 50px;
            backdrop-filter: blur(5px);
            color: var(--fucsia); /* Fuchsia Text */
            cursor: pointer;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-family: 'Work Sans', sans-serif;
            font-size: 1rem;
            transition: all 0.3s;
            margin-top: 1rem;
        }

        .submit-btn:hover {
            background: var(--fucsia);
            color: white; /* White text on hover */
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(255, 0, 110, 0.4);
        }

        .form-link {
            text-align: center;
            margin-top: 1rem;
            color: #666;
            font-size: 0.9rem;
        }

        .form-link a {
            color: var(--fucsia);
            text-decoration: none;
            font-weight: 600;
        }

        .form-link a:hover {
            text-decoration: underline;
        }

        @media (max-width: 1024px) {
            .background-sections {
                grid-template-columns: 1fr;
                height: auto;
                overflow: visible;
            }

            .footer-content {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 640px) {
            .footer-content {
                grid-template-columns: 1fr;
            }

            .cta-benefits {
                flex-direction: column;
                align-items: center;
            }
        }
/* Internal Page Header Override */
body:not(.home) nav {
    background: transparent !important;
    backdrop-filter: blur(20px);
    color: var(--white) !important;
    /**border-bottom: 1px solid rgba(0, 0, 0, 0.1); CAMBIOS BACKGROUND */
}

/* Sobre El Hub BG */

.no-home-bg {
    background: linear-gradient(
    180deg,
    #FF006E,
    #FF66B2,
    #FF8C42,
    #FFFFFF
    );
    width: 100%;
}

/* SOBRE EL HUB STYLES */

.page-header {
    margin-top: 0;
    padding: 210px 3rem 18rem;
   /* background: linear-gradient(135deg, var(--fucsia) 0%, var(--rosa) 50%, var(--naranja) 100%); */
    background: transparent !important;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-header h1 {
    font-size: 6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.8rem;
    font-weight: 300;
    margin: 0;
    text-align: center;
    margin: 0 auto;

}

.content-section  {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 3rem;
}

.content-section  h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2rem;
    text-transform: uppercase;
    padding-top: 2rem;
}

.content-section  p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.neighborhoods-list {
    display: flex;
    flex-wrap: wrap;          
    justify-content: center; 
    gap: 1.5rem;
    margin: 3rem 0;
}

.neighborhood-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.6rem 1.8rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    text-align: center;
    width: auto; 
}

.neighborhood-card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(255, 0, 110, 0.2);
}

.neighborhood-card p {
    font-size: 1.3rem;
    color: var(--white);
    margin: 0.5rem 0;
    text-transform: uppercase;
    font-weight: 500;
}

.map-container {
    margin: 4rem 0;
    padding: 3rem;
    background: white;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.map-container h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.map-container img {
    width: 100%;
    height: auto;
    display: block;
}

.criteria-section {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.05) 0%, rgba(255, 102, 178, 0.05) 100%);
    padding: 3rem;
    margin: 3rem 0;
}

.criteria-section h3 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.criteria-section ul {
    list-style: none;
    padding: 0;
}

.criteria-section li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--white);
    position: relative;
}

.criteria-section li::before {
    content: "✦";
    color: var(--fucsia);
    font-size: 1.5rem;
    position: absolute;
    top: 0.5rem;
    left: 0.3rem;
}

/* Global Page Background Fix for Internal Pages */
body:not(.home) {
    background: var(--white);
    color: var(--black);
}


/* Navigation link color for internal pages */
/* body:not(.home) .nav-links a,
body:not(.home) .nav-links button {
    color: var(--white);
    text-shadow: none;
} */

/* body:not(.home) .nav-links a::after,
body:not(.home) .nav-links button::after {
    background: var(--fucsia);
} */

/* Logo Color Fix for Internal Pages */
/* Using invert(1) to make the white logo visible (black) on the white header background */
/* body:not(.home) .logo img {
    filter: invert(1);
} */

/* Hover effects for internal pages */
/* body:not(.home) .nav-links a:hover,
body:not(.home) .nav-links button:hover {
    color: var(--black);
} */

/* Com Funciona Page Styles */

/* User Types Section */
.user-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

.user-type-card {
    background: transparent;
    padding: 3rem;
    box-shadow: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;           /* Added */
    align-items: center;     /* Added */
    gap: 2rem;               /* Added */
    border: 1px solid rgba(255,255,255,0.1);
}

.user-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--fucsia) 0%, var(--rosa) 100%);
}

.user-type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 0, 110, 0.2);
}

.user-type-icon {
    font-size: 4rem;
    margin-bottom: 0;      /* Modified */
    flex-shrink: 0;        /* Added to prevent squishing */
    /* display: block; */
}

.user-type-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fucsia);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.user-type-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.user-type-card ul {
    list-style: none;
    padding: 0;
}

.user-type-card li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1rem;
    color: #555;
}

.user-type-card li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--fucsia);
    font-size: 1.3rem;
}

/* Steps Section */
.steps-section {
    margin: 5rem 0;
}

.steps-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--white);
    margin-bottom: 3rem;
    text-transform: uppercase;
}

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

.step-card {
    background: transparent;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, 
        rgba(255, 0, 110, 0.1) 0%, 
        rgba(255, 102, 178, 0.1) 100%);
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: linear-gradient(135deg, var(--fucsia) 0%, var(--rosa) 100%);
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.step-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.step-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--white);
}

/* Features Section */
.features-section {
    margin: 5rem 0;
    padding: 4rem;
    background: transparent;
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); */
}

.features-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--white);
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.feature-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--white);
}

/* Media Queries for Com Funciona */
@media (max-width: 1024px) {
    .user-types {
        grid-template-columns: 1fr;
    }
}

/* Internal Pages Footer Override */
body:not(.home) footer {
    /** CAMBIO BACKGROUND
    background: linear-gradient(180deg,
        rgba(255, 0, 110, 0.1) 0%,
        rgba(255, 102, 178, 0.15) 30%,
        rgba(255, 140, 66, 0.2) 60%,
        rgba(255, 255, 255, 0.9) 100%);
    */
    background: transparent !important;
    padding-top: 4rem;
    margin-top: 5rem;
}

body:not(.home) .footer-section h3 {
    color: var(--white);
}

body:not(.home) .footer-section a {
    color: var(--white);
}

body:not(.home) .footer-section a:hover {
    color: var(--fucsia);
}

body:not(.home) .footer-logos {
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 30%,
        rgba(255, 255, 255, 0.9) 100%);
}

body:not(.home) .footer-bottom {
    background: rgba(255, 255, 255, 0.95);
    color: #666;
}

/* Page Header Animation & Complex Background Override for Internal Pages */
body:not(.home) .page-header {
    position: relative;
    overflow: hidden;
    /** CAMBIOS BACKGROUND
    background: linear-gradient(135deg, var(--fucsia) 0%, var(--rosa) 50%, var(--naranja) 100%);
    */
    background: transparent !important;
    padding: 5rem 3rem;
}

body:not(.home) .page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /** CAMBIOS BACKGROUND
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.1) 0%, transparent 40%);
    */
    background: transparent !important;
    animation: headerMove 15s ease-in-out infinite;
    z-index: 1;
}

body:not(.home) .page-header h1,
body:not(.home) .page-header p {
    position: relative;
    z-index: 2;
}

@keyframes headerMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
}

/* CTA Section Refinements */
.cta-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
       190deg,
        #000000,
        #FF006E,
        #FF66B2,
    );
    color: white;
    text-align: center;
    padding: 4rem;
    margin: 5rem 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    animation: headerMove 15s ease-in-out infinite;
    pointer-events: none;
}

.cta-section h2, 
.cta-section p, 
.cta-section .btn-cta {
    position: relative;
    z-index: 2;
}

/* User Type Card Refinements */
.user-type-card ul {
    list-style: none;
    padding: 0;
}

.user-type-card li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1rem;
    color: #555;
}

.user-type-card li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--fucsia);
    font-size: 1.3rem;
}

/* Steps Section Background Refinement */
.step-card {
    background: linear-gradient(135deg, 
        rgba(255, 0, 110, 0.05) 0%, 
        rgba(255, 102, 178, 0.05) 100%);
    border-left: 4px solid var(--fucsia);
}

.step-card:hover {
    background: linear-gradient(135deg, 
        rgba(255, 0, 110, 0.1) 0%, 
        rgba(255, 102, 178, 0.1) 100%);
    transform: translateY(-5px);
}

/* Intro Section Refinements */
.intro-section {
    text-align: center;
    margin-bottom: 5rem;
}

.intro-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.intro-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

/* Modal & Form Styles (Replica of Mock) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 3rem;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close,
.hp-modal__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none !important;
    border: none !important;
    font-size: 2.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    font-weight: 300;
    padding: 0 !important;
    min-width: auto;
    width: auto;
    height: auto;
    line-height: 1;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    margin: 0 !important;
}

.modal-close:hover,
.hp-modal__close:hover {
    color: var(--fucsia);
    background: none !important;
    transform: none;
    box-shadow: none !important;
}



.modal h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: var(--black);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #666;
}

.form-group input,
.form-group select {
    padding: 1rem;
    border: 1px solid #ddd;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--fucsia);
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--fucsia) 0%, var(--rosa) 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.4);
}

.form-link {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.form-link a {
    color: var(--fucsia);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.form-link a:hover {
    text-decoration: underline;
}

/* Page Specific Background Override for Com Funciona */
body.page-template-page-com-funciona {
    background-color: #f5f5f5 !important;
}

/* Spacing and Layout Audit Fixes */

/* 1. Content Wrapper (matched to mock) */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 3rem;
}

/* 2. Navigation Padding Override for Internal Pages (matched to mock) */
body:not(.home) nav {
    padding: 1rem 3rem; /* Mock uses 1rem 3rem, theme used 2rem 3rem */
}

/* 3. Page Header Spacing Override */
body:not(.home) .page-header {
    margin-top: 0;
    padding: 210px 3rem 2rem; /* Matched exactly to mock */
}

/* 4. Section Spacing Refinements */
.steps-section {
    margin: 5rem 0;
}

.features-section {
    margin: 5rem 0;
    padding: 4rem;
}

.cta-section {
    margin: 5rem 0;
    padding: 4rem;
}

/* 5. Footer Spacing Override */
body:not(.home) footer {
    padding: 4rem 0 0;
    margin-top: 5rem;
}

body:not(.home) .footer-content {
    padding: 0 3rem 3rem;
    gap: 4rem;
}

/* CTA Section Child Overrides for Exact Mock Parity */
.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-section .btn-cta {
    padding: 1.2rem 3rem; /* Mock uses 3rem, global was 3.5rem */
    font-size: 1rem;      /* Mock uses 1rem, global was 1.1rem */
}

/* Search Section Styles */
.search-section {
    max-width: 1400px;
    margin: -10px auto 3rem; /* Negative margin to overlap header slightly if desired, or match mock spacing */
    padding: 0 3rem;
    position: relative;
    z-index: 10;
}

.search-card {
    background: white;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.search-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
    align-items: end;
}

.search-group {
    display: flex;
    flex-direction: column;
}

.search-group label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    color: #666;
}

.search-group input,
.search-group select {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 60px;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-group select {
    -webkit-appearance: none;  /* Quita la flecha nativa (Chrome/Safari) */
    -moz-appearance: none;     /* Quita la flecha nativa (Firefox) */
    appearance: none;
    background: white url('data:image/svg+xml;utf8,<svg fill="%23000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 1rem center;
}

/* Professionals Grid Styles */
.professionals-section {
    max-width: 1400px;
    margin: 0 auto 5rem;
    padding: 0 3rem;
}

.professionals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 0;
}

.professional-card {
    background: white;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.professional-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 0, 110, 0.2);
}

.professional-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--fucsia) 0%, var(--rosa) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.professional-content {
    padding: 2rem;
}

.professional-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.professional-discipline {
    display: inline-block;
    background: linear-gradient(135deg, var(--fucsia) 0%, var(--rosa) 100%);
    color: white;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.professional-location {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.professional-bio {
    color: #444;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Specific background for Professionals page if needed, or rely on internal page default */
body.page-template-page-profesionales {
    background-color: #f5f5f5 !important;
}

@media (max-width: 1024px) {
    .search-grid {
        grid-template-columns: 1fr;
    }
}

/* Formació Page Styles */

/* Filters Section */
.filters-section {
    max-width: 1400px;
    margin: -10px auto 3rem;
    padding: 0 3rem;
    position: relative;
    z-index: 10;
}

.filters-card {
    background: white;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.filters-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    color: #666;
}

.filter-group select,
.filter-group input {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 60px;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.filter-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: white url('data:image/svg+xml;utf8,<svg fill="%23000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 1rem center;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--fucsia);
}

.status-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.status-badge {
    padding: 0.6rem 1.5rem;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.status-badge:hover {
    border-color: var(--fucsia);
    color: var(--fucsia);
}

.status-badge.active {
    background: linear-gradient(135deg, var(--fucsia) 0%, var(--rosa) 100%);
    color: white;
    border-color: var(--fucsia);
}

/* Content Section - Month/Week Layout */
.content-section {
    max-width: 1400px;
    margin: 0 auto 5rem;
    padding: 0 3rem;
}

.month-section {
    margin-bottom: 4rem;
}

.month-header {
    background: linear-gradient(135deg, 
        rgba(255, 0, 110, 0.1) 0%, 
        rgba(255, 102, 178, 0.1) 100%);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--fucsia);
}

.month-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.week-section {
    margin-bottom: 3rem;
}

.week-header {
    background: white;
    padding: 1rem 2rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--rosa);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.week-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 0;
}

.course-card {
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 0, 110, 0.2);
}

.course-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--fucsia) 0%, var(--rosa) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.course-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.course-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    z-index: 2;
}

.status-active {
    background: var(--verde);
    --verde: #10B981; /* Ensure this var exists or fallback */
}

.status-finished {
    background: var(--gris);
    --gris: #9CA3AF; /* Ensure this var exists or fallback */
}

.course-type {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    padding: 0.5rem 1.2rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.course-content {
    padding: 2rem;
}

.course-discipline {
    display: inline-block;
    background: linear-gradient(135deg, var(--fucsia) 0%, var(--rosa) 100%);
    color: white;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.course-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.course-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.course-description {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 2.5rem 0;
}

.course-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fucsia);
}

.btn-enroll {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--fucsia) 0%, var(--rosa) 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-enroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 110, 0.4);
}

@media (max-width: 1024px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 640px) {
    .status-filters {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Agenda Page Styles */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 0;
}

.event-card {
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 0, 110, 0.2);
}

.event-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--fucsia) 0%, var(--rosa) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.event-date {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: white;
    padding: 0.8rem 1.2rem;
    text-align: center;
    z-index: 2;
}

.event-date-day {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--fucsia);
    line-height: 1;
}

.event-date-month {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.event-content {
    padding: 2rem;
}

.event-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--fucsia) 0%, var(--rosa) 100%);
    color: white;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.event-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.event-description {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0 !important;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

/* Event Detail Modal Specifics */
.event-detail-image {
    position: relative;
    width: 100%;
    height: 400px !important;
}

.event-detail-content {
    padding: 3rem;
}

.event-detail-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--fucsia) 0%, var(--rosa) 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.event-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.event-detail-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-top: 2rem;
}

.info-boxes {
    display: grid;
    margin-top: 2rem;
}

.info-box {
    background: linear-gradient(135deg, 
        rgba(255, 0, 110, 0.05) 0%, 
        rgba(255, 102, 178, 0.05) 100%);
    padding: 2rem;
    border-left: 4px solid var(--fucsia);
    width: 100%;
}

.info-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--fucsia);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: #555;
    line-height: 1.6;
}

.info-item strong {
    min-width: 80px;
    color: #333;
}

@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .info-boxes {
        grid-template-columns: 1fr;
    }
}

/* 
=============================================
/* 
=============================================
/* 
=============================================
HivePress Authentication Form Overrides - Aggressive
=============================================
*/

/* 
   We use ID specificity or direct descendant selectors to force styles 
   regardless of HivePress defaults.
*/

.hcc-hivepress-form {
    width: 100%;
    margin-top: 1rem;
}

/* Force Grid Layout */
.hcc-hivepress-form form {
    display: grid !important;
    gap: 1.5rem !important;
}

/* Inputs & Selects - Target ALL inputs inside our wrapper */
.hcc-hivepress-form input:not([type="checkbox"]):not([type="radio"]),
.hcc-hivepress-form select,
.hcc-hivepress-form textarea {
    padding: 1rem !important;
    border: 1px solid #ddd !important;
    font-family: 'Work Sans', sans-serif !important;
    font-size: 1rem !important;
    color: #333 !important;
    background: white !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    height: auto !important;
    box-shadow: none !important;
    margin: 0 !important;
    line-height: normal !important;
}

.hcc-hivepress-form input:focus,
.hcc-hivepress-form select:focus,
.hcc-hivepress-form textarea:focus {
    outline: none !important;
    border-color: var(--fucsia) !important;
}

/* Labels */
.hcc-hivepress-form label {
    display: block !important;
    margin-bottom: 0.5rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 1px !important;
    color: #666 !important;
    font-family: 'Work Sans', sans-serif !important;
}

/* Submit Button */
.hcc-hivepress-form button[type="submit"],
.hcc-hivepress-form input[type="submit"] {
    width: 100% !important;
    padding: 1.2rem !important;
    background: rgba(255, 0, 110, 0.15) !important;
    color: var(--fucsia) !important; /* Fuchsia Text */
    border: 1px solid var(--fucsia) !important;
    cursor: pointer !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-family: 'Work Sans', sans-serif !important;
    font-size: 1rem !important;
    transition: all 0.3s !important;
    margin-top: 1.5rem !important;
    border-radius: 50px !important;
    text-shadow: none !important;
    backdrop-filter: blur(5px) !important;
}

.hcc-hivepress-form button[type="submit"]:hover,
.hcc-hivepress-form input[type="submit"]:hover {
    background: var(--fucsia) !important;
    color: white !important; /* White text on hover */
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.4) !important;
}

/* Checkboxes (Terms, Permissions) */
.hcc-hivepress-form input[type="checkbox"] {
    margin-right: 0.5rem !important;
    transform: scale(1.2);
    accent-color: var(--fucsia);
}

.hp-form__field, .hp-field {
    margin-bottom: 0 !important;
}

/* Hide required asterisk color override */
.hp-required {
    color: var(--fucsia) !important;
}

/* Error Messages */
.hp-message--error {
    border-left: 3px solid #cc0000 !important;
    margin-bottom: 1.5rem !important;
}

/* Fix for Phone Input with Flags */
.hcc-hivepress-form input[type="tel"],
.hcc-hivepress-form input[name*="phone"],
.hcc-hivepress-form input[name*="mobile"],
.hcc-hivepress-form input.hp-field__input--tel {
    padding-left: 120px !important; /* Increased space and broader selectors */
}

/* Hide HivePress default footer text (e.g., "Ya tienes cuenta?") */
.hcc-hivepress-form .hp-form__footer {
    font-size: 0 !important; /* Hide text nodes */
    text-align: center;
}

/* Hide the HivePress default login link */
.hcc-hivepress-form .hp-form__footer a {
    display: none !important;
}

/* Restore Button Font Size */
.hcc-hivepress-form .hp-form__footer button,
.hcc-hivepress-form .hp-form__footer .hp-btn {
    font-size: 1rem !important;
}

/* Global HivePress Overrides for Native Components (Modals/Actions) */
.hp-modal {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(10px);
}

.hp-modal__content {
    background: white !important;
    border-radius: 0 !important;
    padding: 3rem !important;
    max-width: 600px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    font-family: 'Work Sans', sans-serif !important;
}

.hp-modal__header h3 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--black) !important;
    text-transform: uppercase;
    margin-bottom: 2rem !important;
}

.hp-listing__action,
.hp-btn--primary {
    background: rgba(255, 0, 110, 0.15) !important;
    color: var(--fucsia) !important; /* Fuchsia Text */
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--fucsia) !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.3s;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.hp-listing__action:hover,
.hp-btn--primary:hover {
    background: var(--fucsia) !important;
    color: white !important; /* White text on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 110, 0.4);
}

/* Form Fields in Modals */
.hp-field__label {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 0.5rem;
    display: block;
}

.hp-field__input, 
.hp-field__textarea {
    width: 100%;
    padding: 1rem !important;
    border: 1px solid #ddd !important;
    font-family: 'Work Sans', sans-serif !important;
    font-size: 1rem !important;
    border-radius: 0 !important;
}

.hp-field__input:focus, 
.hp-field__textarea:focus {
    border-color: var(--fucsia) !important;
    outline: none;
}

/* HivePress Form Integration in Enroll Modal */
#enrollModal .hp-form {
    display: grid;
    gap: 1.5rem;
}

#enrollModal .hp-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

#enrollModal .hp-field__label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #666;
}

#enrollModal .hp-field__input,
#enrollModal .hp-field__textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: transparent;
}

#enrollModal .hp-field__input:focus,
#enrollModal .hp-field__textarea:focus {
    outline: none;
    border-color: var(--fucsia);
}

#enrollModal .hp-form__footer {
    margin-top: 1rem;
}

#enrollModal .hp-form__action {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 0, 110, 0.15);
    color: var(--fucsia); /* Fuchsia Text */
    border: 1px solid var(--fucsia);
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

#enrollModal .hp-form__action:hover {
    background: var(--fucsia);
    color: white; /* White text on hover */
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.4);
}

/* Contact Form 7 Custom Styles */
.hcc-enroll-form {
    margin-top: 1.5rem;
}

.hcc-enroll-form .wpcf7-form p {
    margin-bottom: 1.5rem;
}

.hcc-enroll-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #666;
}

.hcc-enroll-form label:has(.wpcf7-validates-as-required)::after {
    /* content: " *";  <-- Removed to prevent asterisk at end of line */
    /* color: var(--fucsia); */
    /* font-weight: 700; */
    /* margin-left: 4px; */
    content: none;
}

.hcc-asterisk {
    color: var(--fucsia);
    font-weight: 700;
    margin-left: 4px;
}

/* CAMBIOS BOTON ENVIAR FORMACIO */

/* ===== Contact Form 7 Submit Button Custom Style ===== */

.wpcf7 input[type="submit"],
.wpcf7-submit {
    padding: 0.8rem 2rem !important;
    background: rgba(255, 0, 110, 0.15) !important;
    color: var(--fucsia) !important;
    border: 1px solid var(--fucsia) !important;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
    border-radius: 50px !important;
    backdrop-filter: blur(5px);
    box-shadow: none !important;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7-submit:hover {
    background: var(--fucsia) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 110, 0.4) !important;
}


.hcc-enroll-form input[type="text"],
.hcc-enroll-form input[type="email"],
.hcc-enroll-form input[type="tel"],
.hcc-enroll-form select,
.hcc-enroll-form textarea {
    width: 100%;
    
    padding: 1rem;
    border: 1px solid #ddd;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #fff;
    color: #333;
}

.hcc-enroll-form input:focus,
.hcc-enroll-form select:focus,
.hcc-enroll-form textarea:focus {
    outline: none;
    border-color: var(--fucsia);
}

.hcc-enroll-form input[type="submit"] {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--fucsia) 0%, var(--rosa) 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    margin-top: 1rem;
}

.hcc-enroll-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.4);
}

.wpcf7-spinner {
    margin-top: 1rem;
}

/* CF7 Response Messages */
.hcc-enroll-form .wpcf7-response-output {
    margin: 2rem 0 1rem;
    padding: 1rem;
    border: 2px solid #ddd; /* Default */
    font-size: 0.9rem;
    text-align: center;
}

/* Success Message */
.hcc-enroll-form .wpcf7-mail-sent-ok {
    border-color: #4CAF50;
    color: #2E7D32;
    background: #E8F5E9;
}

/* Error Messages */
.hcc-enroll-form .wpcf7-validation-errors,
.hcc-enroll-form .wpcf7-acceptance-missing {
    border-color: var(--fucsia);
    color: #C62828;
    background: rgba(255, 0, 110, 0.05);
}

/* Field Validation Errors */
.hcc-enroll-form .wpcf7-not-valid-tip {
    color: var(--fucsia);
    font-size: 0.8rem;
    margin-top: 0.2rem;
    font-weight: 500;
}

/* Course Card Refinements */
.course-image-square {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.course-image-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.course-card:hover .course-image-square img {
    transform: scale(1.05);
}

.course-title-small {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.course-meta-row {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.course-price-row {
    color: var(--fucsia);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.course-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.btn-text {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #666;
    letter-spacing: 1px;
    padding: 0;
    transition: color 0.3s;
}

.btn-text:hover {
    color: var(--black);
    text-decoration: underline;
}

.btn-primary-small {
    background: rgba(255, 0, 110, 0.15);
    color: var(--fucsia); /* Fuchsia Text */
    border: 1px solid var(--fucsia);
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px; /* Small pill shape if desired, or 0 for square */
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}

.btn-primary-small:hover {
    background: var(--fucsia);
    color: white; /* White text on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.3);
}

/* Contact Page Styles */
.contact-wrapper {
    max-width: 1000px;
    margin: -10px auto 5rem;
    padding: 0 3rem;
    position: relative;
    z-index: 10;
}

.contact-card {
    padding: 2rem 4rem;
    text-align: center;
    margin-top: 1.5rem;
}

/* .contact-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 3rem;
    font-weight: 400;
} */

.email-box {
    padding: 3rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    color: white;
}

.email-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    transform: translate(50%, -50%);
}

.email-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    margin-bottom: 1rem;
}

.email-address {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    word-break: break-all;
}

.email-address a {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.email-address a:hover {
    color: var(--fucsia);
    text-shadow: 0 0 20px rgba(255, 0, 110, 0.3);
}

.response-note {
    font-size: 1.1rem;
    color: white;
    font-style: italic;

    font-weight: 400;
}


/* Specific CTA Section Override for Contact Page */
.contact-wrapper .cta-section {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 3rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-wrapper .cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    animation: headerMove 15s ease-in-out infinite;
}

/* ============================================
   DASHBOARD STYLES - El Meu Tauler
   ============================================ */

/* Dashboard Content */
.dashboard-wrapper {
    max-width: 1200px;
    margin: -10px auto 5rem;
    padding: 0 3rem;
    position: relative;
    z-index: 10;
}

.welcome-card {
    background: white;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--fucsia);
}

.welcome-card h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.welcome-card p {
    font-size: 1.1rem;
    color: #666;
}

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

.dashboard-card {
    background: white;
    padding: 3rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--fucsia) 0%, var(--rosa) 100%);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.dashboard-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 0, 110, 0.2);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.logout-card {
    background: linear-gradient(135deg, 
        rgba(255, 0, 110, 0.05) 0%, 
        rgba(255, 102, 178, 0.05) 100%);
    border-left: 4px solid var(--fucsia);
}

.logout-card:hover {
    background: linear-gradient(135deg, 
        rgba(255, 0, 110, 0.1) 0%, 
        rgba(255, 102, 178, 0.1) 100%);
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-header h1 {
        font-size: 4rem;
    }

    .dashboard-wrapper {
        padding: 0 1.5rem;
    }
}

/* Profile Modal Styles */
.profile-form {
    display: grid;
    gap: 1.5rem;
}

.profile-form textarea {
    font-family: 'Space Grotesk', sans-serif;
    resize: vertical;
}

.profile-message {
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
    border-radius: 4px;
    font-weight: 600;
}

.profile-message.loading {
    background: #f0f0f0;
    color: #666;
}

.profile-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.profile-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* HivePress Submit Listing Page Styles */
.hp-template--listing-submit-page .entry-header h1,
.hp-template--listing-submit-details-page .entry-header h1,
.hp-template--listing-submit-category-page .entry-header h1,
.hp-template--listing-submit-complete-page .entry-header h1 {
    color: var(--white);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

body[class*="hp-template--listing-submit"] main,
.hp-template main {
    max-width: 800px;
    margin: 15rem auto 3rem; /* Added margin-top to clear header */
    padding: 3rem;
}

body .hp-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    max-width: 800px;
    margin: 0 auto;
}

/* Override for forms inside modals */
.modal-content .hp-form {
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    max-width: 100% !important;
}

body .hp-field__label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--black);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.hp-field__input,
.hp-field__textarea,
.hp-field__select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 0; /* Match theme square style if applicable, or keep radius if desired */
    font-family: 'Work Sans', sans-serif; /* Use body font for inputs */
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
    background: #f9f9f9;
}

.hp-field__input:focus,
.hp-field__textarea:focus,
.hp-field__select:focus {
    border-color: var(--fucsia);
    outline: none;
    background: white;
    box-shadow: 0 0 0 2px rgba(255, 0, 110, 0.1);
}

.hp-form__footer {
    text-align: center;
    margin-top: 2rem;
}

.hp-form__footer .hp-btn--primary {
    background: linear-gradient(90deg, var(--fucsia) 0%, var(--rosa) 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hp-form__footer .hp-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 110, 0.4);
}

@media (max-width: 768px) {
    body[class*="hp-template--listing-submit"] main,
    .hp-template main {
        padding: 1.5rem;
    }

    body .hp-form {
        padding: 1.5rem;
    }

    body[class*="hp-template--listing-submit"] .entry-header h1,
    .hp-template .entry-header h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* 
=============================================
Select2 Custom Styles (Theme Integration)
=============================================
*/

/* Container */
.select2-container--default .select2-selection--single {
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    height: auto !important;
    padding: 0.8rem !important;
    background-color: white !important;
    font-family: 'Work Sans', sans-serif !important;
    color: #333 !important;
    outline: none !important;
    display: flex !important;
    align-items: center !important;
}

/* Rendered Text */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #333 !important;
    padding-left: 0 !important;
    line-height: normal !important;
    font-size: 1rem !important;
}

/* Arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 10px !important;
}

/* Focus State */
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--fucsia) !important;
}

/* Dropdown */
.select2-dropdown {
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    z-index: 9999 !important;
    font-family: 'Work Sans', sans-serif !important;
}

/* Search Box */
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ddd !important;
    padding: 0.5rem !important;
    outline: none !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--fucsia) !important;
}

/* Options */
.select2-results__option {
    padding: 0.8rem 1rem !important;
    font-size: 0.95rem !important;
    color: #333 !important;
}

/* Highlighted Option */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--fucsia) !important;
    color: white !important;
}

/* Selected Option */
.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #f0f0f0 !important;
    color: #333 !important; 
}

/* 
=============================================
Image Upload & Spacing Improvements
=============================================
*/

/* Field Spacing */
.hcc-hivepress-form .hp-form__field {
    margin-bottom: 2rem !important;
}

/* Image Upload Field */
.hp-field--file .hp-field__label {
    margin-bottom: 1rem !important;
}

/* The dropzone container */
.hp-field--file .hp-file-input {
    border: 2px dashed #ccc;
    padding: 3rem 2rem;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hp-field--file .hp-file-input:hover {
    border-color: var(--fucsia);
    background: rgba(255, 0, 110, 0.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Pseudo-element for the icon/text if standard HivePress HTML is used */
.hp-field--file .hp-file-input::before {
    content: '\f03e'; /* FontAwesome generic image icon if available, or just use text below */
    font-family: 'Font Awesome 5 Free'; 
    font-weight: 900;
    font-size: 2rem;
    color: #aaa;
    margin-bottom: 0.5rem;
    display: none; /* Hide if no FA loaded */
}

/* Add custom "Select Images" button look inside the dropzone */
.hp-field--file .hp-file-input::after {
    content: 'Seleccionar imatges'; /* Translate to Catalan/Valencian as requested context */
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--fucsia) 0%, var(--rosa) 100%);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(255, 0, 110, 0.3);
    transition: all 0.3s;
}

.hp-field--file .hp-file-input:hover::after {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 0, 110, 0.4);
}

/* Hide default file input */
.hp-field--file input[type="file"] {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 10;
}

/* Uploaded Files List (Grid) */
.hp-field--file .hp-file-list {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

/* Individual File Preview Item */
.hp-field--file .hp-file-list__item {
    position: relative;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* The Image itself */
.hp-field--file .hp-file-list__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Remove button (often an 'x' icon) */
.hp-field--file .hp-file-list__item .hp-file-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: white;
    color: #ff0000;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-size: 12px;
    z-index: 5;
}

.hp-field--file .hp-file-list__item .hp-file-remove:hover {
    background: #ff0000;
    color: white;
}

/* Modal Login | Arreglo Ojo Password */

/* Arreglar posición del ojo en campo de contraseña */
.hp-form__field--password {
    position: relative;
}

.hp-form__field--password input[type="password"],
.hp-form__field--password input[type="text"] {
    padding-right: 45px !important;
    width: 100%;
}

.hp-form__field--password .hp-field__icon {
    position: absolute !important;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
    line-height: 1;
}

.hp-form__field--password .hp-field__icon i {
    font-size: 16px;
    color: #666;
}

.hp-form__field--password .hp-field__icon:hover i {
    color: #000;
}

/* Asegurar que el label no interfiera */
.hp-form__field--password .hp-form__label {
    position: relative;
    display: block;
    margin-bottom: 8px;
}

/* Arreglar Input Telf */

/* Selector ultra-específico */
.hp-form__field.hp-form__field--tel .iti input[type="tel"].iti__tel-input {
    padding-left: 82px !important;
}



/* Com Funciona Redesign */
.com-funciona-page .page-header {
    background: transparent !important; /* Ensure it floats over if needed, or just default */
    padding-bottom: 2rem;
}

.cf-section {
    position: relative;
    width: 100%;
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    margin-bottom: 0; 
}

.cf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.cf-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    text-align: center;
    color: var(--white);
}

.features-grid-linear, .steps-grid-clean {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.feature-item-clean, .step-item-clean {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
}

.feature-item-clean h4, .step-item-clean h4 {
    font-size: 1.5rem;
    color: var(--fucsia); /* Or white? User said "textos en blanc". Let's stick to white or brand color for contrast. Let's try White with shadow */
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.feature-item-clean p, .step-item-clean p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-section-clean {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* ============================================
   GLOBAL BUTTON STYLES - FUCHSIA VARIANT
   ============================================ */
/* Applies to all buttons not specifically overridden */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.wp-block-button__link,
.elementor-button {
    background: rgba(255, 0, 110, 0.15); /* Semi-transparent Fuchsia */
    color: var(--fucsia);
    border: 1px solid var(--fucsia);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    text-decoration: none;
    display: inline-block;
    line-height: normal;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.elementor-button:hover {
    background: var(--fucsia);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 110, 0.4);
    text-decoration: none;
}

/* Specific overrides for known classes to ensure they take precedence if needed */
.vp-portfolio__load-more-btn,
.search-submit,
.post-edit-link { 
    background: rgba(255, 0, 110, 0.15) !important;
    color: var(--fucsia) !important;
    border: 1px solid var(--fucsia) !important;
    border-radius: 50px !important;
}

.vp-portfolio__load-more-btn:hover,
.search-submit:hover,
.post-edit-link:hover {
    background: var(--fucsia) !important;
    color: white !important;
}

/* Card Action Buttons (Professionals, Espais) - Moved from template to global to ensure application */
.professional-card .btn-view-profile,
.btn-view-profile {
    padding: 0.8rem 2rem !important;
    background: rgba(255, 0, 110, 0.15) !important; /* Semi-transparent Fuchsia */
    color: var(--fucsia) !important;
    border: 1px solid var(--fucsia) !important;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s;
    text-decoration: none !important;
    display: inline-block;
    border-radius: 50px !important;
    backdrop-filter: blur(5px);
    box-shadow: none;
}

.professional-card .btn-view-profile:hover,
.btn-view-profile:hover {
    background: var(--fucsia) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 110, 0.4) !important;
}




/* MOVIL AJUSTES */

@media (max-width: 1024px) {

    /* Contenedor de beneficios en móvil */
    .cta-benefits {
        display: flex;
        flex-direction: column;
        align-items: flex-start; 
        gap: 1.5rem; 
        justify-content: flex-start;
        margin-bottom: 2rem;
        padding-left: 1rem;
    }

    /* Cada beneficio */
    .benefit {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        font-size: 1.1rem;
        font-weight: 400;
        width: 100%;
    }

    /* Icono de cada beneficio */
    .benefit-icon {
        font-size: 1.8rem;
        padding-bottom: 0;
        flex-shrink: 0; 
    }

    /* Texto dentro del beneficio */
    .benefit span:last-child {
        text-align: left;
    }

    .btn-cta {
        font-size: 0.7rem;
    }

    .footer-section {
        text-align: center;
    }


    /* SOBRE HUB */

    .page-header p{
        padding-top: 1.5rem;
    }

    .neighborhoods-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        margin: 3rem 0;
    }

    .neighborhood-card {
        background: rgba(255, 255, 255, 0.15);
        padding: 0.8rem 1rem;         
        border: 2px solid rgba(255,255,255,0.3);
        border-radius: 999px;
        text-align: center;
        width: 100%;           
        display: flex;    
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .neighborhood-card:hover {
        transform: translateY(-5px); 
        box-shadow: 0 8px 25px rgba(255, 0, 110, 0.2);
    }

    .neighborhood-card p {
        font-size: 1.2rem;
        color: var(--white);
        margin: 0;
        text-transform: uppercase;
        font-weight: 500;
    }

    /* COM FUNCIONA */

    .intro-section {
        margin-bottom: 0 !important;
    }
    
    .intro-section h2 {
        padding-bottom: 1rem !important;
    }

    .features-section {
        margin: 0 !important;
        padding: 2rem 0 !important;
    }

    /* FORMACIÓ */

    .content-section {
        padding: 0 1rem;
    }

    /* CONTACTO */

    .contact-wrapper {
        padding: 0 1rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }

    .email-box {
        padding: 2rem 1rem;
    }

    .email-address {
        font-size: 1.3rem;
    }

    /* ESPAIS */

    .search-section  {
        padding: 0 1rem;
    }

    .professionals-section {
        padding: 0 1rem;
    }

    /* AGENDA */

    .filters-section {
        padding: 0 1rem;
    }

    @media (max-width: 768px) {

        .page-header h1 {
            font-size: 3rem;
        }

    }

}

/* Com Funciona Images */
.block-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: -4rem;
    margin-bottom: 4rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.block-image:hover {
    transform: scale(1.02);
}
