:root {
  /* Цветовая схема "Пастельная" */
  --primary-color: #6c63ff;
  --primary-dark: #5a52d5;
  --secondary-color: #ff6b6b;
  --secondary-dark: #e25f5f;
  --accent-color: #64e8de;
  --accent-dark: #4bc9c0;
  --background-light: #f8f9fa;
  --background-white: #ffffff;
  --text-dark: #2d3748;
  --text-medium: #4a5568;
  --text-light: #718096;
  --success-color: #48bb78;
  --warning-color: #ed8936;
  --error-color: #e53e3e;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  --gradient-secondary: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --transition-slow: 0.5s ease;
  --transition-medium: 0.3s ease;
  --transition-fast: 0.2s ease;
}

/* Базовые стили */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--background-light);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

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

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

/* Кнопки */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  transition: all var(--transition-medium);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  border: none;
  text-align: center;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

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

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

.button.is-rounded {
  border-radius: 2rem;
}

/* Хедер и навигация */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar {
  padding: 1rem 0;
  box-shadow: none !important;
  background-color: transparent !important;
}

.navbar-brand .title {
  margin-bottom: 0;
}

.navbar-item {
  font-weight: 500;
  color: var(--text-dark);
  transition: color var(--transition-fast);
}

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

.navbar-item img {
  width: 54px !important;
  height: 54px !important;
  object-fit: contain;
}

/* Hero секция */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  z-index: 0;
}

.hero-body {
  position: relative;
  z-index: 1;
}

.hero .title,
.hero .subtitle,
.hero p {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Секции */
.section {
  padding: 5rem 1.5rem;
}

.section .title {
  margin-bottom: 2rem;
  position: relative;
}

.section .title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section.has-background-light {
  background-color: var(--background-light);
}

/* Карточки */
.card {
  background-color: var(--background-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium),
    box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.card-image {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image figure {
  width: 100%;
  height: 240px;
  overflow: hidden;
  margin: 0;
}

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

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

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card .title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card .subtitle {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Сервисные карточки */
.service-card {
  text-align: center;
}

.service-card .card-content {
  align-items: center;
}

/* FAQ секция */
.faq-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--background-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-medium);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-item h3 {
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

/* Контактная секция */
.contact-info p {
  margin-bottom: 0.5rem;
}

.map-container {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Форма */
.input,
.textarea,
.select select {
  background-color: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 0.75rem;
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.input:focus,
.textarea:focus,
.select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

.label {
  font-weight: 500;
  color: var(--text-medium);
  margin-bottom: 0.5rem;
}

/* Футер */
.footer {
  background-color: var(--text-dark);
  color: white;
  padding: 4rem 1.5rem 2rem;
}

.footer .title {
  color: white;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
  color: white;
}

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

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

.social-links a {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.social-links a:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* Новостные карточки */
.news .card {
  height: 100%;
}

/* Эффекты прокрутки */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

/* Модальное окно галереи */
.modal {
  display: none;
}

.modal.is-active {
  display: flex;
}

.modal-content {
  max-width: 80%;
  max-height: 80%;
  margin: auto;
}

.modal-content img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--border-radius-md);
}

/* Cookie Consent */
#cookieConsentPopup {
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-xl);
}

#acceptCookies {
  background-color: var(--success-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

#acceptCookies:hover {
  background-color: #3da067;
}

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

.success-container {
  max-width: 600px;
  padding: 3rem;
  background-color: var(--background-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

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

/* Privacy & Terms Pages */
.privacy-page,
.terms-page {
  padding-top: 100px;
  padding-bottom: 3rem;
}

.privacy-page .container,
.terms-page .container {
  background-color: var(--background-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  padding: 2rem;
}

/* Медиа запросы */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
  }

  .navbar-item {
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }

  .hero .title {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1.25rem;
  }

  .buttons.is-centered {
    flex-direction: column;
  }

  .buttons.is-centered .button {
    margin: 0.5rem 0;
  }
}

/* Дополнительные анимации */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Параллакс эффект */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Улучшенные стили для кнопок "Читать далее" */
.read-more {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: var(--primary-color);
  transition: transform var(--transition-fast);
  margin-top: 1rem;
}

.read-more:hover {
  transform: translateX(5px);
  color: var(--primary-dark);
}

.read-more::after {
  content: "→";
  margin-left: 0.5rem;
  transition: transform var(--transition-fast);
}

.read-more:hover::after {
  transform: translateX(3px);
}

/* Улучшенные стили для новостных карточек */
.news .card .card-content {
  position: relative;
}

.news .card .title {
  transition: color var(--transition-fast);
}

.news .card:hover .title {
  color: var(--primary-color);
}

/* Улучшенные стили для истории и исследований */
#historia .image,
#investigacion .image {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
}

#historia .image:hover,
#investigacion .image:hover {
  transform: scale(1.02);
}

/* Улучшенные стили для контактной формы */
#contactForm button {
  position: relative;
  overflow: hidden;
}

#contactForm button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

#contactForm button:hover::after {
  width: 300%;
  height: 300%;
}

/* Улучшенные стили для Navbar */
.navbar-item {
  position: relative;
}

.navbar-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transform: translateX(-50%);
  transition: width var(--transition-medium);
}

.navbar-item:hover::after {
  width: 70%;
}

/* Стили для boletín informativo в футере */
.newsletter .input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.newsletter .input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter .input:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.newsletter .button {
  background-color: var(--accent-color);
  color: var(--text-dark);
}

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