/* ============================================================
   VIVEROS RyR — CSS STYLESHEET
   ============================================================ */
:root {
  --green-dark: #1a4a38;
  --green-primary: #2c7a5b;
  --green-lime: #63a844;
  --beet-red: #8f2d56;
  --beige: #f4f1ea;
  --beige-dark: #e8e3d6;
  --white: #ffffff;
  --text-dark: #2d3748;
  --text-medium: #4a5568;
  --gray-100: #f7fafc;
  --gray-200: #edf2f7;
  --gray-300: #e2e8f0;

  --font-body: 'Outfit', sans-serif;
  --font-display: 'Playfair Display', serif;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 80px;
  /* Match fixed navbar height */
}

body.loading {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

input,
textarea,
button,
select {
  font-family: inherit;
  outline: none;
}

/* ---- Layout Utility ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- Section Layouts ---- */
.section-padding {
  padding: 90px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media (max-width: 1024px) {

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section-padding {
    padding: 60px 0;
  }

  .container {
    padding: 0 24px;
  }
}

.bg-white {
  background-color: var(--white);
}

.bg-dark-green {
  background-color: var(--green-dark);
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-subtitle {
  color: var(--green-lime);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 10px;
}


.text-center {
  text-align: center;
}

/* ---- Buttons ---- */
.btn-primary,
.btn-outline,
.btn-cta,
.product-btn,
.btn-outline-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  /* Boxy but modern */
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--green-lime);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 12px rgba(99, 168, 68, 0.3);
}

.btn-primary:hover {
  background: var(--green-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(44, 122, 91, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--green-dark);
  transform: translateY(-2px);
}

.btn-outline-green {
  background: transparent;
  color: var(--green-primary);
  border: 2px solid var(--green-primary);
}

.btn-outline-green:hover {
  background: var(--green-primary);
  color: var(--white);
}

/* ---- Preloader ---- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-tree {
  width: 100px;
  height: 100px;
  z-index: 2;
  animation: pulse 2s infinite;
}

.loader-spinner {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 5px solid var(--gray-200);
  border-top-color: var(--green-lime);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* =========================================================================
   NAVBAR (Green Nova Style)
   ========================================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  /* Precise height like Green Nova */
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: all 0.4s ease;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

.nav-container {
  width: 100%;
  max-width: 1300px;
  height: 80px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  /* Strictly Logo Left, Menu Right */
  align-items: center;
}

.nav-logo img {
  height: 60px;
  /* Larger logo presence */
  transition: var(--transition);
}

.navbar.scrolled .nav-logo img {
  height: 45px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 0;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2.5px;
  background: var(--green-lime);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  left: 50%;
  transform: translateX(-50%);
  bottom: 0px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green-lime);
}

.btn-cta {
  background: var(--green-lime);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 6px;
  /* More squared like Green Nova */
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: var(--transition);
  border: 2px solid var(--green-lime);
}

.btn-cta:hover {
  background: transparent;
  color: var(--green-lime);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(141, 198, 63, 0.2);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.nav-hamburger span {
  width: 28px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }
}

/* Hamburger Animation */
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--white);
  z-index: 999;
  padding: 100px 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  transition: right 0.4s ease;
}

.mobile-menu.open {
  right: 0;
}

.mobile-link {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 10px;
}

/* =========================================================================
   HERO CAROUSEL
   ========================================================================= */
.hero {
  position: relative;
  height: calc(100vh - 80px);
  /* Fills exactly the screen below the white navbar */
  min-height: 600px;
  margin-top: 0;
  background: #111;
  overflow: hidden;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-static-content {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 10;
  width: 100%;
  padding: 0;
  pointer-events: none;
  /* Let clicks pass through if needed */
}

.hero-static-content .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  margin-bottom: 30px;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1;
  max-width: 900px;
}

.hero-title .highlight {
  display: inline-block;
  background: var(--green-lime);
  color: var(--white);
  padding: 5px 20px;
  margin: 5px 0;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--gray-200);
  margin-bottom: 0;
  max-width: 800px;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .hero-static-content {
    top: 55%;
    /* Adjust for mobile if needed */
  }

  .hero-title {
    line-height: 1.1;
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }
}

/* Feature Cards (Qué Hacemos) */
.feature-card {
  padding: 40px;
  background: var(--white);
  border-radius: 24px;
  /* Premium Univiveros style */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--gray-200);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--gray-100);
  color: var(--green-lime);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
}

.feature-card h3 {
  color: var(--green-dark);
  margin-bottom: 15px;
}

/* Counter Section */
.counter-item {
  text-align: center;
}

.counter-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--green-lime);
  display: block;
  line-height: 1;
  margin-bottom: 5px;
}

.counter-label {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
}

/* Diferenciadores List */
.icon-list {
  list-style: none;
}

.icon-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 500;
}

/* =========================================================================
   SERVICES 2x2 GRID
   ========================================================================= */
.services-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 768px) {
  .services-grid-2x2 {
    grid-template-columns: 1fr;
  }
}

.service-card-new {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.35s ease;
}

.service-card-new:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-6px);
  border-color: var(--green-lime);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: var(--green-dark);
  color: var(--green-lime);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-top: 4px;
}

.service-card-body h3 {
  font-size: 1.25rem;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.service-card-body p {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags .tag {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =========================================================================
   COMPACT SERVICE CARDS (4 columns)
   ========================================================================= */
.services-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1100px) {
  .services-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid-4 {
    grid-template-columns: 1fr;
  }
}

.svc-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.svc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--green-lime);
}

.svc-icon {
  width: 64px;
  height: 64px;
  background: var(--green-dark);
  color: var(--green-lime);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.svc-card h3 {
  font-size: 1.05rem;
  color: var(--green-dark);
  margin: 0;
}

.svc-card p {
  color: var(--text-medium);
  font-size: 0.88rem;
  line-height: 1.6;
  flex-grow: 1;
}

.svc-btn {
  margin-top: 8px;
  background: transparent;
  border: 2px solid var(--green-lime);
  color: var(--green-dark);
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.svc-btn:hover {
  background: var(--green-lime);
  color: var(--white);
}

/* =========================================================================
   SERVICE DETAIL MODAL
   ========================================================================= */
.svc-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

.svc-modal.open {
  display: flex;
}

.svc-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.svc-modal-box {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 24px;
  max-width: 680px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 48px 48px 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.35s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .svc-modal-box {
    padding: 32px 24px;
  }
}

.svc-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gray-100);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: var(--transition);
}

.svc-modal-close:hover {
  background: var(--green-dark);
  color: var(--white);
}

.svc-modal-content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.svc-modal-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: var(--green-dark);
  color: var(--green-lime);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-top: 4px;
}

.svc-modal-text h2 {
  font-size: 1.7rem;
  color: var(--green-dark);
  margin: 6px 0 16px;
}

.svc-modal-text .modal-desc {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.svc-modal-text ul {
  margin: 12px 0 16px 0;
  padding-left: 0;
  list-style: none;
}

.svc-modal-text ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text-medium);
  margin-bottom: 8px;
}

.svc-modal-text ul li::before {
  content: '✓';
  color: var(--green-lime);
  font-weight: 700;
  flex-shrink: 0;
}

/* =========================================================================
   PRODUCT CARDS (new unified style)
   ========================================================================= */
.prod-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.prod-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--green-lime);
}

.prod-img-wrap {
  width: 100%;
  height: 230px;
  overflow: hidden;
}

.prod-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.prod-card:hover .prod-img-wrap img {
  transform: scale(1.07);
}

.prod-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.prod-body h3 {
  font-size: 1.3rem;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.prod-body p {
  color: var(--text-medium);
  font-size: 0.92rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.prod-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.prod-btn-detail {
  background: transparent;
  border: 2px solid var(--green-lime);
  color: var(--green-dark);
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.prod-btn-detail:hover {
  background: var(--green-lime);
  color: var(--white);
}

.prod-btn-quote {
  background: var(--green-dark);
  color: var(--white);
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  display: inline-block;
}

.prod-btn-quote:hover {
  background: var(--green-primary);
  color: var(--white);
}

/* =========================================================================
   PRODUCT DETAIL MODAL
   ========================================================================= */
.prod-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

.prod-modal.open {
  display: flex;
}

.prod-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.prod-modal-box {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 24px;
  max-width: 700px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 48px 44px 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.35s ease;
}

@media (max-width: 600px) {
  .prod-modal-box {
    padding: 32px 22px;
  }
}

.prod-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: var(--gray-100);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: var(--transition);
}

.prod-modal-close:hover {
  background: var(--green-dark);
  color: var(--white);
}

.prod-modal-box h2 {
  font-size: 1.8rem;
  color: var(--green-dark);
  margin-bottom: 28px;
}

.prod-modal-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prod-modal-group {
  background: var(--gray-100);
  border-radius: 14px;
  padding: 20px 24px;
}

.prod-modal-group h4 {
  color: var(--green-dark);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prod-modal-group h4 i {
  color: var(--green-lime);
}

.prod-modal-group ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prod-modal-group ul li {
  background: var(--white);
  border: 1px solid var(--gray-300);
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
}

.prod-modal-group ul li:last-child {
  border-bottom: none;
}

.prod-modal-link-item {
  width: 100%;
  margin-top: 10px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.prod-modal-link-item a {
  color: var(--green-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.prod-modal-link-item a:hover {
  color: var(--green-lime);
  transform: translateX(4px);
}

/* Enhanced Product Grid */
#productos {
  background-color: #fdfaf4;
  /* Subtle warm beige background */
}

.product-card-enhanced {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card-enhanced:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--green-lime);
}

.product-image-container {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card-enhanced:hover .product-image-container img {
  transform: scale(1.1);
}

.product-btn {
  margin-top: 15px;
  background: var(--green-lime);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  display: inline-block;
  transition: var(--transition);
}

.product-btn:hover {
  background: var(--green-dark);
  color: var(--white);
}

.icon-list i {
  width: 30px;
  height: 30px;
  background: var(--green-lime);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* Carousel Controls */
.carousel-btn {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  width: 65px;
  height: 65px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.carousel-btn:hover {
  background: var(--white);
  color: var(--green-dark);
}

.carousel-btn.prev {
  left: 40px;
}

.carousel-btn.next {
  right: 40px;
}

.carousel-dots {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--white);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--white);
  transform: scale(1.3);
}

.carousel-btn.prev {
  left: 30px;
}

.carousel-btn.next {
  right: 30px;
}

.carousel-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--green-lime);
  transform: scale(1.3);
}

/* =========================================================================
   STATS BAR
   ========================================================================= */
.stats-bar {
  background: var(--green-dark);
  padding: 32px 0;
  margin-top: 0;
  position: relative;
  z-index: 5;
  box-shadow: var(--shadow-md);
}

.stats-bar .container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.stat-item {
  text-align: center;
  color: var(--white);
  flex: 1;
  min-width: 150px;
}

.stat-prefix {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-right: 2px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-display);
}

.stat-unit {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green-lime);
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.4;
}

.stat-item.full-text .stat-label {
  text-transform: none;
  font-size: 1.35rem;
  font-weight: 600;
  opacity: 1;
  letter-spacing: 0;
  max-width: 320px;
  margin: 0 auto;
}

.stat-divider {
  width: 2px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .stat-divider {
    display: none;
  }

  .stats-bar {
    margin-top: 0;
  }
}

/* =========================================================================
   GLOBAL SECTIONS
   ========================================================================= */
/* section padding is handled by .section-padding and individual components */

.section-tag {
  color: var(--green-lime);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.section-tag.light {
  color: var(--green-lime);
  opacity: 0.9;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--green-dark);
  margin-bottom: 24px;
}

.section-title.light {
  color: var(--white);
}

.section-title em {
  font-style: italic;
  color: var(--green-primary);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

/* =========================================================================
   ABOUT 
   ========================================================================= */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-image-block {
  position: relative;
}

.about-img-main img {
  border-radius: 30px;
  /* Large Univiveros style */
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-img-accent {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 60%;
  border-radius: 30px;
  border: 10px solid var(--white);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  height: 300px;
}

@media (max-width: 600px) {
  .about-img-accent {
    right: 10px;
    bottom: -20px;
    width: 50%;
  }
}

.about-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--green-lime);
  padding: 8px 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--white);
  font-size: 0.9rem;
}

.about-badge i {
  color: var(--white);
  font-size: 1rem;
}

.about-text {
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--text-medium);
}

.about-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 30px 0 40px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-medium);
}

.about-list i {
  color: var(--green-lime);
}

/* =========================================================================
   SERVICES
   ========================================================================= */
.services {
  background: var(--beige);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-float);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--beige);
  color: var(--green-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--green-primary);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--green-dark);
}

.service-card p {
  color: var(--text-medium);
  margin-bottom: 24px;
}

.btn-secondary-modal {
  color: var(--green-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--green-lime);
  padding-bottom: 2px;
}

.btn-secondary-modal:hover {
  color: var(--green-dark);
  border-bottom-color: var(--green-dark);
}

/* =========================================================================
   PRODUCTS (CATALOGO)
   ========================================================================= */
.products {
  background: var(--white);
}

.product-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-medium);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.product-card.hidden {
  display: none;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-float);
}

.product-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.product-card:hover .product-img img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--green-lime);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-info {
  padding: 24px;
}

.product-info h4 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.product-info p {
  color: var(--text-medium);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.product-info p strong {
  color: var(--text-dark);
  font-weight: 600;
}

.product-actions {
  margin-top: 20px;
}

.product-cta {
  color: var(--green-lime);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.product-cta:hover {
  color: var(--green-dark);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================================
   DIFFERENTIATORS (PORQUE NOSOTROS)
   ========================================================================= */
.why-us {
  background: var(--green-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-image {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
}

.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 500px;
}

.why-float-card {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 30px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--green-dark);
}

.why-float-card i {
  font-size: 2rem;
  color: var(--green-lime);
}

.why-float-card strong {
  display: block;
  font-size: 1.1rem;
}

.why-float-card span {
  font-size: 0.9rem;
  color: var(--text-medium);
}

.why-items {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.why-item {
  display: flex;
  gap: 20px;
}

.why-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--green-lime);
  flex-shrink: 0;
}

.why-text h4 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 6px;
  font-family: var(--font-body);
}

.why-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

/* =========================================================================
   GALLERY (6-photo collage grid + lightbox)
   ========================================================================= */
.gallery-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 280px 280px;
  gap: 10px;
}

@media (max-width: 768px) {
  .gallery-grid-6 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 200px 200px 200px 200px;
  }

  .gallery-item-new:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }
}

@media (max-width: 480px) {
  .gallery-grid-6 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-item-new:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
}

.gallery-item-new {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
}

/* Featured photo: spans 2 cols × 2 rows (top-left) */
.gallery-item-new:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  border-radius: 16px;
}


.gallery-item-new img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-item-new:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 40, 74, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item-new:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay i {
  color: var(--white);
  font-size: 2rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox-img-wrap {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.gallery {
  background: var(--gray-100);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 16px;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 768px) {
  .gallery-item.large {
    grid-column: span 1;
    grid-row: span 1;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 74, 56, 0.9), rgba(26, 74, 56, 0.2) 50%, transparent);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: 1.2rem;
  transform: translateY(20px);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
}

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact {
  background: var(--white);
  padding-bottom: 120px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  transition: var(--transition);
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-lime);
  background: var(--white);
}

.full-width {
  width: 100%;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  padding: 24px;
  background: var(--beige);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.info-card:hover {
  background: var(--beige);
}

.info-icon {
  width: 50px;
  height: 50px;
  background: var(--white);
  color: var(--green-lime);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.info-card h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--green-dark);
}

.info-card p,
.info-card a {
  color: var(--text-medium);
}

.contact-social {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}

.social-btn {
  width: 45px;
  height: 45px;
  background: var(--green-dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.social-btn:hover {
  background: var(--green-lime);
  transform: translateY(-3px);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  background: #1a2744;
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  max-width: 100px;
  margin-bottom: 20px;
}

.footer-brand p {
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.footer-social a:hover {
  background: var(--green-lime);
  color: var(--white);
}

.footer-col h5 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 24px;
  font-family: var(--font-body);
}

.footer-col ul li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-col ul li a:hover {
  color: var(--green-lime);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Scroll Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--green-lime);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-float);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--green-dark);
  transform: translateY(-5px);
}

/* =========================================================================
   MODAL COMPONENT
   ========================================================================= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.modal-container {
  position: relative;
  background: var(--white);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: var(--shadow-float);
  transform: scale(0.95) translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.open .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gray-100);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  z-index: 10;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--green-lime);
  color: var(--white);
}

.modal-body {
  padding: 40px;
}

.modal-header {
  text-align: center;
  margin-bottom: 40px;
  padding-right: 40px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-body {
    padding: 30px 20px;
  }
}

.modal-image img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-group h4 {
  color: var(--green-dark);
  font-size: 1.1rem;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 8px;
  margin-bottom: 16px;
  font-family: var(--font-body);
}

.modal-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-list.is-description {
  grid-template-columns: 1fr;
}

.modal-list.is-description li {
  line-height: 1.5;
  color: var(--text-medium);
}

.modal-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
}

.modal-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-lime);
  font-weight: 700;
}

/* =========================================================================
   BLOG MODULE STYLES
   ========================================================================= */

.blog-preview {
  background: var(--white);
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1140px;
  margin: 0 auto;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.blog-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.blog-img img.img-contain {
  object-fit: contain;
  padding: 24px;
  background-color: var(--white);
}

.blog-card:hover .blog-img img:not(.img-contain) {
  transform: scale(1.05);
}

.blog-date {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--green-lime);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.blog-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-category {
  color: var(--green-primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.blog-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--green-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-title a {
  color: inherit;
}

.blog-title a:hover {
  color: var(--green-lime);
}

.blog-excerpt {
  color: var(--text-medium);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
}

.lightbox-nav:hover {
  background: var(--green-lime);
}

.lightbox-prev {
  left: 40px;
}

.lightbox-next {
  right: 40px;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 15px;
  border-radius: 20px;
  z-index: 10001;
}

@media (max-width: 600px) {
  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-img-container img {
    max-width: 95vw;
  }
}

/* =========================================================================
   BLOG PREVIEW (Homepage)
   ========================================================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.blog-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.blog-card:hover .blog-img img {
  transform: scale(1.1);
}

.blog-date {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--green-lime);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2;
}

.blog-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-category {
  color: var(--green-lime);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}

.blog-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

.blog-title a:hover {
  color: var(--green-lime);
}

.blog-excerpt {
  color: var(--text-medium);
  font-size: 0.95rem;
  margin-bottom: 25px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-link {
  color: var(--green-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.btn-link:hover {
  color: var(--green-lime);
}

@media (max-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .blog-img {
    height: 200px;
  }

  .blog-content {
    padding: 25px;
  }

  .blog-title {
    font-size: 1.25rem;
  }
}

/* =========================================================================
   STATUS MODAL (Email Sending)
   ========================================================================= */
.status-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.status-modal.open {
  display: flex;
}

.status-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.status-modal-box {
  position: relative;
  background: var(--white);
  width: 100%;
  max-width: 450px;
  padding: 50px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-float);
  animation: modalScaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.status-content {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.status-content.active {
  display: flex;
}

.status-content h3 {
  font-size: 1.8rem;
  color: var(--green-dark);
  margin-bottom: 5px;
}

.status-content p {
  color: var(--text-medium);
  font-size: 1.05rem;
  max-width: 320px;
  margin: 0 auto 10px;
}

/* Spinner with Tree */
.status-loader-container {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.status-loader-tree {
  width: 60px;
  height: 60px;
  z-index: 2;
  animation: pulse 2s infinite;
}

.status-loader-spinner {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--green-lime);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Success Icon */
.status-icon-success {
  width: 80px;
  height: 80px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
  animation: iconBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Error Icon */
.status-icon-error {
  width: 80px;
  height: 80px;
  background: #ffebee;
  color: #c62828;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
  animation: iconBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes iconBounce {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

.status-modal .btn-primary {
  margin-top: 15px;
  width: 100%;
}

/* --- TEXT JUSTIFICATION --- */
p, 
.modal-desc, 
.svc-modal-body li, 
.prod-modal-grid li,
.about-list li,
.icon-list li {
  text-align: justify;
}

.section-tag,
.stat-label {
  text-align: center;
}