/* Variables de color de marca */
:root {
    --bg-dark: #121214;
    /* Fondo oscuro profundo */
    --card-bg: #1e1e20;
    /* Fondo de las tarjetas y contenedores */
    --primary-pink: #e91e63;
    /* El rosa de tu logo */
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    /* Para textos secundarios y párrafos */
    --accent-blue: #7096d1;
    /* El azul suave de "Nuestra Visión" */
}

html,
body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Prevent fixed header from covering titles */
}

/* Navbar overrides */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    /* Reverted/Set height to 100px as requested */
    z-index: 1000;
    background-color: transparent !important;
    /* Initial transparent */
    backdrop-filter: none;
    padding: 0;
    /* Reset padding to let flex center */
    transition: all 0.3s ease;
    /* Smooth transition */
    display: flex;
    align-items: center;
    /* Vertically center content */
}

/* Scrolled State */
.navbar.scrolled {
    height: 60px;
    /* Reduced shrunken height */
    background-color: rgba(18, 18, 20, 0.8) !important;
    /* Dark semi-transparent */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(18, 18, 20, 0.95);
        backdrop-filter: blur(10px);
    }

    .hero-body {
        padding-top: 120px;
        /* Add space on mobile to prevent nav overlap */
    }
}

.navbar-item img {
    max-height: 50px;
    /* Initial logo size */
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-item img {
    max-height: 40px;
    /* Smaller logo on scroll */
}

/* Hero overrides */
/* Hero overrides */
.hero {
    /* Using a white overlay (80%) as requested */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/images/hreo_image_2.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-body .title,
.hero-body .subtitle {
    font-weight: 800;
    color: var(--text-white) !important;
    text-shadow: none;
}

.hero-body .has-text-primary {
    color: var(--primary-pink) !important;
}

/* Service Cards overrides */
.card.service-card {
    background-color: var(--card-bg);
    border: 1px solid #333;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.card.service-card .title {
    color: var(--text-white);
}

.card.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-pink);
}

.card-content .icon.is-large {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

/* Contact Form overrides */
.box.contact-section {
    background-color: var(--card-bg);
    border: 1px solid #333;
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.4);
}

.input,
.textarea {
    background-color: #2a2a2d;
    border-color: #444;
    color: white;
}

.input::placeholder,
.textarea::placeholder {
    color: #666;
}

.input:focus,
.textarea:focus {
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 0.125em rgba(233, 30, 99, 0.25);
}

.button.is-primary {
    background-color: var(--primary-pink);
    border-color: transparent;
    transition: opacity 0.3s;
}

.button.is-primary:hover {
    background-color: var(--primary-pink);
    /* Bulma darkens by default, but we can stick to brand or let it darken */
    opacity: 0.9;
}

/* Custom CTA Button */
.cta-custom {
    background-color: var(--primary-pink);
    color: white;
    border: 2px solid var(--primary-pink);
    transition: all 0.3s ease;
}

.cta-custom:hover {
    background-color: var(--bg-dark);
    /* Black background on hover */
    color: white;
    border-color: var(--primary-pink);
    /* Pink border on hover */
}

.consultoria-img {
    padding: 20px;
    border: 0.7px solid var(--primary-pink);
    border-radius: 8px;
    /* Added radius for consistency */
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Helper classes */
.has-text-grey-light {
    color: var(--text-gray) !important;
}

.isotipo-a {
    /* If you had an image for the logo, style it here. 
       Currently assuming it might be a div with background or need size */
    width: 40px;
    height: 40px;
    /* Example placeholder style if it was a div */
    /* background-color: var(--primary-pink); */
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    /* Hidden by default */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
    /* White shadow */
    font-size: 1.2rem;
    padding: 0;
    height: 3rem;
    width: 3rem;
    border-radius: 50%;
    /* Ensure round */
    background-color: var(--primary-pink);
    opacity: 0.6;
    /* 60% transparency */
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.6);
    /* Stronger white shadow on hover */
    opacity: 1;
    /* Full opacity on hover */
}

/* Typography Overrides for Sections */
.section .title.is-2 {
    font-size: 2rem !important;
    /* Reduced from Bulma default ~2.5rem */
}

.section .content.is-medium {
    font-size: 1.1rem !important;
    /* Reduced from Bulma default 1.25rem */
}

.hero-body .title.is-1 {
    font-size: 2.5rem !important;
    /* Also reduce Hero title slightly if needed */
}

.hero-body .subtitle.is-3 {
    font-size: 1.5rem !important;
    /* Reduce Hero subtitle */
}

/* Footer Styles */
.footer {
    background-color: #1a1a1c;
    /* Slightly Lighter than bg-dark for contrast */
    color: var(--text-white);
    padding: 3rem 1.5rem 3rem;
}

.footer-logo {
    max-height: 50px;
    width: auto;
}

.footer-link {
    color: var(--text-gray);
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--primary-pink);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-pink);
    color: white;
    transform: translateY(-3px);
}

.border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Challenge Button Styles */
.btn-challenge {
    background-color: var(--primary-pink);
    color: #000000 !important;
    border: 2px solid var(--primary-pink);
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-challenge:hover {
    background-color: transparent;
    color: #ffffff !important;
    border-color: var(--primary-pink);
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.6);
}
