:root {
    /* Основная монохромная палитра */
    --primary-color: #3a3a3a;
    --primary-light: #606060;
    --primary-dark: #1a1a1a;
    --accent-color: #4a90e2;
    --accent-light: #6ba5e7;
    --accent-dark: #2b6cb0;
    --text-light: #f5f5f5;
    --text-dark: #333333;
    --background-light: #f9f9f9;
    --background-dark: #2c2c2c;
    --success-color: #48c774;
    --warning-color: #ffdd57;
    --danger-color: #f14668;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
    --footer-bg: #222222;
    --overlay-bg: rgba(0, 0, 0, 0.5);
    
    /* Параметры анимаций */
    --transition-fast: 0.3s;
    --transition-medium: 0.5s;
    --transition-slow: 0.8s;
    
    /* Параметры типографики */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Source Sans Pro', sans-serif;
    --base-size: 16px;
    --h1-size: 3.5rem;
    --h2-size: 2.8rem;
    --h3-size: 2.2rem;
    --h4-size: 1.8rem;
    --h5-size: 1.4rem;
    --h6-size: 1.2rem;
    
    /* Размеры и отступы */
    --section-padding: 5rem 0;
    --container-padding: 0 1.5rem;
    --card-padding: 1.5rem;
    --container-width: 1200px;
    --card-radius: 8px;
    --button-radius: 4px;
}

/* Общие стили и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--base-size);
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-dark);
    background-color: var(--background-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

h1 {
    font-size: var(--h1-size);
}

h2 {
    font-size: var(--h2-size);
}

h3 {
    font-size: var(--h3-size);
}

h4 {
    font-size: var(--h4-size);
}

h5 {
    font-size: var(--h5-size);
}

h6 {
    font-size: var(--h6-size);
}

@media (max-width: 768px) {
    h1 {
        font-size: calc(var(--h1-size) * 0.7);
    }
    h2 {
        font-size: calc(var(--h2-size) * 0.8);
    }
    h3 {
        font-size: calc(var(--h3-size) * 0.8);
    }
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-fast) ease;
}

a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

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

/* Адаптивные контейнеры */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

.section:nth-child(even) {
    background-color: var(--background-light);
}

.section:nth-child(odd) {
    background-color: white;
}

/* Заголовки секций */
.title.is-2 {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
    overflow: hidden;
}

.title.is-2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    transition: width var(--transition-medium) ease;
}

.title.is-2:hover:after {
    width: 80px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: all var(--transition-fast) ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo-container {
    border-radius: 5px;
    overflow: hidden;
    transition: transform var(--transition-fast) ease;
}

.navbar-brand:hover .logo-container {
    transform: scale(1.05);
}

.navbar-item {
    font-weight: 600;
    padding: 0.5rem 1rem;
    color: var(--primary-dark);
    transition: color var(--transition-fast) ease;
}

.navbar-item:hover {
    color: var(--accent-color);
}

.navbar-burger {
    color: var(--primary-dark);
}

.navbar-menu {
    box-shadow: none;
}

.navbar-burger span {
    height: 2px;
    width: 20px;
    left: calc(50% - 10px);
}

.navbar-burger span:nth-child(1) {
    top: calc(50% - 7px);
}

.navbar-burger span:nth-child(3) {
    top: calc(50% + 5px);
}

@media screen and (max-width: 1023px) {
    .navbar-menu.is-active {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: 0 8px 16px var(--shadow-color);
        background-color: white;
        padding: 1rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    margin-top: 0;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-bg);
    z-index: 1;
}

.hero-body {
    position: relative;
    z-index: 2;
    padding: 10rem 1.5rem;
}

.hero .title,
.hero .subtitle {
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s var(--transition-medium) forwards;
}

.hero .buttons {
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s var(--transition-slow) forwards;
}

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

.hero .button {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}

.hero .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Buttons */
.button {
    font-family: var(--body-font);
    font-weight: 600;
    border-radius: var(--button-radius);
    transition: all var(--transition-fast) ease;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px var(--shadow-color);
    cursor: pointer;
}

.button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background-image: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transition: all var(--transition-fast) ease;
}

.button:hover::after {
    left: 100%;
}

.button.is-primary {
    background-color: var(--accent-color);
    color: white;
}

.button.is-primary:hover {
    background-color: var(--accent-dark);
}

.button.is-light {
    background-color: white;
    color: var(--primary-dark);
}

.button.is-light:hover {
    background-color: var(--background-light);
}

.button.is-large {
    font-size: 1.25rem;
    padding: 0.8rem 2rem;
}

.button.is-medium {
    font-size: 1.1rem;
    padding: 0.6rem 1.5rem;
}

.button.is-small {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
}

.button.is-fullwidth {
    width: 100%;
}

.button.is-rounded {
    border-radius: 50px;
}

/* Cards */
.card {
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    background-color: var(--card-bg);
    transition: transform var(--transition-medium) ease, box-shadow var(--transition-medium) ease;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    transition: transform var(--transition-medium) ease;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: var(--card-padding);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content .title {
    margin-bottom: 1rem;
}

.card-content .content {
    flex-grow: 1;
}

.card-content .button {
    align-self: flex-start;
    margin-top: auto;
}

/* Form Elements */
.field {
    margin-bottom: 1.5rem;
}

.label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.input,
.textarea,
.select select {
    border: 1px solid var(--border-color);
    border-radius: var(--button-radius);
    padding: 0.75rem 1rem;
    transition: border-color var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
    box-shadow: none;
    width: 100%;
}

.input:focus,
.textarea:focus,
.select select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.select {
    position: relative;
}

.select:after {
    border-color: var(--primary-dark);
}

.checkbox {
    cursor: pointer;
}

/* Accordion */
.accordion {
    margin-bottom: 2rem;
}

.accordion-item {
    margin-bottom: 1rem;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.accordion-header {
    background-color: var(--card-bg);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color var(--transition-fast) ease;
}

.accordion-header:hover {
    background-color: #f9f9f9;
}

.accordion-header h3 {
    margin: 0;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    background-color: var(--card-bg);
    transition: max-height var(--transition-medium) ease;
}

.accordion-item.is-active .accordion-content {
    padding: 1.5rem;
    max-height: 500px;
}

/* Timeline */
.timeline {
    position: relative;
    margin: 2rem 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background-color: var(--accent-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 50px;
}

.timeline-marker {
    position: absolute;
    top: 6px;
    left: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--accent-color);
    z-index: 1;
}

.timeline-content {
    position: relative;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: 0 2px 5px var(--shadow-color);
}

/* About Section */
#about .content {
    font-size: 1.1rem;
    line-height: 1.8;
}

#about .image {
    overflow: hidden;
    border-radius: var(--card-radius);
    box-shadow: 0 5px 15px var(--shadow-color);
}

#about img {
    transition: transform var(--transition-slow) ease;
}

#about .image:hover img {
    transform: scale(1.05);
}

/* Services Section */
#servicios .card {
    height: 100%;
}

#servicios .card-image {
    height: 240px;
    overflow: hidden;
}

#servicios .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Events Section */
#eventos .card-image {
    height: 240px;
}

/* Testimonials Section */
#testimonios .card {
    position: relative;
    padding-top: 2rem;
}

#testimonios .media {
    margin-bottom: 1.5rem;
}

#testimonios .media-left .image {
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
}

#testimonios .rating {
    margin-top: 1rem;
}

/* FAQ Section */
#faq .accordion-item {
    margin-bottom: 1.5rem;
}

/* Contact Section */
#contacto .map-container {
    overflow: hidden;
    border-radius: var(--card-radius);
    margin-bottom: 2rem;
}

/* Parallax Effects */
.has-parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer .title {
    color: white;
}

.footer a {
    color: #ccc;
    transition: color var(--transition-fast) ease;
}

.footer a:hover {
    color: white;
    text-decoration: none;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer .social-links a {
    display: inline-block;
    margin-right: 1rem;
    color: white;
    transition: transform var(--transition-fast) ease;
}

.footer .social-links a:hover {
    transform: translateY(-3px);
}

/* Cookie Consent */
.cookie-consent {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.cookie-consent p {
    margin-bottom: 1rem;
    max-width: 800px;
    text-align: center;
}

.cookie-consent button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color var(--transition-fast) ease;
}

.cookie-consent button:hover {
    background-color: var(--accent-dark);
}

/* Success Page */
.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.success-page h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.success-page p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.success-page .button {
    margin-top: 1rem;
}

.success-icon {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 2rem;
}

/* Privacy & Terms Pages */
.page-content {
    padding-top: 100px;
    padding-bottom: 4rem;
}

.page-content .title {
    margin-bottom: 2rem;
}

.page-content .content {
    margin-bottom: 2rem;
}

.page-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-content ul li {
    margin-bottom: 0.5rem;
}

/* Utility Classes */
.has-text-centered {
    text-align: center;
}

.has-text-white {
    color: white !important;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 1rem; }
.ml-4 { margin-left: 1.5rem; }
.ml-5 { margin-left: 2rem; }

.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 1rem; }
.mr-4 { margin-right: 1.5rem; }
.mr-5 { margin-right: 2rem; }

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    :root {
        --h1-size: 2.5rem;
        --h2-size: 2rem;
        --h3-size: 1.75rem;
        --h4-size: 1.5rem;
        --h5-size: 1.25rem;
        --h6-size: 1rem;
    }
    
    .hero-body {
        padding: 6rem 1rem;
    }
    
    .columns:not(.is-desktop) {
        margin-left: 0;
        margin-right: 0;
    }
    
    .column {
        padding: 0.75rem;
    }
    
    .timeline:before {
        left: 15px;
    }
    
    .timeline-marker {
        left: 5px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
}

@media screen and (max-width: 480px) {
    .hero .button {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .hero .buttons {
        flex-direction: column;
    }
}

/* Animation for scrolling effects */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-medium) ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Accordion styles */
.accordion-header .icon i {
    transition: transform var(--transition-fast) ease;
}

.accordion-item.is-active .accordion-header .icon i.fa-plus {
    transform: rotate(45deg);
}

.accordion-item.is-active .accordion-header {
    background-color: #f5f5f5;
}

/* Form input animation */
.input:focus, .textarea:focus {
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.1);
    }
    to {
        box-shadow: 0 0 0 5px rgba(74, 144, 226, 0.2);
    }
}

/* Parallax scrolling effect */
.has-parallax-scroll {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.parallax-item {
    transition: transform var(--transition-slow) ease;
}

/* Webinars Section */
#webinars .accordion {
    max-width: 800px;
    margin: 0 auto;
}

#webinars .image {
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Sustainability Section */
#sostenibilidad {
    position: relative;
}

#sostenibilidad .image {
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Workshops Section */
#talleres .timeline {
    max-width: 800px;
    margin: 3rem auto;
}

#talleres .image {
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Bulma overrides */
.navbar-item img {
    max-height: none;
}

.navbar-burger {
    height: auto;
}

.columns {
    margin-top: 0;
}

.column {
    display: flex;
    flex-direction: column;
}

.title:not(.is-spaced) + .subtitle {
    margin-top: -1rem;
}

/* Adaptative typography */
@media screen and (min-width: 769px) {
    h1, .title.is-1 {
        font-size: calc(var(--h1-size) + 0.5vw);
    }
    
    h2, .title.is-2 {
        font-size: calc(var(--h2-size) + 0.3vw);
    }
    
    .hero .subtitle {
        font-size: calc(1.5rem + 0.3vw);
    }
    
    .content.is-medium {
        font-size: calc(1rem + 0.1vw);
    }
}

/* Read more links */
.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--accent-color);
    position: relative;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-fast) ease;
}

.read-more:hover::after {
    width: 100%;
}

.read-more:hover {
    text-decoration: none;
}

/* Ensure images in cards are centered */
.card-image {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
}

.card-image img {
    margin: 0 auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fix for privacy and terms pages */
.privacy-page,
.terms-page {
    padding-top: 100px;
}

.footer {
    padding: 3rem 0;
    background-color: var(--footer-bg) !important;
    color: var(--text-light);
}

/* Footer social links */
.footer .social-links {
    display: flex;
}

.footer .social-links a {
    margin-right: 1.5rem;
    font-weight: 600;
    position: relative;
}

.footer .social-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width var(--transition-fast) ease;
}

.footer .social-links a:hover::after {
    width: 100%;
}

/* Cookie consent */
#cookie-consent {
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contact form success message */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--card-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    text-align: center;
}

.success-message.visible {
    display: block;
    animation: fadeIn var(--transition-medium) ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Map container */
.map-container {
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    height: 300px;
}

.map-container iframe {
    border: 0;
}