/* TABLE OF CONTENTS
--------------------------------------------------
1.  VARIABLES
2.  GLOBAL RESETS & BASE STYLES
3.  TYPOGRAPHY
4.  LAYOUT & CONTAINER
5.  UTILITY CLASSES
6.  NAVIGATION (HEADER & NAVBAR)
7.  HERO SECTION
8.  BUTTONS (GLOBAL)
9.  CARDS (GLOBAL & VARIANTS)
10. FORMS (GLOBAL & CONTACT FORM)
11. SECTION-SPECIFIC STYLES
    - Our Export Offer (Pricing Re-themed)
    - Our Process (Animated Icons, Progress)
    - History
    - Insights (Statistical Widgets)
    - Clientele
    - Partners
    - Behind the Scenes
    - External Resources
    - Contact Section
12. FOOTER
13. PAGE-SPECIFIC STYLES
    - success.html
    - privacy.html, terms.html
14. COOKIE CONSENT POPUP
15. ANIMATIONS & AOS COMPATIBILITY
16. RESPONSIVE DESIGN (MEDIA QUERIES)
-------------------------------------------------- */

/* 1. VARIABLES
-------------------------------------------------- */
:root {
    /* Color Palette (Tetrad - derived from HTML) */
    --primary-color: #0D3D56; /* Deep Teal Blue */
    --secondary-color: #D98B4E; /* Terracotta Orange */
    --accent-color-1: #AECF68; /* Olive Green */
    --accent-color-2: #F5D04C; /* Golden Yellow */

    /* Grayscale & Text */
    --text-color-dark: #333333;
    --text-color-headings: #222222;
    --text-color-light: #FFFFFF;
    --text-color-muted: #555555;
    --background-light: #F8F9FA;
    --background-very-light: #FFFFFF;
    --background-dark: var(--primary-color);
    --border-color: #DDDDDD;

    /* Fonts */
    --font-family-headings: 'Roboto', sans-serif;
    --font-family-body: 'Lato', sans-serif;

    /* Transitions & Shadows */
    --transition-speed-fast: 0.2s;
    --transition-speed-normal: 0.3s;
    --box-shadow-light: 0 4px 12px rgba(0,0,0,0.08);
    --box-shadow-medium: 0 8px 16px rgba(0,0,0,0.1);
    --box-shadow-strong: 0 12px 24px rgba(0,0,0,0.15);

    /* Navbar Height (for content offset) */
    --navbar-height-desktop: 52px; /* Default Bulma navbar height */
    --navbar-height-mobile: 52px; /* Default Bulma navbar height */
}

/* 2. GLOBAL RESETS & BASE STYLES
-------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size for rem units */
}

body {
    font-family: var(--font-family-body);
    line-height: 1.7; /* Increased for readability */
    color: var(--text-color-dark);
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* 3. TYPOGRAPHY
-------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.title, .subtitle {
    font-family: var(--font-family-headings);
    color: var(--text-color-headings);
    font-weight: 700;
    line-height: 1.3;
}

h1.title, .title.is-1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; }
h2.title, .title.is-2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2.5rem; text-align: center; }
h3.title, .title.is-3 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h4.title, .title.is-4 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h5.title, .title.is-5 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }
h6.title, .title.is-6 { font-size: clamp(1rem, 2vw, 1.15rem); }

p {
    font-size: clamp(1rem, 1.8vw, 1.1rem); /* Adaptive paragraph text */
    margin-bottom: 1.25rem;
    color: var(--text-color-dark);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed-fast) ease;
}
a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

strong, b {
    font-weight: 700;
}

/* 4. LAYOUT & CONTAINER (Extending Bulma's container)
-------------------------------------------------- */
.section {
    padding: 4rem 1.5rem;
}
@media screen and (min-width: 769px) {
    .section {
        padding: 5rem 2rem; /* Slightly reduced top/bottom padding */
    }
}
.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Ensure columns don't take up less than specified for readability */
.columns .column.is-two-thirds {
    flex: none;
    width: 66.6666%;
}
@media screen and (max-width: 768px) {
    .columns .column.is-two-thirds {
        width: 100%;
    }
}


/* 5. UTILITY CLASSES
-------------------------------------------------- */
.has-text-centered { text-align: center !important; }
.has-text-left { text-align: left !important; }
.has-text-right { text-align: right !important; }
.has-text-justified { text-align: justify !important; }

.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }

.is-fullheight-with-navbar {
    min-height: calc(100vh - var(--navbar-height-desktop));
}
@media screen and (max-width: 1023px) {
    .is-fullheight-with-navbar {
        min-height: calc(100vh - var(--navbar-height-mobile));
    }
}

/* 6. NAVIGATION (HEADER & NAVBAR)
-------------------------------------------------- */
.navbar.is-fixed-top {
    background-color: var(--background-very-light);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 1000; /* Ensure navbar is above other content */
}
.navbar-brand .navbar-item.logo-text {
    font-family: var(--font-family-headings);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--primary-color);
}
.navbar-item, .navbar-link {
    font-family: var(--font-family-body);
    font-weight: 700;
    color: var(--primary-color);
    transition: color var(--transition-speed-fast) ease, background-color var(--transition-speed-fast) ease;
}
.navbar-item:hover, .navbar-link:hover,
.navbar-item.is-active, .navbar-link.is-active {
    background-color: var(--background-light);
    color: var(--secondary-color) !important;
}
.navbar-dropdown .navbar-item {
    color: var(--primary-color);
    padding-left: 1.5rem;
}
.navbar-dropdown .navbar-item:hover {
    background-color: var(--accent-color-1) !important;
    color: var(--background-very-light) !important;
}
.navbar-burger {
    color: var(--primary-color);
    height: 3.25rem; /* Default Bulma height */
    width: 3.25rem; /* Default Bulma width */
}
.navbar-burger span {
    background-color: var(--primary-color);
    height: 2px;
    transition: var(--transition-speed-normal) ease;
}
.navbar-burger:hover {
    background-color: rgba(0,0,0,0.05);
}
.navbar-menu.is-active {
    background-color: var(--background-very-light);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* 7. HERO SECTION
-------------------------------------------------- */
.hero.is-parallax {
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    color: var(--text-color-light); /* Base color for hero text elements */
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)); /* Dark overlay for readability */
    z-index: 1;
}
.hero .hero-body {
    position: relative;
    z-index: 2;
    padding-top: 8rem;
    padding-bottom: 8rem;
}
.hero .title, .hero .subtitle, .hero p {
    color: var(--text-color-light) !important; /* STRICT: Hero text white */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}
.hero .title.is-1 {
    margin-bottom: 1rem;
}
.hero .subtitle.is-3 {
    margin-bottom: 1.5rem;
    font-weight: 400; /* Lighter subtitle */
}
.hero .is-size-5 {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* 8. BUTTONS (GLOBAL)
-------------------------------------------------- */
.button, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-family-headings);
    font-weight: 700;
    border-radius: 4px;
    padding: 0.75em 1.5em;
    transition: background-color var(--transition-speed-normal) ease,
                color var(--transition-speed-normal) ease,
                transform var(--transition-speed-fast) ease,
                box-shadow var(--transition-speed-normal) ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
}
.button.is-primary, button.is-primary, input[type="submit"].is-primary {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    border-color: transparent; /* Bulma override */
}
.button.is-primary:hover, button.is-primary:hover, input[type="submit"].is-primary:hover {
    background-color: #C07A45; /* Darker Terracotta */
    color: var(--text-color-light); /* Ensure text remains white */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.button.is-secondary, button.is-secondary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-color: transparent; /* Bulma override */
}
.button.is-secondary:hover, button.is-secondary:hover {
    background-color: #0A3044; /* Darker Teal */
    color: var(--text-color-light); /* Ensure text remains white */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.button.is-large {
    font-size: 1.25rem; /* Bulma default */
    padding: 1em 2em;
}
.button.is-medium {
    font-size: 1rem; /* Bulma default */
}

/* "Read More" link style */
.read-more-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    position: relative;
    padding-right: 1.5em; /* Space for arrow */
}
.read-more-link::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: right var(--transition-speed-fast) ease;
}
.read-more-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.read-more-link:hover::after {
    right: -0.3em;
}


/* 9. CARDS (GLOBAL & VARIANTS)
-------------------------------------------------- */
.card {
    background-color: var(--background-very-light);
    border-radius: 8px;
    box-shadow: var(--box-shadow-light);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed-normal) ease, box-shadow var(--transition-speed-normal) ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
}
.card .card-image { /* Wrapper for image */
    position: relative;
    overflow: hidden;
    height: 200px; /* Fixed height for consistency */
    display: flex;       /* For centering image */
    align-items: center; /* For centering image */
    justify-content: center; /* For centering image */
}
.card .card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, might crop */
    transition: transform var(--transition-speed-normal) ease;
}
.card:hover .card-image img {
    transform: scale(1.05);
}
.card .card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to take remaining space */
    display: flex;
    flex-direction: column;
    text-align: center; /* Center content within card */
}
.card .card-content .title {
    margin-bottom: 0.75rem; /* Adjusted margin */
    font-size: 1.5rem; /* Consistent card title size */
    color: var(--primary-color);
    text-align: center;
}
.card .card-content p {
    font-size: 0.95rem;
    color: var(--text-color-muted);
    line-height: 1.6;
    margin-bottom: 1rem; /* Space before potential buttons/links */
    flex-grow: 1; /* Allow paragraph to take space if needed */
}
.card .card-content .button {
    margin-top: auto; /* Push button to bottom if card content varies */
}

/* For elements that behave like cards for content centering */
.item, .testimonial, .team-member, .product-card {
    text-align: center;
}
.item img, .testimonial img, .team-member img, .product-card img {
    margin-left: auto;
    margin-right: auto;
    display: block;
}


/* 10. FORMS (GLOBAL & CONTACT FORM)
-------------------------------------------------- */
.label {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5em;
}
.input, .textarea, .select select {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.075);
    padding: 0.75em 1em;
    font-size: 1rem;
    line-height: 1.5;
    background-color: var(--background-very-light);
    color: var(--text-color-dark);
    transition: border-color var(--transition-speed-fast) ease, box-shadow var(--transition-speed-fast) ease;
}
.input:focus, .textarea:focus, .select select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.125em rgba(217, 139, 78, 0.25); /* #D98B4E with opacity */
    outline: none;
}
.textarea {
    min-height: 120px;
    resize: vertical;
}
.checkbox label, .radio label {
    color: var(--text-color-muted);
    font-size: 0.95rem;
}
.checkbox input[type="checkbox"], .radio input[type="radio"] {
    margin-right: 0.5em;
}
.checkbox a, .radio a {
    color: var(--secondary-color);
}
.checkbox a:hover, .radio a:hover {
    color: var(--primary-color);
}

.contact-form .field {
    margin-bottom: 1.5rem; /* Spacing between form fields */
}


/* 11. SECTION-SPECIFIC STYLES
-------------------------------------------------- */

/* Our Process (Animated Icons, Progress) */
.animated-icon {
    width: 70px; /* Slightly larger */
    height: 70px;
    background-color: var(--accent-color-1);
    border-radius: 50%;
    margin: 0 auto 1.5rem; /* Increased margin */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-light);
    font-size: 2rem; /* Larger icon placeholder */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    /* For "drawn" effect, consider a subtle animation or border style */
    border: 3px solid transparent;
    transition: transform var(--transition-speed-normal) ease, border-color var(--transition-speed-normal) ease;
}
.animated-icon:hover {
    transform: scale(1.1);
    border-color: var(--accent-color-2); /* Example hover effect */
}
.animated-icon::before {
    /* Content already in HTML. If using font icons, apply styles here. */
}
#nuestro-proceso .title.is-5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
#nuestro-proceso p {
    font-size: 0.9rem;
    color: var(--text-color-muted);
}

.progress-indicator {
    margin-bottom: 1.5rem;
}
.progress-indicator .label {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9em;
}
.progress-indicator progress.progress.is-primary {
    background-color: #e0e0e0;
    border-radius: 20px;
    height: 10px !important; /* Thinner progress bar */
}
.progress-indicator progress.progress.is-primary::-webkit-progress-bar {
    background-color: #e0e0e0;
    border-radius: 20px;
}
.progress-indicator progress.progress.is-primary::-webkit-progress-value {
    background-color: var(--secondary-color);
    border-radius: 20px;
    transition: width var(--transition-speed-normal) ease-out; /* Smooth fill */
}
.progress-indicator progress.progress.is-primary::-moz-progress-bar {
    background-color: var(--secondary-color);
    border-radius: 20px;
    transition: width var(--transition-speed-normal) ease-out; /* Smooth fill */
}


/* History Section */
#historia .image.is-4by3 img {
    border-radius: 8px;
    box-shadow: var(--box-shadow-medium);
    object-fit: cover;
}
#historia .column.is-two-thirds p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Insights (Statistical Widgets) */
.stat-widget {
    background-color: var(--accent-color-1);
    padding: 2.5rem 2rem; /* More padding */
    border-radius: 8px;
    text-align: center;
    color: var(--text-color-light);
    box-shadow: var(--box-shadow-light);
    transition: transform var(--transition-speed-normal) ease, box-shadow var(--transition-speed-normal) ease;
}
.stat-widget:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
}
.stat-widget .stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive stat number */
    font-weight: 900;
    font-family: var(--font-family-headings);
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color-light); /* Explicitly white for green bg */
}
.stat-widget .stat-label {
    font-size: 1rem;
    font-family: var(--font-family-body);
    color: var(--text-color-light); /* Explicitly white for green bg */
}
.stat-widget p.is-size-7 {
    color: #e0e0e0 !important; /* Lighter text for description on dark bg */
    margin-top: 0.75rem;
    line-height: 1.5;
}
/* Variation for golden yellow widget */
.stat-widget[style*="background-color: #F5D04C"] {
    color: var(--text-color-dark) !important;
}
.stat-widget[style*="background-color: #F5D04C"] .stat-number,
.stat-widget[style*="background-color: #F5D04C"] .stat-label {
    color: var(--text-color-headings) !important;
}
.stat-widget[style*="background-color: #F5D04C"] p.is-size-7 {
    color: var(--text-color-muted) !important;
}

#perspectivas .content h4.title {
    color: var(--primary-color);
}

/* Clientele Section */
#clientes .card .title.is-5 {
    min-height: 2.5em; /* Ensure titles have enough space, helps alignment */
}
#clientes em { /* Testimonial quote style */
    display: block;
    font-style: italic;
    color: var(--text-color-muted);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* Partners Section */
#socios .box {
    background-color: var(--background-very-light);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow-light);
    height: 100%; /* For equal height boxes from Bulma columns */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--transition-speed-normal) ease, box-shadow var(--transition-speed-normal) ease;
}
#socios .box:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
}
#socios .box figure.image {
    margin-bottom: 1rem;
}
#socios .box img {
    max-height: 64px; /* Consistent logo size */
    width: auto;
}
#socios .box h4.title.is-6 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    flex-grow: 0; /* Don't let title grow excessively */
}
#socios .box p {
    font-size: 0.85rem;
    color: var(--text-color-muted);
    flex-grow: 1; /* Allow paragraph to take space */
}

/* Behind the Scenes Section */
#detras-escena .card .card-image {
    height: 250px; /* Specific height for these cards */
}
.text-on-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem 1.5rem; /* More padding */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 100%);
    color: var(--text-color-light);
    border-bottom-left-radius: 8px; /* Match card radius if image is full */
    border-bottom-right-radius: 8px;
}
.text-on-image-overlay h3 {
    color: var(--text-color-light) !important; /* Ensure white text */
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

/* External Resources Section */
.external-resources-section {
    background-color: #eef3f7; /* Light neutral background as in HTML */
}
.external-resources-section .box {
    background-color: var(--background-very-light);
    transition: box-shadow var(--transition-speed-normal) ease, transform var(--transition-speed-normal) ease;
    height: 100%;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}
.external-resources-section .box:hover {
    box-shadow: var(--box-shadow-medium);
    transform: translateY(-5px);
}
.external-resources-section .box .title.is-5 { /* HTML uses .title.is-5 for these links */
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    text-align: left; /* Override card's center align if needed */
}
.external-resources-section .box a {
    text-decoration: none;
}
.external-resources-section .box a:hover .title {
    text-decoration: underline;
    color: var(--primary-color);
}
.external-resources-section .box p {
    font-size: 0.9rem;
    color: var(--text-color-muted);
    text-align: left; /* Override card's center align */
    flex-grow: 1;
}

/* Contact Section */
#contacto .subtitle {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
#contacto .has-text-centered h4.title {
    color: var(--primary-color);
}
#contacto .has-text-centered p a {
    color: var(--secondary-color);
}
#contacto .has-text-centered p a:hover {
    color: var(--primary-color);
}

/* 12. FOOTER
-------------------------------------------------- */
.site-footer {
    background-color: var(--primary-color);
    color: var(--background-light); /* Light text on dark background */
    padding: 4rem 1.5rem 2rem; /* More top padding */
}
.site-footer .title.is-5 {
    color: var(--text-color-light);
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}
.site-footer p {
    color: #cdd6dd; /* Slightly muted light text */
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer ul li {
    margin-bottom: 0.5rem;
}
.site-footer ul li a {
    color: var(--accent-color-1);
    text-decoration: none;
    transition: color var(--transition-speed-fast) ease, padding-left var(--transition-speed-fast) ease;
    font-weight: 500;
}
.site-footer ul li a:hover {
    color: var(--accent-color-2);
    text-decoration: underline;
    padding-left: 5px; /* Subtle hover effect */
}
.site-footer .social-links a {
    color: var(--accent-color-1);
    margin-right: 15px;
    font-size: 0.95rem; /* Larger social links */
    font-weight: bold;
    display: inline-block; /* For better spacing */
    transition: color var(--transition-speed-fast) ease, transform var(--transition-speed-fast) ease;
}
.site-footer .social-links a:hover {
    color: var(--accent-color-2);
    transform: translateY(-2px);
    text-decoration: none; /* Remove underline for icon-like text links */
}
.site-footer .social-links a:last-child {
    margin-right: 0;
}
.site-footer hr {
    background-color: rgba(255,255,255,0.15);
    height: 1px;
    border: none;
    margin: 2.5rem 0;
}
.site-footer .content p {
    font-size: 0.9rem;
    color: #a9b4bf;
    margin-bottom: 0.25rem;
}
.site-footer .content p a { /* Copyright links if any */
    color: var(--accent-color-1);
}
.site-footer .content p a:hover {
    color: var(--accent-color-2);
}

/* 13. PAGE-SPECIFIC STYLES
-------------------------------------------------- */

/* success.html */
body.page-success {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--background-light);
}
.success-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
.success-container .icon-success {
    font-size: 5rem;
    color: var(--accent-color-1);
    margin-bottom: 1.5rem;
    animation: bounceIn 0.8s ease-out;
}
@keyframes bounceIn {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  80% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.success-container h1.title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.success-container p {
    color: var(--text-color-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2rem;
}

/* privacy.html, terms.html */
body.page-legal main {
    padding-top: calc(var(--navbar-height-desktop) + 2rem); /* Offset for fixed navbar + extra space */
}
@media screen and (max-width: 1023px) { /* Bulma's tablet breakpoint */
    body.page-legal main {
        padding-top: calc(var(--navbar-height-mobile) + 1.5rem);
    }
}
.page-legal .section {
    padding-top: 2rem; /* Reduced top padding as main has it */
    padding-bottom: 4rem;
}
.page-legal h1.title, .page-legal h2.title {
    text-align: left; /* Legal pages often have left-aligned titles */
    margin-bottom: 1.5rem;
}
.page-legal h3.title {
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}
.page-legal p, .page-legal li {
    text-align: justify;
    color: var(--text-color-dark);
}
.page-legal ul, .page-legal ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* 14. COOKIE CONSENT POPUP
-------------------------------------------------- */
#cookieConsentPopup {
    /* Styles are mostly inline in HTML as requested,
       but we can add fallbacks or minor adjustments here if needed.
       Ensure text color is white on dark background. */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
#cookieConsentPopup p {
    color: var(--text-color-light) !important;
    margin-bottom: 15px; /* From HTML */
}
#cookieConsentPopup a {
    color: var(--accent-color-1) !important; /* From HTML */
    text-decoration: underline !important;
}
#cookieConsentPopup a:hover {
    color: var(--accent-color-2) !important;
}
#acceptCookieButton {
    background-color: var(--secondary-color) !important; /* From HTML */
    color: var(--text-color-light) !important;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color var(--transition-speed-fast) ease;
}
#acceptCookieButton:hover {
    background-color: #C07A45 !important; /* Darker Terracotta */
}

/* 15. ANIMATIONS & AOS COMPATIBILITY
-------------------------------------------------- */
[data-aos] {
    transition-property: transform, opacity; /* Default AOS properties */
}
/* Example of a subtle "drawn" or handcrafted-feeling animation (if desired) */
/* This is more illustrative than a strict requirement */
@keyframes subtleWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-0.5deg); }
  75% { transform: rotate(0.5deg); }
}
/* .element-with-drawn-animation { animation: subtleWiggle 1s ease-in-out infinite; } */


/* 16. RESPONSIVE DESIGN (MEDIA QUERIES)
-------------------------------------------------- */
/* Bulma handles most structural responsiveness.
   These are for fine-tuning or specific overrides. */

/* Tablet and smaller */
@media screen and (max-width: 1023px) {
    .hero .hero-body {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    h1.title, .title.is-1 { font-size: clamp(2.2rem, 7vw, 3.5rem); }
    h2.title, .title.is-2 { font-size: clamp(1.8rem, 6vw, 2.5rem); margin-bottom: 2rem;}

    .columns.is-centered .column.is-one-third,
    .columns.is-centered .column.is-one-quarter {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }
    .hero.is-medium .hero-body {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    .hero .title.is-1 {
        font-size: 2rem;
    }
    .hero .subtitle.is-3 {
        font-size: 1.25rem;
    }
    .hero .is-size-5 {
        font-size: 1rem;
    }

    /* Stack columns in sections */
    .columns.is-multiline .column {
        width: 100%;
        margin-bottom: 1.5rem; /* Space between stacked cards/items */
    }
    .columns.is-multiline .column:last-child {
        margin-bottom: 0;
    }

    .contact-form .field.is-grouped {
        flex-direction: column;
    }
    .contact-form .field.is-grouped .control {
        width: 100%;
    }
    .contact-form .field.is-grouped .control:not(:last-child) {
        margin-bottom: 0.75rem; /* Space between stacked buttons if any */
    }
    .contact-form .button {
        width: 100%;
    }

    .site-footer .columns {
        text-align: center;
    }
    .site-footer .column:not(:last-child) {
        margin-bottom: 2rem;
    }
    .site-footer .social-links {
        justify-content: center;
    }
    .site-footer .social-links a {
        margin: 0 10px;
    }
}
*{
    opacity: 1 !important;
}