/* style.css */

:root {
    /* Fonts */
    --font-primary: 'Oswald', sans-serif;
    --font-secondary: 'Nunito', sans-serif;

    /* Neutral Colors */
    --color-text: #333333;
    --color-text-light: #555555;
    --color-text-inverted: #FFFFFF;
    --color-text-muted: #777777;
    --color-heading: #222222;
    --color-background: #FFFFFF;
    --color-background-light: #f7f9fa;
    --color-background-medium: #e9ecef;
    --color-border: #dddddd;

    /* Primary & Accent Colors */
    --color-primary: #007bff; /* Bright Blue */
    --color-primary-dark: #0056b3;
    --color-secondary: #ffc107; /* Bright Yellow */
    --color-secondary-dark: #d39e00;
    --color-accent: #28a745; /* Bright Green */
    --color-accent-dark: #1e7e34;
    --color-warning: #ff8c00; /* Dark Orange for featured package */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    --gradient-button: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    --gradient-button-hover: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
    --gradient-hero-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6));

    /* UI Elements */
    --border-radius: 8px;
    --border-radius-large: 12px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.12);
    --box-shadow-light: 0 2px 8px rgba(0,0,0,0.05);

    /* Transitions */
    --transition-speed: 0.3s;
    --transition-ease: ease-in-out;

    /* Header height for content offset */
    --header-height: 70px; /* Adjust if navbar height changes */
}

/* Global Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    padding-top: var(--header-height); /* Offset for fixed header */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-primary);
    color: var(--color-heading);
    font-weight: 700;
}

.title.is-1, .title.is-2 { text-shadow: 1px 1px 2px rgba(0,0,0,0.1); }
.section-title { margin-bottom: 1.5rem !important; }
.section .subtitle:not(.hero-subtitle) { color: var(--color-text-light); }

p {
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
    color: var(--color-text);
}

a {
    color: var(--color-primary);
    transition: color var(--transition-speed) var(--transition-ease);
}
a:hover {
    color: var(--color-primary-dark);
}

.section {
    padding: 3rem 1.5rem; /* Default Bulma padding, can be overridden */
    position: relative;
}
@media screen and (min-width: 769px) {
    .section {
        padding: 4rem 1.5rem;
    }
}

.container {
    max-width: 1140px; /* Limit container width for better readability */
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.button, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-primary);
    font-weight: 700;
    padding: 0.75em 1.5em;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) var(--transition-ease);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button.is-primary {
    background-color: var(--color-primary);
    color: var(--color-text-inverted);
}
.button.is-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.button.is-warning { /* Used for featured package */
    background-color: var(--color-warning);
    color: var(--color-text-inverted);
}
.button.is-warning:hover {
    background-color: var(--color-secondary-dark); /* Using secondary-dark as a darker orange */
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.button.is-link.is-outlined {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.button.is-link.is-outlined:hover {
    background-color: var(--color-primary);
    color: var(--color-text-inverted);
}

.gradient-button {
    background: var(--gradient-button);
    background-size: 200% auto;
    color: var(--color-text-inverted);
    border: none;
}
.gradient-button:hover,
.gradient-button:focus {
    background-position: right center;
    color: var(--color-text-inverted); /* Ensure text remains white */
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 15px rgba(0, 123, 255, 0.3);
}

.morph-button:hover {
    border-radius: var(--border-radius-large); /* Example of morphing */
}

/* Modern Inputs */
.modern-input, .select select.modern-input {
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--box-shadow-light);
    transition: border-color var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
}
.modern-input:focus, .select select.modern-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.125em rgba(0, 123, 255, 0.25); /* Bulma-like focus */
}
.select.is-fullwidth select { width: 100%; }


/* Header & Navigation */
.header.is-fixed-top {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: var(--header-height);
    z-index: 1000;
}
.navbar-item, .navbar-link {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.1rem;
    transition: color var(--transition-speed) var(--transition-ease);
}
.navbar-item:hover, .navbar-link:hover {
    background-color: transparent !important;
    color: var(--color-primary) !important;
}
.logo-title {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-primary) !important;
    font-size: 1.8rem;
    letter-spacing: -1px;
}
.navbar-burger { color: var(--color-primary); }
.navbar-burger:hover { background-color: rgba(0,0,0,0.05); }

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 16px rgba(10,10,10,.1);
        padding: 0.5rem 0;
    }
}


/* Hero Section */
#hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative; /* For overlay if needed via ::before */
}
#hero .hero-body {
    padding-top: var(--header-height); /* Ensure content below navbar */
    display: flex;
    align-items: center;
    justify-content: center;
}
#hero .hero-title {
    color: var(--color-text-inverted);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}
#hero .hero-subtitle {
    color: var(--color-text-inverted);
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}
#hero p {
    color: var(--color-text-inverted);
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.animated-text-fill,
.animated-text-fill-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInSlideUp 1s ease-out forwards;
}
.animated-text-fill { animation-delay: 0.3s; }
.animated-text-fill-delay { animation-delay: 0.6s; }

@keyframes fadeInSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Styling (General) */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--color-background);
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
    overflow: hidden;
}
.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--box-shadow-hover);
}

.card .card-image, /* Bulma class */
.card .image-container { /* Custom class from HTML */
    width: 100%;
    position: relative;
    overflow: hidden; /* Important for border-radius if image is direct child */
}

/* Specifically target the Bulma 'figure.image' within card-image for fixed height */
.card .card-image > .image,
.card .image-container > .image {
    height: 220px; /* Consistent height for card images */
    display: block; /* Remove any potential bottom space from figure */
}

.card .card-image img,
.card .image-container img {
    width: 100%;
    height: 100%; /* Fill the fixed height of parent .image */
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-content .content {
    flex-grow: 1;
    font-size: 0.95rem;
    color: var(--color-text-light);
}
.card-content .content ul {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    padding-left: 1.2em;
}
.card-content .content li {
    margin-bottom: 0.4em;
}
.card-content .button {
    margin-top: auto; /* Pushes button to the bottom */
}
.card-content .title, .card-content .subtitle {
    margin-bottom: 0.5rem; /* Adjust spacing */
}
.card-content .subtitle { color: var(--color-primary); } /* Package price color */

/* Services Section (Packages) */
.package-card.featured-package {
    border: 3px solid var(--color-warning);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
}
.package-card.featured-package .card-header-title {
    background-color: var(--color-warning);
    color: var(--color-text-inverted);
    font-family: var(--font-primary);
}

/* Statistics Section */
#statistics .level-item .heading {
    font-family: var(--font-secondary);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}
#statistics .level-item .title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--color-primary);
}

/* Instructors Section */
.instructor-card .card-content {
    text-align: center;
}
.instructor-card .card-image img,
.instructor-card .image-container img {
    border-radius: 50%; /* Make instructor images circular */
    padding: 10px; /* Add some space around the circular image if needed */
    /* object-position: top center; */ /* if image aspect ratio is an issue */
}
.instructor-card .image.is-1by1 { /* Override Bulma to ensure image content is centered */
    padding-top: 0; /* Remove padding hack if not needed for square */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px; /* Or a fixed size that makes sense */
}
.instructor-card .image.is-1by1 img {
    max-width: 180px; /* Control size of circular image */
    max-height: 180px;
}


/* Testimonials Section */
.testimonial-card .media-left img {
    border-radius: 50%;
}
.testimonial-card .content {
    font-style: italic;
    color: var(--color-text-light);
    border-left: 3px solid var(--color-primary);
    padding-left: 1rem;
    margin-top: 0.5rem;
}

/* Events Calendar (Timeline) */
.timeline .timeline-item .timeline-marker.is-image img {
    border-radius: 50%;
    background-color: var(--color-background);
    padding: 3px;
    box-shadow: var(--box-shadow-light);
}
.timeline .timeline-item .timeline-content {
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: var(--box-shadow-light);
}
.timeline .timeline-item .timeline-content .heading {
    font-family: var(--font-secondary);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}
.timeline .timeline-item .timeline-content .title.is-5 {
    margin-bottom: 0.5rem;
}

/* Webinars & News Cards */
#webinars .card .card-content .button,
#news .card .card-content .button {
    margin-top: 1rem;
}
.news-card .card-image, .news-card .image-container {
    /* height: 200px; */ /* If fixed height is desired for news images */
}
.news-card .subtitle.is-6 {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}
.news-card .content {
    font-size: 0.9rem;
}
a.button.is-link.is-outlined.is-small { /* "Leer Mas" style */
    font-weight: bold;
}


/* External Resources Section */
.resource-box {
    background-color: var(--color-background-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow-light);
    transition: box-shadow var(--transition-speed) var(--transition-ease);
}
.resource-box:hover {
    box-shadow: var(--box-shadow);
}
.resource-box a {
    font-weight: bold;
    color: var(--color-primary);
}
.resource-box small {
    color: var(--color-text-light);
}


/* Partners Section */
#partners .image-container img {
    filter: grayscale(80%);
    transition: filter var(--transition-speed) var(--transition-ease), transform var(--transition-speed) var(--transition-ease);
    max-height: 80px; /* Control partner logo size */
    object-fit: contain;
}
#partners .image-container img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Careers Section */
.career-card {
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
}
.career-card .card-content { padding: 2rem; }

/* Press Section */
.press-mention {
    background-color: var(--color-background-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow-light);
}
.press-mention .title.is-5 {
    color: var(--color-primary);
}
.press-mention em {
    color: var(--color-heading);
}

/* Contact Section */
#contact-form label.label {
    color: var(--color-heading);
    font-weight: 700;
}
#contact-form .checkbox a, #contact-form .radio {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background-color: var(--color-heading); /* Dark background for footer */
    color: var(--color-background-medium); /* Light text on dark background */
    padding: 3rem 1.5rem 2rem;
}
.footer .title.footer-title {
    color: var(--color-text-inverted);
    margin-bottom: 1rem;
}
.footer p, .footer ul li {
    color: var(--color-background-medium);
    font-size: 0.95rem;
}
.footer a {
    color: var(--color-text-inverted);
    font-weight: 500;
    transition: color var(--transition-speed) var(--transition-ease), text-decoration var(--transition-speed) var(--transition-ease);
}
.footer a:hover {
    color: var(--color-secondary); /* Accent hover for footer links */
    text-decoration: underline;
}
.footer hr {
    background-color: rgba(255,255,255,0.1);
    height: 1px;
    margin: 2rem 0;
}
.footer .content.has-text-centered p {
    font-size: 0.9rem;
    color: var(--color-background-medium);
}
.footer #subscribe-form .input {
    border-color: rgba(255,255,255,0.3);
    background-color: rgba(255,255,255,0.05);
    color: var(--color-text-inverted);
}
.footer #subscribe-form .input::placeholder { color: rgba(255,255,255,0.5); }


/* Modals (General Styling - Bulma based) */
.modal-card {
    border-radius: var(--border-radius-large);
    overflow: hidden;
}
.modal-card-head, .modal-card-foot {
    background-color: var(--color-background-light);
    border-color: var(--color-border);
}
.modal-card-title {
    font-family: var(--font-primary);
    color: var(--color-heading);
}
.modal-card-body {
    font-family: var(--font-secondary);
    color: var(--color-text);
}
.modal-card-body strong { color: var(--color-primary); }
.modal-card-body .image-container img { border-radius: var(--border-radius); }

/* Scroll Animations */
.animate-on-scroll {
    opacity: 1;
   
    transition: opacity 0.8s var(--transition-ease), transform 0.8s var(--transition-ease);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Privacy & Terms Pages Specific Styling */
body.privacy-page .main-container > .section:first-of-type,
body.terms-page .main-container > .section:first-of-type {
    padding-top: calc(var(--header-height) + 2rem); /* Add extra space below fixed header */
}
body.privacy-page .content h3, body.terms-page .content h3 {
    margin-top: 2rem;
    color: var(--color-primary);
}

/* Success Page Styling */
body.success-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    background: var(--gradient-primary); /* Use a nice gradient background */
    padding-top: 0; /* Override body padding-top */
}
.success-page .success-container {
    background-color: var(--color-background);
    padding: 3rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow-hover);
    max-width: 600px;
}
.success-page .success-icon {
    font-size: 4rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}
.success-page h1 {
    font-family: var(--font-primary);
    color: var(--color-heading);
    margin-bottom: 1rem;
}
.success-page p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

/* Cookie Consent Popup */
/* Uses inline styles from HTML for simplicity, but can be themed if needed */
#cookieConsentPopup {
    font-family: var(--font-secondary);
}
#cookieConsentPopup a {
    color: var(--color-accent) !important; /* Make sure it's visible */
}
#acceptCookieConsent {
    font-family: var(--font-primary);
    background-color: var(--color-accent) !important; /* Match theme */
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    #hero .hero-title { font-size: 2.5rem; }
    #hero .hero-subtitle { font-size: 1.25rem; }
    .section { padding: 2rem 1rem; }
    body { padding-top: 52px; /* Bulma's default mobile navbar height */ }
    .header.is-fixed-top { height: 52px; }

    .columns.is-multiline .column {
        margin-bottom: 1.5rem; /* Space between cards on mobile */
    }
    .level-item:not(:last-child) { margin-bottom: 1.5rem; } /* Space stat items on mobile */
}

/* Glassmorphism utility (example) */
.glassmorphism-effect {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Blur effect */
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    border-radius: var(--border-radius-large);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2); /* Subtle shadow */
}