@charset "UTF-8";
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  color: #112000;
  line-height: 1.6;
  background: #FFFFFF;
  overflow-x: hidden;
}

.container {
  max-width: 1550px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  max-width: 1550px;
}

.text-green {
  color: #67a516;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.3;
  }
}
.animate {
  opacity: 0;
}

.animate.visible {
  animation: fadeUp 0.7s ease forwards;
}

.animate-delay-1 {
  animation-delay: 0.1s !important;
}

.animate-delay-2 {
  animation-delay: 0.2s !important;
}

.animate-delay-3 {
  animation-delay: 0.3s !important;
}

.animate-delay-4 {
  animation-delay: 0.4s !important;
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s;
}

nav.scrolled {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25), 0 3px 0 rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: #112000;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span {
  color: #67a516;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #666666;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover {
  color: #67a516;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #67a516;
  transition: width 0.3s;
}

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

/* ── HERO ── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #67A516 0%, #588A23 40%, #2B4B04 100%);
  overflow: hidden;
  padding: 14vh 24px 15vh;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.hero-text {
  color: #FFFFFF;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 28px;
  font-weight: 900;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.hero h1.hero-badge {
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.hero h2 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 28px;
  opacity: 0.95;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.15rem;
  line-height: 1.7;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ── STATS ── */
.stats-section {
  background-color: #F4F5F3;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-title {
  text-align: center;
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
  letter-spacing: -0.02em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  z-index: 2;
}

.stats-grid-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  z-index: 2;
  margin-top: 48px;
}

.stat-item {
  text-align: center;
  color: #2B4B04;
}

.stat-number {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  opacity: 0.85;
}

.stat-divider {
  width: 40px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  margin: 12px auto 0;
  border-radius: 3px;
}

/* ── TIMELINE ── */
.timeline-section {
  background: #FFFFFF;
}

.timeline-header {
  text-align: center;
  margin-bottom: 70px;
}

.timeline-header h2 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #2B4B04, #67a516);
  transform: translateX(-50%);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 50px;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  padding-right: 50px;
  text-align: right;
  justify-content: flex-end;
}

.timeline-item:nth-child(even) {
  padding-left: 50px;
  margin-left: 50%;
}

.timeline-dot {
  position: absolute;
  top: 8px;
  width: 18px;
  height: 18px;
  background: #67a516;
  border: 4px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #67a516;
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -9px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -9px;
}

.timeline-content {
  --parallax-y: 0px;
  --hover-y: 0px;
  background: #F5FFE9;
  padding: 28px;
  border-radius: 1rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25), 0 3px 0 rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s;
  transform: translate3d(0, calc(var(--parallax-y) + var(--hover-y)), 0);
  will-change: transform;
}

.timeline-content:hover {
  --hover-y: -4px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25), 0 6px 0 rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.timeline-year {
  display: inline-block;
  background: #2B4B04;
  color: #FFFFFF;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── MISIÓN + VALORES ── */
.mission-section {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  background: #F4F5F3;
}

.mission-header {
  text-align: center;
  margin-bottom: 60px;
}

.mission-header h2 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.mission-primary {
  background: #FFFFFF;
  border-radius: 1rem;
  padding: 48px 40px;
  border: 2px solid #67a516;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.mission-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25), 0 8px 0 rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.mission-primary h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #67a516;
}

.mission-primary p {
  font-size: 1rem;
  color: #666666;
  line-height: 1.8;
}

.motivacion-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0 30px;
}

.motiv-card {
  background: #FFFFFF;
  border-radius: 1rem;
  padding: 40px 28px;
  text-align: center;
  transition: all 0.4s;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.motiv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #67a516;
  transform: scaleX(0);
  transition: transform 0.4s;
}

.motiv-icon {
  width: 128px;
  height: 128px;
  border-radius: 999px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: #DCFBB6;
  transition: background 0.3s;
}
.motiv-icon img {
  max-width: 50%;
}

.motiv-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.motiv-card p {
  line-height: 1.7;
}

/* ── SECTION WITH IMAGE ── */
.img-section {
  overflow: hidden;
}

.img-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.img-section-image {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25), 0 8px 0 rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.img-section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-section h2 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.img-section p {
  line-height: 1.8;
  margin-bottom: 16px;
}

#rioja {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  padding: 180px 0;
  background: url("/r/img/logrono.png") center/cover no-repeat;
}

/* ── CONTACT ── */
.contact-section {
  background: #112000;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(103, 165, 22, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.contact-section::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(103, 165, 22, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.contact-content {
  position: relative;
  z-index: 2;
}

.contact-section h2 {
  font-size: 2.8rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.contact-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.contact-channels {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 32px 36px;
  text-align: center;
  transition: all 0.3s;
  min-width: 300px;
  text-decoration: none;
}

.contact-card-head {
  text-align: left;
  line-height: 1;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.contact-card-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.contact-card h4 {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* ── FOOTER ── */
footer {
  background: #112000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.footer-socials a:hover {
  background: #67a516;
  color: #FFFFFF;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .img-section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero h2 {
    font-size: 1.8rem;
  }
  .img-section h2, .timeline-header h2, .mission-header h2, .contact-section h2 {
    font-size: 2rem;
  }
  .motivacion-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid, .stats-grid-bottom {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-item, .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 60px;
    padding-right: 0;
    text-align: left;
  }
  .timeline-item:nth-child(odd) {
    padding-right: 0;
    padding-left: 60px;
    text-align: left;
    justify-content: flex-start;
  }
  .timeline-dot, .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 11px !important;
    right: auto !important;
  }
  .nav-links {
    display: none;
  }
}
@media (max-width: 600px) {
  .section {
    padding: 30px 0;
  }
  .hero {
    padding: 130px 24px 90px;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .stats-grid, .stats-grid-bottom {
    grid-template-columns: 1fr;
  }
  .stat-number {
    font-size: 2.4rem;
  }
  .motivacion-grid {
    grid-template-columns: 1fr;
  }
  .contact-channels {
    flex-direction: column;
    align-items: center;
  }
}
