/* style.css */

/* CSS Variables */
:root {
    --primary-color: #00C9FF; /* Vibrant Cyan/Blue - Main action */
    --primary-color-darker: #00A3CC;
    --secondary-color: #A855F7; /* Deep Purple - Accent, secondary actions */
    --secondary-color-darker: #8A36D9;
    --accent-color-1: #F97316; /* Bright Orange - Highlights */
    --accent-color-2: #10B981; /* Teal/Green - Positive feedback, sustainability */

    --neutral-darkest: #0D0D2B; /* Very Dark Blue/Black - Backgrounds */
    --neutral-dark: #1A1A3D; /* Dark Blue/Grey - Text, darker UI elements */
    --neutral-medium: #3E4A6C; /* Medium Grey/Blue - Borders, subtle text */
    --neutral-light: #f4f7f6; /* Light Grey - Section backgrounds, card backgrounds */
    --neutral-lighter: #E0E7EF;
    --neutral-lightest: #FFFFFF; /* White - Text on dark */

    --text-color-dark: #222222; /* Dark text for light backgrounds, increased contrast */
    --text-color-light: var(--neutral-lightest);
    --text-color-medium: #555555; /* Medium dark text */
    --text-color-subtle: #777777;

    --heading-font: 'Space Grotesk', sans-serif;
    --body-font: 'DM Sans', sans-serif;

    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 16px;

    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 8px 24px rgba(0, 0, 0, 0.15);

    --navbar-height: 5rem; /* Based on Bulma's default, adjust if needed */
}

/* Global Styles */
html {
    scroll-behavior: smooth;
    background-color: var(--neutral-lightest);
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--body-font);
    color: var(--text-color-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll from AOS or other animations */
    background-color: var(--neutral-lightest); /* Default body background */
}

/* Typography */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--heading-font);
    color: var(--text-color-dark); /* Ensure high contrast for headings */
    font-weight: 700;
}

.title { /* Bulma .title class */
    color: var(--text-color-dark); /* Ensure high contrast for Bulma titles */
    text-shadow: none; /* Remove if any default shadow exists that reduces contrast */
}
.title.is-1 { font-size: 3rem; margin-bottom: 1.5rem; }
.title.is-2 { font-size: 2.5rem; margin-bottom: 1.25rem; }
.title.is-3 { font-size: 2rem; margin-bottom: 1rem; }
.title.is-4 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.title.is-5 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.title.is-6 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.subtitle { /* Bulma .subtitle class */
    color: var(--text-color-medium);
    font-weight: 400;
}

p, .content {
    font-family: var(--body-font);
    color: var(--text-color-medium);
    margin-bottom: 1rem;
}

.content p:not(:last-child),
.content ul:not(:last-child),
.content ol:not(:last-child) {
    margin-bottom: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    color: var(--primary-color-darker);
    opacity: 0.85;
}

/* Section Styling */
.section {
    padding: 4rem 1.5rem; /* Default padding for sections */
}
.section.is-medium {
    padding: 6rem 1.5rem;
}
.section.is-large {
    padding: 9rem 1.5rem;
}

.section-title {
    margin-bottom: 2.5rem !important; /* Increased space below section titles */
    color: var(--neutral-darkest); /* Ensure very high contrast */
    text-align: center;
}
.section-title.has-text-white { /* For dark backgrounds */
    color: var(--text-color-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Header & Navbar */
.header {
    height: var(--navbar-height); /* For spacing if needed, though navbar is fixed */
}

.navbar.is-fixed-top {
    background-color: rgba(13, 13, 43, 0.85); /* Dark, slightly transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-medium);
}

.navbar-item, .navbar-link {
    font-family: var(--heading-font);
    font-weight: 500;
    color: var(--neutral-lighter);
    transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar-item:hover, .navbar-link:hover {
    color: var(--primary-color);
    background-color: transparent; /* Or a very subtle hover effect */
}
.navbar-item.is-active { /* If we add an active state via JS */
    color: var(--primary-color);
    font-weight: 700;
}

.logo-text {
    font-family: var(--heading-font);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-burger {
    color: var(--neutral-lighter);
}
.navbar-burger:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(13, 13, 43, 0.98); /* Solid for mobile dropdown */
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding: 0.5rem 0;
    }
    .navbar-menu .navbar-item {
        padding: 0.75rem 1.5rem;
    }
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--text-color-light); /* Ensures text is white */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(13, 13, 43, 0.8) 0%, rgba(26, 26, 61, 0.6) 50%, rgba(38, 38, 79, 0.4) 100%);
    z-index: 1;
}

.hero .hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .container {
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-color-light) !important; /* Explicitly white */
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--neutral-lighter) !important; /* Explicitly light */
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}

/* Global Button Styles (Enhancing Bulma) */
.button {
    font-family: var(--heading-font);
    font-weight: 500;
    border-radius: var(--border-radius-small);
    padding: 0.8em 1.8em;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-light);
}
.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}
.button:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.button.is-primary {
    background-color: var(--primary-color);
    color: var(--neutral-darkest); /* Text on primary button */
}
.button.is-primary:hover {
    background-color: var(--primary-color-darker);
    color: var(--neutral-darkest);
}

.button.is-secondary { /* Example for secondary */
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}
.button.is-secondary:hover {
    background-color: var(--secondary-color-darker);
    color: var(--text-color-light);
}

.button.is-link.is-outlined { /* For "Read More" links */
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}
.button.is-link.is-outlined:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-color: var(--primary-color);
}


/* Card Styles - General */
.card {
    background-color: var(--neutral-lightest);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Ensures content respects border-radius */
    display: flex;
    flex-direction: column;
    height: 100%; /* Make cards in a row equal height */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.card .card-image, /* Bulma's .card-image */
.card .image-container { /* Custom class from HTML */
    width: 100%;
    max-height: 250px; /* Consistent max height for card images */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card .card-image img,
.card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-top-left-radius: var(--border-radius-medium); /* If image is first element */
    border-top-right-radius: var(--border-radius-medium);
    transition: transform 0.4s ease;
}
.card:hover .card-image img,
.card:hover .image-container img {
    transform: scale(1.05);
}

.card .card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to fill space for equal height cards */
    display: flex;
    flex-direction: column;
}
.card .card-content .title {
    color: var(--neutral-dark);
    margin-bottom: 0.75rem;
}
.card .card-content .content {
    color: var(--text-color-medium);
    font-size: 0.95rem;
    flex-grow: 1;
}
.card .card-content .content p:last-child {
    margin-bottom: 0;
}

/* Specific Card Types */
.process-card .card-content .title,
.service-card .card-content .title {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.team-member-card {
    text-align: center;
}
.team-member-card .card-image img {
    border-radius: var(--border-radius-medium); /* For standalone images not at the very top */
}
.team-member-card .card-image {
    max-height: 300px; /* Or specific size as per design */
}
.team-member-card .card-content .title {
    font-size: 1.3rem;
    margin-top: 0.5rem;
    color: var(--neutral-darkest);
}
.team-member-card .card-content .subtitle {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.team-member-card .content.is-small {
    font-size: 0.85rem;
    color: var(--text-color-subtle);
}
.team-member-card .image-container img {
    border-radius: 50%; /* Make team member photos circular */
    width: 150px !important; /* Specific size */
    height: 150px !important; /* Specific size */
    object-fit: cover;
    margin: 0 auto 1rem auto; /* Center image if container is wider */
    box-shadow: var(--shadow-light);
}
.team-member-card .image-container { /* Override default card-image behavior for team */
    max-height: none; /* Let the image dictate height */
    padding-top: 1.5rem;
}


.insight-card .card-content .title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.insight-card .button.is-link.is-outlined {
    margin-top: auto; /* Push button to bottom */
    align-self: flex-start;
}

.resource-card {
    background-color: var(--neutral-light);
    border-left: 4px solid var(--accent-color-1);
}
.resource-card .card-content {
    padding: 1.25rem;
}
.resource-card .title.is-5 a {
    color: var(--neutral-darkest);
    font-weight: 500;
}
.resource-card .title.is-5 a:hover {
    color: var(--accent-color-1);
}
.resource-card .subtitle.is-6 {
    color: var(--text-color-subtle);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: 0.5rem;
}

.testimonial-card {
    background-color: var(--neutral-darkest);
    color: var(--neutral-lighter);
}
.testimonial-card .card-content .content p {
    color: var(--neutral-lighter);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
}
.testimonial-card .card-content .content strong {
    color: var(--primary-color);
    font-style: normal;
}
.testimonial-card .card-content .content small {
    color: var(--neutral-medium);
    font-style: normal;
}
.testimonial-card .card-image img { /* Client avatar in testimonial */
    width: 80px !important; /* Specific size for avatar */
    height: 80px !important; /* Specific size for avatar */
    border-radius: 50%;
    object-fit: cover;
    margin: 1rem auto 0 auto; /* Spacing for avatar */
    border: 3px solid var(--primary-color);
}
.testimonial-card .card-image { /* Override for avatar */
    max-height: none;
    padding: 0 1.5rem 1.5rem 1.5rem; /* Match HTML style */
}

/* Sustainability Section */
#sostenibilidad .image-container img {
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-dark);
}
#sostenibilidad .content.is-medium {
    font-size: 1.1rem;
    color: var(--text-color-dark);
}
#sostenibilidad .content.is-medium p {
    margin-bottom: 1.5rem;
}

/* Insights Section Filter */
#perspectivas .field.has-addons {
    margin-bottom: 3rem !important;
}
#perspectivas .select select, #perspectivas .button {
    height: 2.8em; /* Match button height */
    font-size: 1rem;
}
#perspectivas .select select {
    border-color: var(--neutral-medium);
    font-family: var(--body-font);
    color: var(--text-color-dark);
}
#perspectivas .select select:hover {
    border-color: var(--primary-color);
}
#perspectivas .select:not(.is-multiple):not(.is-loading)::after { /* Arrow color */
    border-color: var(--primary-color);
}


/* Partners Section */
#socios .column img {
    filter: grayscale(80%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
    max-width: 150px; /* Ensure logos are not too big */
    margin: 0 auto;
}

#socios .column img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Accolades Section */
#reconocimientos .has-text-centered img {
    margin: 0 auto 0.5rem auto;
    display: block;
    max-height: 100px; /* Control award logo size */
}
#reconocimientos .is-size-7 {
    color: var(--text-color-subtle);
}

/* Contact Home Section (CTA) */
#contacto-home {
    background-color: var(--neutral-dark);
    /* background-image: linear-gradient(45deg, var(--neutral-darkest), var(--neutral-dark)); */
    padding: 5rem 1.5rem;
}
#contacto-home .title, #contacto-home .subtitle {
    color: var(--text-color-light);
}
#contacto-home .title {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Contact Page Specific Styles (contacts.html) */
.contact-section {
    padding-top: calc(var(--navbar-height) + 3rem); /* Space for fixed navbar */
    padding-bottom: 4rem;
}
.contact-form .label {
    color: var(--text-color-dark);
    font-family: var(--heading-font);
    font-weight: 500;
}
.contact-form .input, .contact-form .textarea, .contact-form .select select {
    background-color: var(--neutral-lightest);
    border: 1px solid var(--neutral-lighter);
    border-radius: var(--border-radius-small);
    box-shadow: var(--shadow-light);
    color: var(--text-color-dark);
    font-family: var(--body-font);
    padding: 0.8em 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form .input::placeholder, .contact-form .textarea::placeholder {
    color: var(--text-color-subtle);
}
.contact-form .input:focus, .contact-form .textarea:focus, .contact-form .select select:focus,
.contact-form .input:active, .contact-form .textarea:active, .contact-form .select select:active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(0, 201, 255, 0.25); /* Primary color with alpha */
    outline: none;
}
.contact-form .button.is-primary {
    width: 100%;
    padding: 1em;
    font-size: 1.1rem;
}
.contact-details {
    background-color: var(--neutral-dark);
    color: var(--text-color-light);
    padding: 2.5rem;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-dark);
}
.contact-details .title {
    color: var(--text-color-light);
    margin-bottom: 1.5rem;
}
.contact-details p, .contact-details a {
    color: var(--neutral-lighter);
    margin-bottom: 1rem;
}
.contact-details a:hover {
    color: var(--primary-color);
}
.contact-details .icon {
    color: var(--primary-color);
    margin-right: 0.75rem;
}

/* Footer */
.footer {
    background-color: var(--neutral-darkest);
    color: var(--neutral-lighter);
    padding: 3rem 1.5rem 2rem;
}
.footer .title {
    color: var(--primary-color);
    font-size: 1.2rem; /* Smaller titles in footer */
    margin-bottom: 1rem;
}
.footer .content.is-small, .footer p {
    color: var(--neutral-medium);
    font-size: 0.9rem;
}
.footer ul {
    list-style: none;
    margin-left: 0;
}
.footer ul li a {
    color: var(--neutral-lighter);
    padding: 0.3rem 0;
    display: inline-block;
    font-family: var(--body-font);
}
.footer ul li a:hover {
    color: var(--primary-color);
}
.footer hr {
    background-color: var(--neutral-medium);
    height: 1px;
    margin: 2rem 0;
}
.footer .social-links a {
    color: var(--neutral-lighter);
    display: block; /* Each on new line as per HTML structure with <br> */
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.footer .social-links a:hover {
    color: var(--primary-color);
}
.footer .is-size-7 {
    color: var(--neutral-medium);
}

/* Special Page Styles */

/* success.html */
.success-page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background-color: var(--neutral-dark);
    color: var(--text-color-light);
}
.success-page-container .success-icon {
    font-size: 4rem; /* For a potential icon */
    color: var(--accent-color-2);
    margin-bottom: 1.5rem;
}
.success-page-container .title {
    color: var(--text-color-light);
    margin-bottom: 1rem;
}
.success-page-container .subtitle {
    color: var(--neutral-lighter);
    margin-bottom: 2rem;
}

/* privacy.html & terms.html */
.legal-page-content, .about-page-content { /* Generic class for these content pages */
    padding-top: calc(var(--navbar-height) + 3rem); /* Offset fixed navbar */
    padding-bottom: 4rem;
}
.legal-page-content .container .title,
.about-page-content .container .title {
    margin-bottom: 2rem;
    color: var(--neutral-darkest);
}
.legal-page-content .content h2, .legal-page-content .content h3,
.about-page-content .content h2, .about-page-content .content h3 {
    font-family: var(--heading-font);
    color: var(--neutral-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.legal-page-content .content p, .legal-page-content .content li,
.about-page-content .content p, .about-page-content .content li {
    color: var(--text-color-dark);
    line-height: 1.8;
}

/* Asymmetric Balance & Responsive Adjustments */
@media screen and (min-width: 769px) { /* tablet and above */
    /* Example of asymmetric balance for a section if needed */
    /* This can be achieved with Bulma's column sizes like is-two-thirds, is-one-third */
    #sostenibilidad .columns.is-vcentered .column.is-half:first-child {
        padding-right: 3rem; /* Create some asymmetry */
    }
}

@media screen and (max-width: 768px) { /* mobile */
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .section {
        padding: 3rem 1rem;
    }
    .section.is-medium {
        padding: 4rem 1rem;
    }
    .title.is-1 { font-size: 2.2rem; }
    .title.is-2 { font-size: 1.8rem; }

    .contact-details {
        margin-top: 2rem;
    }
}

/* AOS Animation Customization (optional, if default is not enough) */
[data-aos="fade-up"] {
    transition-property: transform, opacity;
}
/* Ensure AOS animations respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Cookie Consent (minimal styles already in HTML, this is just to ensure it's above other content) */
#cookieConsentPopup {
    z-index: 9999 !important; /* Ensure it's above everything */
}