/* =============================================
   TODO JARDÍN — styles.css
   ============================================= */

/* ─── VARIABLES ─── */
:root {
  --verde-oscuro: #1a3a1a;
  --verde-medio:  #2d5c1e;
  --verde-vivo:   #4a8c2a;
  --verde-claro:  #7ab648;
  --dorado:       #c8a84b;
  --crema:        #f5f0e8;
  --blanco:       #ffffff;
  --negro:        #0d1a0d;
}

/* ─── RESET ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--negro);
  color: var(--crema);
  overflow-x: hidden;
}

/* ─── HEADER / NAV ─── */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  background: rgba(10, 22, 10, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(122, 182, 72, 0.15);
  transition: background 0.4s;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-circle {
  width: 52px;
  height: 52px;
  background: var(--verde-medio);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--verde-claro);
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(74, 140, 42, 0.3);
  transition: box-shadow 0.3s;
}

.logo-circle:hover {
  box-shadow: 0 0 30px rgba(74, 140, 42, 0.6);
}

.logo-text {
  line-height: 1.1;
}

.logo-text span:first-child {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--dorado);
  letter-spacing: 0.03em;
}

.logo-text span:last-child {
  font-size: 1.2rem;
  color: var(--verde-claro);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

nav a {
  color: rgba(245, 240, 232, 0.75);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--verde-claro);
  transition: width 0.3s;
}

nav a:hover { color: var(--verde-claro); }
nav a:hover::after { width: 100%; }

.nav-cta {
  background: var(--verde-vivo);
  color: var(--blanco) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  transition: background 0.3s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--verde-claro);
  transform: translateY(-1px);
}

.nav-cta::after { display: none !important; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0 4rem;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(45, 92, 30, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(74, 140, 42, 0.15) 0%, transparent 60%),
    linear-gradient(160deg, #0d1a0d 0%, #122012 50%, #0a150a 100%);
  z-index: 0;
}

/* Floating leaves */
.leaf-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.leaf-bg span {
  position: absolute;
  font-size: 2rem;
  opacity: 0.04;
  animation: floatLeaf linear infinite;
}

@keyframes floatLeaf {
  0%   { transform: translateY(110vh) rotate(0deg);   opacity: 0; }
  10%  { opacity: 0.06; }
  90%  { opacity: 0.06; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 140, 42, 0.12);
  border: 1px solid rgba(74, 140, 42, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--verde-claro);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-badge::before {
  content: '🌿';
  font-size: 0.9rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  color: var(--crema);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero h1 em {
  font-style: normal;
  color: var(--blanco);
  display: block;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(245, 240, 232, 0.65);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

.btn-primary {
  background: var(--verde-vivo);
  color: var(--blanco);
  text-decoration: none;
  padding: 0.9rem 2rem;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--verde-claro);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 140, 42, 0.4);
}

.btn-large {
  font-size: 1rem;
  padding: 1rem 2.5rem;
}

.btn-secondary {
  border: 1px solid rgba(245, 240, 232, 0.25);
  color: var(--crema);
  text-decoration: none;
  padding: 0.9rem 2rem;
  font-size: 0.9rem;
  font-weight: 400;
  border-radius: 2px;
  transition: border-color 0.3s, color 0.3s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  border-color: var(--verde-claro);
  color: var(--verde-claro);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeIn 1.2s 0.6s forwards;
}

.hero-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 440px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(122, 182, 72, 0.12);
  border-radius: 4px;
  padding: 1.5rem 1.2rem;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.hero-card:hover {
  background: rgba(74, 140, 42, 0.08);
  border-color: rgba(122, 182, 72, 0.3);
  transform: translateY(-4px);
}

.hero-card:first-child {
  grid-column: span 2;
}

.hero-card .icon {
  font-size: 2rem;
  margin-bottom: 0.7rem;
}

.hero-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--crema);
  margin-bottom: 0.4rem;
}

.hero-card p {
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.5);
  line-height: 1.5;
  margin: 0;
  animation: none;
  opacity: 1;
}

/* ─── SCROLL INDICATOR ─── */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
  color: rgba(245, 240, 232, 0.4);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(122, 182, 72, 0.4);
  margin: 8px auto 0;
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1);   opacity: 1;   }
  50%       { transform: scaleY(0.3); opacity: 0.3; }
}

/* ─── SECTION BASE ─── */
section {
  padding: 7rem 4rem;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--verde-claro);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '— ';
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--crema);
  margin-bottom: 1.5rem;
}

/* ─── SERVICIOS ─── */
#servicios {
  background: #0f1f0f;
  position: relative;
  overflow: hidden;
}

#servicios::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at right, rgba(74, 140, 42, 0.08) 0%, transparent 70%);
}

.servicios-header {
  max-width: 600px;
  margin-bottom: 4rem;
}

.servicios-header p {
  color: rgba(245, 240, 232, 0.55);
  line-height: 1.8;
  font-size: 1rem;
  font-weight: 300;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  background: rgba(122, 182, 72, 0.08);
  border: 1.5px solid rgba(122, 182, 72, 0.08);
}

.servicio-item {
  background: #0f1f0f;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
  cursor: default;
}

.servicio-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--verde-claro);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.servicio-item:hover { background: rgba(74, 140, 42, 0.06); }
.servicio-item:hover::before { transform: scaleX(1); }

.servicio-icon {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  display: block;
}

.servicio-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--crema);
  margin-bottom: 0.7rem;
}

.servicio-item p {
  font-size: 0.88rem;
  color: rgba(245, 240, 232, 0.5);
  line-height: 1.7;
  font-weight: 300;
}

.servicio-num {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(122, 182, 72, 0.25);
  font-weight: 500;
}

/* ─── TECNOLOGIA ─── */
#tecnologia {
  background: var(--negro);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

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

.tec-content p {
  color: rgba(245, 240, 232, 0.55);
  line-height: 1.85;
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.tec-features {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.tec-feat {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(122, 182, 72, 0.1);
  border-radius: 2px;
  transition: border-color 0.3s, background 0.3s;
}

.tec-feat:hover {
  border-color: rgba(122, 182, 72, 0.3);
  background: rgba(74, 140, 42, 0.05);
}

.tec-feat-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tec-feat-text h4 {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--crema);
  margin-bottom: 0.25rem;
}

.tec-feat-text p {
  font-size: 0.82rem;
  color: rgba(245, 240, 232, 0.45);
  margin: 0;
  line-height: 1.6;
}

.tec-visual {
  position: relative;
}

.tec-main-card {
  background: linear-gradient(135deg, rgba(45, 92, 30, 0.4) 0%, rgba(26, 58, 26, 0.6) 100%);
  border: 1px solid rgba(122, 182, 72, 0.2);
  border-radius: 4px;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tec-main-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(74, 140, 42, 0.06) 0%, transparent 60%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1);   }
  50%       { transform: scale(1.1); }
}

.tec-main-card .big-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.tec-main-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--crema);
  margin-bottom: 0.7rem;
}

.tec-main-card p {
  font-size: 0.88rem;
  color: rgba(245, 240, 232, 0.55);
  line-height: 1.7;
}

.brand-badges {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.brand-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(122, 182, 72, 0.15);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(245, 240, 232, 0.6);
  letter-spacing: 0.05em;
}

/* ─── OBRA CIVIL ─── */
#obra {
  background: #0a150a;
  position: relative;
}

.obra-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.obra-header p {
  color: rgba(245, 240, 232, 0.55);
  line-height: 1.8;
  font-size: 1rem;
  font-weight: 300;
}

.obra-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(122, 182, 72, 0.06);
  max-width: 900px;
  margin: 0 auto;
}

.obra-item {
  background: #0a150a;
  padding: 2.5rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: background 0.3s;
}

.obra-item:hover { background: rgba(74, 140, 42, 0.07); }

.obra-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(74, 140, 42, 0.12);
  border: 1px solid rgba(122, 182, 72, 0.2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
}

.obra-item:hover .obra-icon-wrap {
  background: rgba(74, 140, 42, 0.2);
  border-color: rgba(122, 182, 72, 0.4);
}

.obra-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--crema);
  margin-bottom: 0.4rem;
}

.obra-text p {
  font-size: 0.84rem;
  color: rgba(245, 240, 232, 0.48);
  line-height: 1.7;
}

/* ─── CTA BANNER ─── */
.cta-banner {
  background: linear-gradient(135deg, var(--verde-medio) 0%, var(--verde-oscuro) 100%);
  padding: 5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '🌿';
  position: absolute;
  font-size: 20rem;
  opacity: 0.04;
  top: -4rem;
  left: -4rem;
}

.cta-banner::after {
  content: '🌿';
  position: absolute;
  font-size: 20rem;
  opacity: 0.04;
  bottom: -4rem;
  right: -4rem;
  transform: rotate(180deg);
}

.cta-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--crema);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: rgba(245, 240, 232, 0.65);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

.cta-banner a {
  position: relative;
  z-index: 1;
}

/* ─── FOOTER ─── */
footer {
  background: #080f08;
  padding: 4rem 4rem 2rem;
  border-top: 1px solid rgba(122, 182, 72, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-wrap {
  margin-bottom: 1.2rem;
  text-decoration: none;
  display: inline-flex;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(245, 240, 232, 0.45);
  line-height: 1.8;
  font-weight: 300;
  max-width: 300px;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(122, 182, 72, 0.2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
}

.social-btn:hover {
  background: rgba(74, 140, 42, 0.2);
  border-color: rgba(122, 182, 72, 0.4);
  transform: translateY(-2px);
}

.social-btn i{
 color: #4a8c2a;
}
.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--crema);
  margin-bottom: 1.2rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(122, 182, 72, 0.15);
}

.footer-col ul {
  list-style: none;
}

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

.footer-col ul li a {
  color: rgba(245, 240, 232, 0.45);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover { color: var(--verde-claro); }
.footer-col ul li a::before { content: '→'; font-size: 0.75rem; opacity: 0.4; }

.footer-contact { list-style: none !important; }

.footer-contact li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px;
  color: rgba(245, 240, 232, 0.45);
  font-size: 0.88rem;
  margin-bottom: 0.9rem;
}

.footer-contact li .ico {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-contact li a {
  color: rgba(245, 240, 232, 0.45);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact li a:hover { color: var(--verde-claro); }
.footer-contact li a::before { display: none !important; }

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: white;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.5rem;
  transition: background 0.3s, transform 0.2s;
}

.whatsapp-btn:hover {
  background: #128C7E;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(122, 182, 72, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(245, 240, 232, 0.25);
}

.footer-bottom a {
  color: var(--verde-claro);
  text-decoration: none;
  font-size: 0.78rem;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.footer-bottom a:hover { opacity: 1; }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  header { padding: 0 1.5rem; }
  nav { display: none; }

  .hero {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    padding-top: 100px;
    min-height: auto;
  }

  .hero-visual { display: none; }

  section { padding: 4rem 1.5rem; }

  #tecnologia {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 1.5rem;
  }

  .obra-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner { padding: 4rem 1.5rem; }

  footer { padding: 3rem 1.5rem 2rem; }
}


/* ══════════════════════════════════════
   BOTÓN VER TRABAJOS
══════════════════════════════════════ */
.btn-ver-trabajos {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.2rem;
  background: transparent;
  border: 1px solid rgba(122, 182, 72, 0.35);
  color: var(--verde-claro);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.45rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}

.btn-ver-trabajos:hover {
  background: rgba(122, 182, 72, 0.12);
  border-color: var(--verde-claro);
  color: #fff;
  transform: translateY(-1px);
}

/* Versión pequeña para obra-civil */
.btn-ver-trabajos.small {
  font-size: 0.72rem;
  padding: 0.35rem 0.8rem;
  margin-top: 0.8rem;
}

/* ══════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 4, 0.94);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.lightbox-window {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 0.5rem;
}

.lightbox-img-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.lightbox-img-wrap img {
  max-width: min(820px, 82vw);
  max-height: 76vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.75);
  display: block;
  transition: opacity 0.18s ease;
}

.lightbox-img-wrap img.fade { opacity: 0; }

.lightbox-caption {
  font-size: 0.88rem;
  color: rgba(245, 240, 232, 0.7);
  text-align: center;
  font-weight: 400;
}

.lightbox-counter {
  font-size: 0.72rem;
  color: rgba(245, 240, 232, 0.35);
  letter-spacing: 0.1em;
  text-align: center;
}

/* Cerrar */
.lightbox-close {
  position: absolute;
  top: -2.8rem;
  right: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(245, 240, 232, 0.2);
  color: var(--crema);
  font-size: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}

.lightbox-close:hover { background: rgba(200, 50, 50, 0.35); }

/* Flechas */
.lightbox-arrow {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(122, 182, 72, 0.2);
  color: var(--crema);
  font-size: 2.4rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.lightbox-arrow:hover {
  background: rgba(74, 140, 42, 0.3);
  border-color: rgba(122, 182, 72, 0.5);
  transform: scale(1.1);
}

/* Ocultar flechas si solo hay 1 foto */
.lightbox-arrow.hidden { visibility: hidden; }

/* Dots */
.lightbox-dots {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}

.lightbox-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(245, 240, 232, 0.22);
  transition: background 0.25s, transform 0.25s;
  cursor: pointer;
}

.lightbox-dots span.active {
  background: var(--verde-claro);
  transform: scale(1.35);
}

@media (max-width: 600px) {
  .lightbox-arrow { width: 38px; height: 38px; font-size: 1.8rem; }
  .lightbox-img-wrap img { max-width: 92vw; }
}

/* ─── VIDEO HERO ─── */
.hero-video {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Mismo z-index que hero-content para estar en la grilla correctamente */
}

.hero-video video {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  /* SIN opacity ni animation — así no hereda el fadeUp del hero */
  opacity: 1 !important;
  animation: none !important;
}


.hero-video2 {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Mismo z-index que hero-content para estar en la grilla correctamente */
}

.hero-video2 video {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  /* SIN opacity ni animation — así no hereda el fadeUp del hero */
  opacity: 1 !important;
  animation: none !important;
}

@media (max-width: 900px) {
  .hero-video {
    margin-top: 2rem;
  }
  .hero-video video {
    max-height: 50vw;
  }
 .hero-video2 {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
  }

  .hero-video2 video {
    width: 100%;
    max-width: 300px; /* mantiene el formato vertical */
    height: auto;
    border-radius: 10px;
  }
}