/* ===== VARIABLES ===== */
:root {
  /* Color Scheme - Monochromatic */
  --primary-color: #3273dc;
  --primary-light: #4a89e8;
  --primary-dark: #1c54b2;
  --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  
  --secondary-color: #2a67c7;
  --secondary-light: #5a8de0;
  --secondary-dark: #164085;
  
  --accent-color: #7aa6f5;
  --accent-light: #a1c0ff;
  --accent-dark: #5183d6;
  
  --text-dark: #363636;
  --text-medium: #4a4a4a;
  --text-light: #f5f5f5;
  
  --bg-light: #f9fafb;
  --bg-medium: #f2f4f8;
  --bg-dark: #e8ecf3;
  
  --border-radius: 12px;
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  --hover-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
  --transition-speed: 0.3s;
  
  /* Typography */
  --heading-font: 'Oswald', sans-serif;
  --body-font: 'Nunito', sans-serif;
}

/* ===== BASE STYLES ===== */
html {
  scroll-behavior: smooth;
}

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

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

.title, .subtitle {
  font-family: var(--heading-font);
}

.title.is-1 {
  font-size: 3.5rem;
  letter-spacing: -0.5px;
}

.title.is-2 {
  font-size: 2.8rem;
  position: relative;
  margin-bottom: 2.5rem;
}

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

p {
  margin-bottom: 1.5rem;
}

.content {
  font-size: 1.1rem;
}

/* ===== UTILITY CLASSES ===== */
.has-shadow {
  box-shadow: var(--card-shadow);
}

.is-centered {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mb-large {
  margin-bottom: 3rem;
}

.mt-large {
  margin-top: 3rem;
}

.py-large {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== BUTTONS ===== */
.button {
  font-family: var(--heading-font);
  font-weight: 500;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-speed) ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.button:active {
  transform: translateY(-1px);
}

.button.is-primary {
  background: var(--primary-gradient);
  border: none;
}

.button.is-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.button.is-light {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  border: none;
  backdrop-filter: blur(10px);
}

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

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

.button.is-large {
  font-size: 1.2rem;
  padding: 1rem 2rem;
}

.buttons.is-centered {
  justify-content: center;
}

/* ===== NAVBAR ===== */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed) ease;
}

.navbar-item {
  font-family: var(--heading-font);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
  padding: 0.7rem 1rem;
  transition: color var(--transition-speed) ease;
}

.navbar-item:hover {
  color: var(--primary-color);
  background-color: transparent !important;
}

.navbar-burger {
  margin-top: 5px;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.hero-body {
  padding: 12rem 1.5rem !important;
}

.hero .title, 
.hero .subtitle, 
.hero p {
  color: var(--text-light) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero .title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero .subtitle {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.parallax-element {
  transition: transform 0.5s ease-out;
}

/* ===== HISTORIA SECTION ===== */
#historia {
  padding: 6rem 1.5rem;
  background-color: var(--bg-light);
}

.image-gallery {
  margin-top: 3rem;
}

.image-container {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-speed) ease;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-container:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.image-container img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
  display: block;
  margin: 0 auto;
}

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

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 20px 15px 15px;
  font-family: var(--heading-font);
  font-weight: 500;
  text-align: center;
  font-size: 1.1rem;
}

/* ===== SUCCESS STORIES SECTION ===== */
#historias-exito {
  padding: 6rem 1.5rem;
  background-color: var(--bg-medium);
}

.custom-slider {
  position: relative;
  margin-top: 3rem;
  overflow: hidden;
}

.slider-container {
  overflow: hidden;
  width: 100%;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slider-item {
  flex: 0 0 100%;
}

.slider-controls {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.slider-prev,
.slider-next {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  margin: 0 0.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--heading-font);
  font-weight: 500;
  transition: all var(--transition-speed) ease;
}

.slider-prev:hover,
.slider-next:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card {
  height: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
  display: block;
  margin: 0 auto;
}

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

.card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.card-content p {
  color: var(--text-medium);
  line-height: 1.7;
}

/* ===== COMMUNITY SECTION ===== */
#comunidad {
  padding: 6rem 1.5rem;
  background-color: var(--bg-light);
}

.community-card {
  margin-bottom: 2rem;
  height: 100%;
}

.community-card .card-image {
  height: 300px;
}

/* ===== RESOURCES SECTION ===== */
#recursos {
  padding: 6rem 1.5rem;
  background-color: var(--bg-medium);
}

.resource-card {
  height: 100%;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-speed) ease;
}

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

.resource-card ul {
  margin-top: 1.5rem;
  padding-left: 1rem;
}

.resource-card ul li {
  margin-bottom: 1rem;
}

.resource-card a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

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

/* ===== SUSTAINABILITY SECTION ===== */
#sostenibilidad {
  padding: 6rem 1.5rem;
  background-color: var(--bg-light);
}

.accordion {
  margin-top: 3rem;
}

.accordion-item {
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: white;
}

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

.accordion-header:hover {
  background-color: var(--bg-medium);
}

.accordion-header h3 {
  margin: 0;
}

.accordion-content {
  padding: 0 1.5rem 1.5rem;
  display: none;
}

.accordion-content img {
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* ===== CONTACT SECTION ===== */
#contact {
  padding: 6rem 1.5rem;
  background-color: var(--bg-medium);
}

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
  border-radius: 8px;
  border: 2px solid var(--bg-dark);
  transition: all var(--transition-speed) ease;
  box-shadow: none;
}

.contact-form .input:focus,
.contact-form .textarea:focus,
.contact-form .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-light);
}

.contact-form .label {
  font-family: var(--heading-font);
  font-weight: 500;
  color: var(--text-dark);
}

.contact-info {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-item {
  margin-bottom: 2rem;
}

.info-item h3 {
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.info-item h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 1.5px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  color: var(--primary-color);
  transition: all var(--transition-speed) ease;
  text-decoration: none;
  margin-right: 1rem;
}

.social-links a:hover {
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.newsletter-form .input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.newsletter-form .button {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--text-dark);
  color: var(--text-light);
  padding: 5rem 1.5rem 3rem;
}

.footer .title {
  color: white;
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.footer .title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 1.5px;
}

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

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

.footer a {
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.footer a:hover {
  color: var(--primary-light);
}

.footer .social-links {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.footer .social-links a {
  margin-right: 1.5rem;
  font-size: 1rem;
  transition: all var(--transition-speed) ease;
}

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

.copyright {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== SUCCESS PAGE ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background-color: var(--bg-light);
}

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

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

/* ===== PRIVACY & TERMS PAGES ===== */
.legal-page {
  padding-top: 100px;
  padding-bottom: 5rem;
}

.legal-content {
  background-color: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.legal-content h2 {
  color: var(--primary-color);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.legal-content h3 {
  color: var(--text-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* ===== MEDIA QUERIES ===== */
@media screen and (max-width: 1023px) {
  .hero .title {
    font-size: 3rem;
  }
  
  .hero .subtitle {
    font-size: 1.75rem;
  }
  
  .navbar-menu {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }
}

@media screen and (max-width: 768px) {
  .hero-body {
    padding: 8rem 1.5rem !important;
  }
  
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
  
  .title.is-2 {
    font-size: 2.2rem;
  }
  
  .accordion-content .columns {
    flex-direction: column;
  }
  
  .accordion-content .column.is-one-third {
    margin-bottom: 1.5rem;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.25rem;
  }
  
  .title.is-2 {
    font-size: 1.8rem;
  }
  
  .buttons.is-centered .button {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Cookie Consent Styling */
#cookie-consent {
  background-color: rgba(0, 0, 0, 0.9) !important;
  padding: 20px !important;
  border-top: 3px solid var(--primary-color);
}

#accept-cookies {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  font-family: var(--heading-font);
  font-weight: 500;
  margin-left: 10px;
}

#accept-cookies:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}