:root {
    /* Triad Color Scheme: Blue, Orange, Purple (Vibrant, Modern) */
    --c-primary: #20437b; /* Blue */
    --c-secondary: #e05a00; /* Orange */
    --c-accent: #a65ae0; /* Purple */
    --c-success: #00ae92; /* Aqua/Green Accent */
    --c-bg-light: #f8f4fa; /* Light background */
    --c-bg: #e3f9f2;
    --c-gradient-bg: linear-gradient(135deg, #e3f9f2 0%, #e9eafc 40%, #f8f4fa 100%);
    --c-card-bg: linear-gradient(122deg, #f9f6ee 0%, #e3f9f2 55%, #e9eafc 100%);
    --c-hero-overlay: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
    --c-text-main: #222222;
    --c-text-dark: #151515;
    --c-text-muted: #7c7b91;
    --c-link: #20437b;
    --c-link-hover: #e05a00;
    --c-link-accent: #a65ae0;

    /* Shadows and Morphing Textures */
    --shadow-glass: 0 4px 40px 0 rgba(80, 100, 150, 0.09), 0 8px 32px 0 rgba(167, 90, 224, 0.08);

    /* Border Radius */
    --radius-xl: 22px;
    --radius-lg: 16px;
    --radius-btn: 9999px;

    /* Font Families */
    --font-inter: 'Inter', Arial, sans-serif;
    --font-ibm: 'IBM Plex Sans', 'Inter', Arial, sans-serif;
}

body {
    font-family: var(--font-ibm);
    color: var(--c-text-main);
    background: var(--c-gradient-bg), #fff;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-inter);
    letter-spacing: -0.02em;
}

h2, h3, h4, h5 {
    color: var(--c-text-dark);
    text-align: center;
    font-weight: 800;
}

h2 {
    font-size: 2.1rem;
    margin-bottom: 1.3em;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6em;
}

section {
    margin-bottom: 1.5em;
}

a {
    color: var(--c-link);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

a:hover,
a:focus {
    color: var(--c-link-hover);
    text-decoration: underline;
}

a.read-more, .read-more-link {
    color: var(--c-accent);
    font-weight: bold;
    text-decoration: underline;
    letter-spacing: 0.01em;
    transition: color .22s cubic-bezier(.62, .32, .19, 1.13), text-shadow 0.22s;
}

a.read-more:hover, .read-more-link:hover {
    color: var(--c-secondary);
    text-shadow: 0 1px 12px rgba(224, 90, 0, .18);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

strong {
    font-weight: 700;
}

/* Buttons & Inputs: Modern, consistent everywhere */
.btn, button,
input[type='submit'], input[type="button"] {
    display: inline-block;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8em 2.6em;
    border: none;
    border-radius: var(--radius-btn);
    background: linear-gradient(90deg, var(--c-primary) 10%, var(--c-success) 80%, var(--c-accent));
    color: #fff;
    box-shadow: 0 8px 24px rgba(32, 67, 123, 0.11);
    outline: none;
    cursor: pointer;
    transition: transform 0.14s cubic-bezier(.5, .87, .14, 1.04), background .19s, box-shadow .14s;
}

.btn:hover,
button:hover,
input[type='submit']:hover,
input[type="button"]:hover {
    background: linear-gradient(90deg, var(--c-secondary) 10%, var(--c-primary) 80%, var(--c-accent));
    transform: translateY(-2px) scale(1.045) skewX(-3deg);
    box-shadow: 0 12px 40px rgba(32, 67, 123, 0.13), 0 2px 8px rgba(224, 90, 0, 0.10);
}

input, textarea, select {
    font-family: var(--font-ibm);
    font-size: 1rem;
}

::placeholder {
    color: #97a6b3;
    opacity: 1;
}

/* HERO SECTION */
#hero {
    min-height: 0;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glass);
    background-repeat: no-repeat !important;
    background-size: cover !important;
    position: relative;
    /* Text overlay for readability */
    overflow: hidden;
    margin-bottom: 3.2em;
}

#hero .flex,
#hero .flex-col {
    position: relative;
    z-index: 1;
}

#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--c-hero-overlay);
    z-index: 0;
}

#hero h1,
#hero p {
    color: #fff !important;
    text-shadow: 0 6px 20px rgba(14, 14, 14, 0.30);
}

/* HERO anim morph */
@keyframes morph-hero-bg {
    0%, 100% {
        border-radius: 18% 82% 36% 64% / 68% 43% 57% 32%;
    }
    33% {
        border-radius: 28% 72% 58% 42% / 38% 71% 29% 62%;
    }
    66% {
        border-radius: 63% 37% 22% 78% / 41% 61% 39% 59%;
    }
}

#hero {
    animation: morph-hero-bg 16s ease-in-out infinite;
}

/* CARDS (including all variants: cards, testimonials, news, partner, team, etc) */
.card, .item, .testimonial, .team-member, .product-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background: var(--c-card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    transition: box-shadow .18s cubic-bezier(.49, .29, .15, 1.02), transform .22s;
    text-align: center;
    padding: 0;
    min-height: 0;
}

.card:hover, .item:hover, .testimonial:hover, .team-member:hover, .product-card:hover {
    box-shadow: 0 8px 32px rgba(49, 40, 80, 0.14), 0 2px 8px rgba(32, 67, 123, 0.05);
    transform: translateY(-3px) scale(1.025) rotateZ(-.5deg);
}

.card-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* IMG in Cards, Testimonials etc */
.card-image,
.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5em auto;
    width: 100%;
    min-width: 60px;
    min-height: 60px;
    max-height: 200px;
}

.card-image img,
.image-container img {
    object-fit: cover;
    border-radius: 16px;
    height: 100%;
    max-height: 160px;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(32, 67, 123, 0.08);
    background: #fff;
    display: block;
}

.card-image img.rounded-full,
.image-container img.rounded-full {
    border-radius: 50%;
}

/* Partners logos (small) */
.card-image img.partner-logo {
    border-radius: 50%;
    max-width: 4.2em;
    max-height: 4.2em;
}

/* SECTION/CONTAINER Utility for center alignment */
.flex-center,
.centered,
.section-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card .card-content > h3,
.card .card-content > p {
    margin-bottom: .7em;
}

/* GRID and COLUMN utilities */
.grid-cols-2, .grid-cols-3 {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: 1fr 1fr;
    }

    .grid-cols-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .grid-cols-2, .grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

.is-two-thirds {
    width: 66.67%;
}

@media (max-width: 1023px) {
    .is-two-thirds {
        width: 100%;
    }
}

/* TESTIMONIALS & PROFILES */
.testimonial, .team-member {
    max-width: 380px;
    padding: 2.1em 1.2em;
}

.testimonial blockquote {
    font-style: italic;
    color: var(--c-text-main);
    font-size: 1.03rem;
    margin: 0 0 1em 0;
    line-height: 1.7;
}

/* News card, Press entries, Event items */
.card.image-news,
.card-press {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.card-news .card-image,
.card-press .card-image {
    max-height: 220px;
}

.card-news .card-content,
.card-press .card-content {
    padding: 1.4em 1.1em;
    margin-top: -.5em;
}

/* Morphing Gradient Animation (for PROCESS and HERO BGs) */
@keyframes morph-bg {
    0%, 100% {
        border-radius: 39% 61% 34% 66% / 63% 55% 45% 37%;
    }
    35% {
        border-radius: 70% 30% 54% 46% / 47% 72% 28% 53%;
    }
    70% {
        border-radius: 22% 78% 28% 72% / 44% 67% 33% 56%;
    }
}

/* Morphing accent for progress bar */
.custom-progress {
    background: #dae7ef;
    border-radius: 8px !important;
    height: 1.25em;
    overflow: hidden;
    accent-color: var(--c-accent);
}

.custom-progress::-webkit-progress-bar {
    background: #dae7ef;
    border-radius: 8px;
}

.custom-progress::-webkit-progress-value {
    background: linear-gradient(90deg, var(--c-success), var(--c-accent) 90%);
    border-radius: 8px;
}

.custom-progress::-moz-progress-bar {
    background: linear-gradient(90deg, var(--c-success), var(--c-accent) 90%);
    border-radius: 8px;
}

/* Sliders (range inputs) */
input[type="range"].custom-slider {
    -webkit-appearance: none;
    width: 70%;
    max-width: 200px;
    height: 5px;
    border-radius: 8px;
    background: linear-gradient(90deg, #20437b 25%, #00ae92 80%, #a65ae0 100%);
    outline: none;
    margin: 0.5em 0;
    box-shadow: 0 2px 8px rgba(32, 67, 123, .11);
    transition: background 0.3s;
}

input[type="range"].custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--c-primary);
    box-shadow: 0 2px 16px 0 rgba(32, 67, 123, 0.19);
    cursor: pointer;
    transition: border-color .18s;
}

input[type="range"].custom-slider:focus::-webkit-slider-thumb {
    border-color: var(--c-secondary);
}

input[type="range"].custom-slider::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--c-primary);
    box-shadow: 0 2px 16px 0 rgba(32, 67, 123, 0.19);
    cursor: pointer;
    transition: border-color .18s;
}

input[type="range"]:focus::-moz-range-thumb {
    border-color: var(--c-secondary);
}

input[type="range"].custom-slider::-ms-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--c-primary);
}

input[type=range].custom-slider::-ms-fill-lower {
    background: var(--c-secondary);
}

input[type=range].custom-slider::-ms-fill-upper {
    background: var(--c-accent);
}

input[type=range].custom-slider:focus {
    outline: none;
}

input[type="range"].custom-slider:active {
    background: linear-gradient(90deg, #e05a00 5%, #00ae92 70%, #a65ae0 100%);
}

/* Switch toggles */
.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    width: 42px;
    height: 22px;
    background: var(--c-card-bg);
    border-radius: 16px;
    position: relative;
    margin: 0 2px;
    transition: background .19s;
    box-shadow: 0 2px 5px rgba(32, 67, 123, .09);
}

.switch input:checked + .switch-slider {
    background: linear-gradient(90deg, var(--c-accent) 50%, var(--c-primary) 100%);
}

.switch-slider::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: transform .18s;
    box-shadow: 0 1px 3px rgba(32, 67, 123, .18);
}

.switch input:checked + .switch-slider::before {
    transform: translateX(20px);
}

/* Parallax Effect fallback for modern browsers using motion, otherwise fallback to no movement */
.parallax-bg {
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* Glaasmorphism backgrounds for sections */
.bg-glass,
.bg-gradient-morph {
    background: rgba(255, 255, 255, 0.83);
    backdrop-filter: blur(7px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glass);
}

/* Anim Morph on section backgrounds */
.bg-morph {
    animation: morph-bg 15s infinite alternate cubic-bezier(.63, .37, .53, 1.06);
    border-radius: 36% 64% 42% 58% / 63% 59% 41% 37%;
}

/* Responsive Header Sticky */
header#main-header {
    font-family: var(--font-inter);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 18px rgba(32, 67, 123, .09);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 49;
    backdrop-filter: blur(5px);
}

header nav ul li a {
    text-shadow: none;
    transition: color .17s;
}

/* Burger menu */
#burger {
    outline: none;
    border: none;
    background: none;
    cursor: pointer;
}

#burger span {
    display: block;
    transition: .23s;
}

#mobile-menu {
    transition: all .23s cubic-bezier(.61, .11, .21, 1.01);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 2px 16px rgba(32, 67, 123, 0.09);
}

/* Footer */
footer {
    background: var(--c-primary);
    color: #fff;
    border-top: 4px solid var(--c-secondary);
    font-size: 1rem;
    letter-spacing: 0.01em;
    padding-bottom: 32px;
}

footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

footer nav a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color 0.19s;
}

footer nav a:hover,
footer nav a:focus {
    color: var(--c-success);
    text-decoration: underline;
}

/* Footer socials (text only, styled as links not icons: just bold, underline, color) */
footer .flex-col a,
footer .flex-row a {
    color: #d6eaff;
    text-decoration: underline;
    font-weight: 700;
    font-size: 1.02em;
    transition: color .13s;
}

footer .flex-col a:hover,
footer .flex-row a:hover {
    color: var(--c-secondary);
}

/* Social icon placeholder classes for text style only */
.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1em;
}

/* Contact Form */
form {
    background: rgba(255, 255, 255, 0.94);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(32, 67, 123, .09);
}

form input, form textarea {
    background: #f9f6ee;
    border: 1.5px solid #bcb8e2;
    border-radius: var(--radius-lg);
    color: var(--c-text-dark);
    outline: none;
    margin: .36em 0 .8em 0;
    transition: box-shadow .15s, border-color .14s;
}

form input:focus, form textarea:focus {
    border-color: var(--c-accent);
    background: #fff;
    box-shadow: 0 2px 12px rgba(167, 90, 224, 0.10);
}

form > div, form > label {
    margin-bottom: 1.2em;
}

form button[type=submit], form input[type=submit] {
    margin-top: 1.3em;
    min-width: 180px;
}

/* Process animation progress-bar */
#progress-bar {
    transition: width 0.7s cubic-bezier(.73, .22, .22, .89);
    background: linear-gradient(90deg, var(--c-primary), var(--c-success) 55%, var(--c-accent) 100%);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(32, 67, 123, 0.13);
}

#progress-bar span {
    color: #fff;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(32, 67, 123, 0.18);
}

/* Util: Sections with glass effect */
.section-glass {
    background: rgba(250, 250, 255, 0.88);
    box-shadow: var(--shadow-glass);
    border-radius: var(--radius-xl);
}

/* Ensure enough contrast for text on light bg */
.bg-white, .bg-opacity-90, .bg-opacity-95 {
    color: var(--c-text-main);
}

/* Enlaces útiles / Links section cards */
#external-links .card {
    background: rgba(255, 255, 255, 0.88);
    min-height: 160px;
    justify-content: flex-start;
    text-align: left;
    align-items: flex-start;
    padding: 1.8em 1.5em;
    margin-bottom: 0;
}

/* "Leer más" (read more) special styling */
.card-content a.text-[#e05a00

]
,
a.text-[#e05a00

]
,
.news a, .card-content a.read-more {
    display: inline-block;
    color: var(--c-secondary) !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-bottom: 2px solid var(--c-secondary);
    background: linear-gradient(120deg, rgba(224, 90, 0, 0.13), rgba(255, 255, 255, 0));
    padding: 2px 0;
    margin: 0.12em 0 0 0;
    border-radius: 2px;
    transition: background 0.13s, color 0.13s;
}

.card-content a.text-[#e05a00

]
:hover,
a.text-[#e05a00

]
:hover, .news a:hover, .card-content a.read-more:hover {
    color: var(--c-accent) !important;
    background: linear-gradient(120deg, rgba(166, 90, 224, 0.13), rgba(224, 90, 0, 0));
    border-bottom: 2px solid var(--c-accent);
}

/* EVENTS section advanced grid / responsive */
#events .grid {
    display: grid;
    gap: 38px 28px;
}

/* Parallax wrapper for backgrounds */
.parallax-bg {
    will-change: background-position;
}

@media (max-width: 900px) {
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* Privacy & terms page paddings */
.page-privacy, .page-terms {
    padding-top: 100px;
}

@media (max-width: 640px) {
    .page-privacy, .page-terms {
        padding-top: 80px;
    }
}

/* Success page */
.success-page, .success-wrapper {
    min-height: 100vh !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: var(--c-gradient-bg);
    font-family: var(--font-inter);
}

.success-message {
    background: rgba(255, 255, 255, 0.93);
    border-radius: var(--radius-xl);
    padding: 3em 3.8em 2.5em 3.8em !important;
    box-shadow: var(--shadow-glass);
    text-align: center !important;
    font-size: 1.45em;
    color: var(--c-primary);
    font-weight: 700;
    max-width: 540px;
    margin: 0 auto;
}

/* Scrollbar styling (optional modern design) */
::-webkit-scrollbar {
    width: 9px;
    background: #faf9fd;
}

::-webkit-scrollbar-thumb {
    background: #d9eefa;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a6e0ca;
}

@media (max-width: 1024px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .card, .item, .testimonial, .team-member, .product-card {
        padding: 1.2em 0.6em;
    }

    .container, .mx-auto {
        padding-left: 8px;
        padding-right: 8px;
    }

    .footer-social {
        font-size: 1em;
    }
}

@media (max-width: 700px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .card, .item, .testimonial, .team-member, .product-card {
        max-width: 97vw;
    }

    .footer-social {
        font-size: 0.91em;
    }
}

/* Utility classes */
.mt-0, .my-0 {
    margin-top: 0 !important;
}

.mb-0, .my-0 {
    margin-bottom: 0 !important;
}

.pt-0, .py-0 {
    padding-top: 0 !important;
}

.pb-0, .py-0 {
    padding-bottom: 0 !important;
}

/* Utility for correspondingly wider columns on wider screens */
@media (min-width: 900px) {
    .column-wide-two-thirds {
        width: 66.66%;
        min-width: 350px;
        max-width: 860px;
        margin: 0 auto;
    }
}

.flex {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}
#burger{
    display: none;
}