:root {
  /* Premium Palette */
  --nav-bg: rgba(7, 16, 27, 0.85);
  --dark: #050b14;
  --dark-surface: #0a1421;
  --dark-accent: #0f1c2d;
  --gold: #D4AF37;
  --gold-glow: #d4af3733;
  --light: #F8F9FA;
  --white: #FFFFFF;
  --gray-text: #a4b1be;
  --danger-red: #E63946;
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;

  /* FX Variables */
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-blur: blur(16px);
}

/* Bilingual Engine */
[data-lang="en"] .lang-es { display: none !important; }
[data-lang="es"] .lang-en { display: none !important; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); color: var(--white); background-color: var(--dark);
  line-height: 1.6; overflow-x: hidden; position: relative;
}

/* Base Typography */
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; letter-spacing: 1px; }
.pb-md { padding-bottom: 60px; }

/* 4. Ambient Halos */
.ambient-light {
  position: fixed; border-radius: 50%; filter: blur(120px); z-index: -1; pointer-events: none;
}
.light-1 { top: -10%; left: -10%; width: 600px; height: 600px; background: rgba(15, 28, 45, 0.8); }
.light-2 { top: 40%; right: -20%; width: 800px; height: 800px; background: rgba(212, 175, 55, 0.06); }
.light-3 { bottom: -10%; left: 20%; width: 700px; height: 700px; background: rgba(15, 28, 45, 0.7); }

.container { max-width: 1400px; margin: 0 auto; padding: 0 5%; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* 5. Buttons & Microanimations */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 36px; font-family: var(--font-body); font-weight: 600; font-size: 1.05rem;
  border-radius: 4px; transition: var(--transition); cursor: pointer; border: none;
  position: relative; overflow: hidden; text-align: center;
}
.btn-gold {
  background: linear-gradient(135deg, #F8E28B 0%, #D4AF37 50%, #aa8b2b 100%);
  color: #050b14; box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}
.btn-gold:hover {
  transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}
.btn-dark {
  background: var(--dark-accent); color: var(--white); border: 1px solid rgba(255,255,255,0.1);
}
.btn-dark:hover {
  background: var(--white); color: var(--dark); transform: translateY(-2px);
}
.btn-massive { padding: 20px 50px; font-size: 1.2rem; }

.btn-glass { background: var(--glass-bg); backdrop-filter: var(--glass-blur); border: var(--glass-border); color: var(--white); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--gold); color: var(--gold); transform: translateX(5px); }

/* Shimmer Animation */
.shimmer-btn::after {
  content: ''; position: absolute; top: -50%; left: -50%; width: 20%; height: 200%;
  background: rgba(255,255,255,0.5); transform: rotate(30deg); transition: opacity 0.3s;
  animation: shimmer 3s infinite linear;
}
@keyframes shimmer {
  0% { left: -50%; opacity: 0; }
  5% { opacity: 1; }
  15% { left: 150%; opacity: 0; }
  100% { left: 150%; opacity: 0; }
}

.arrow-icon { transition: transform 0.3s ease; }
.btn:hover .arrow-icon { transform: translateX(5px); }

.pulse-fx { animation: pulsing 2s infinite; }
.pulse-fx-fast { animation: pulsing 1.5s infinite; }
@keyframes pulsing {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Gradient Text */
.gold-gradient-text {
  background: linear-gradient(135deg, #F8E28B 0%, #D4AF37 50%, #aa8b2b 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent; /* Fallback */
}

/* Badges y Urgencia */
.hero-badges { display: flex; gap: 15px; margin-bottom: 25px; flex-wrap: wrap; align-items: center; }
.glass-badge {
  background: var(--glass-bg); backdrop-filter: var(--glass-blur); border: var(--glass-border);
  padding: 8px 16px; border-radius: 30px; font-size: 0.85rem; letter-spacing: 1px; color: var(--white);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.urgency-badge {
  background: rgba(230, 57, 70, 0.15); border: 1px solid rgba(230, 57, 70, 0.4); color: #ffebef;
  padding: 8px 16px; border-radius: 30px; font-size: 0.85rem; letter-spacing: 1px; font-weight: 600;
  display: flex; align-items: center; gap: 8px; box-shadow: 0 0 15px rgba(230, 57, 70, 0.2);
}
.urgency-badge .dot {
  width: 8px; height: 8px; background: var(--danger-red); border-radius: 50%; box-shadow: 0 0 10px var(--danger-red);
}
.mini-friction-text { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-top: 15px; font-weight: 300; }

/* Mini Feature Cards (Floating in About) */
.mini-feature {
  position: absolute; background: var(--glass-bg); backdrop-filter: var(--glass-blur); border: var(--glass-border);
  padding: 12px 24px; border-radius: 40px; font-size: 0.95rem; color: var(--gold); font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3); z-index: 10; animation: floatUp 6s infinite ease-in-out;
}
.float-1 { top: 15%; left: 5%; animation-delay: 0s; }
.float-2 { bottom: 25%; right: 5%; animation-delay: 2s; }

@keyframes floatUp {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Header */
header {
  position: fixed; top: 0; width: 100%; z-index: 900; backdrop-filter: var(--glass-blur);
  background: transparent; border-bottom: 1px solid transparent; transition: var(--transition);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 100px; transition: height 0.4s ease; }
.header-scrolled .header-inner { height: 80px; }
.header-scrolled { background: var(--nav-bg); border-bottom: var(--glass-border); }

.logo img { height: 50px; border-radius: 2px; }

.nav-desktop ul { display: flex; list-style: none; gap: 40px; }
.nav-desktop a { font-size: 0.95rem; letter-spacing: 1px; text-transform: uppercase; color: var(--white); transition: var(--transition); position: relative; }
.nav-desktop a::after { content: ''; position: absolute; width: 0%; height: 1px; bottom: -5px; left: 0; background: var(--gold); transition: var(--transition); }
.nav-desktop a:hover { color: var(--gold); }
.nav-desktop a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 20px; }

.lang-switch {
  background: none; border: 1px solid rgba(255,255,255,0.2); color: var(--white);
  padding: 6px 14px; font-family: var(--font-body); font-size: 0.8rem; border-radius: 4px; cursor: pointer; transition: var(--transition);
}
.lang-switch:hover { border-color: var(--gold); color: var(--gold); background: rgba(212,175,55,0.05); }

/* Mobile Menu */
.mobile-toggle { display: none; background: none; border: none; color: var(--white); font-size: 2rem; cursor: pointer; z-index: 1000; }
.mobile-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(5, 11, 20, 0.95);
  backdrop-filter: blur(25px); z-index: 999; display: flex; flex-direction: column; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s ease;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }
.close-menu { position: absolute; top: 40px; right: 5%; background: none; border: none; color: var(--white); font-size: 2.5rem; cursor: pointer; transition: transform 0.3s; }
.close-menu:hover { transform: rotate(90deg); color: var(--gold); }

.mobile-nav-list { list-style: none; text-align: center; }
.mobile-nav-list li { margin: 30px 0; transform: translateY(20px); opacity: 0; transition: all 0.5s ease; }
.mobile-menu-overlay.active .mobile-nav-list li { transform: translateY(0); opacity: 1; }
.mobile-menu-overlay.active .mobile-nav-list li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-nav-list li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-nav-list li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-nav-list li:nth-child(4) { transition-delay: 0.4s; }

.mob-link { font-family: var(--font-heading); font-size: 2.5rem; color: var(--white); }
.mob-link:hover { color: var(--gold); }
.btn-gold-text { color: var(--gold) !important; font-style: italic; }

/* Sticky Mobile CTA (Aggressive Conversion) */
.sticky-mobile-call {
  position: fixed; bottom: 0; left: 0; width: 100%; padding: 20px;
  background: var(--gold); color: #050b14; font-weight: 700; font-size: 1.1rem;
  text-align: center; z-index: 1000; box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
  display: none; /* Block on mobile screens */
}

/* 2. Parallax Suave & Hero */
.hero { height: auto; min-height: 100vh; padding: 160px 0 120px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 110%; /* Extra height for parallax */
  background: url('./seamless_gutters_1776124067258.png') center/cover no-repeat; background-attachment: fixed; z-index: 1;
}
.hero-overlay-grad {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(5,11,20,0.6) 0%, rgba(5,11,20,0.95) 100%); z-index: 2;
}
.hero-content { position: relative; z-index: 3; width: 100%; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 80px; }

.hero-text h1 { font-family: var(--font-heading); font-size: 4.8rem; line-height: 1.1; margin-bottom: 25px; }
.hero-text p { font-size: 1.3rem; color: var(--gray-text); margin-bottom: 30px; font-weight: 300; max-width: 90%; }
.hero-buttons { display: flex; gap: 20px; }

/* Quote Card */
.hero-quote-card {
  background: rgba(20, 30, 45, 0.4); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255,255,255,0.08); padding: 50px; border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  position: relative; overflow: hidden;
}
.glass-shine {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 60%); pointer-events: none;
}
.hero-quote-card h3 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 15px; color: var(--white); }
.hero-quote-card p { color: var(--gray-text); margin-bottom: 30px; font-size: 1rem; }
.form-group { margin-bottom: 18px; }
.form-group input {
  width: 100%; padding: 18px; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1);
  color: var(--white); font-family: var(--font-body); border-radius: 4px; transition: var(--transition);
}
.form-group input:focus {
  outline: none; border-color: var(--gold); background: rgba(0,0,0,0.6); box-shadow: 0 0 15px rgba(212,175,55,0.1);
}
.submit-btn { width: 100%; margin-top: 15px; }
.form-group-flex { display: flex; gap: 10px; }

/* Separador de Onda */
.wave-separator { position: absolute; bottom: -1px; left: 0; width: 100%; overflow: hidden; line-height: 0; z-index: 5; }
.wave-separator svg { display: block; width: calc(100% + 1.3px); height: 60px; transform: rotateY(180deg); }
.wave-separator .shape-fill { fill: var(--dark-surface); }

/* Trust Signals Glass Bar */
.trust-bar-section { background: var(--dark-surface); padding: 20px 0 60px; position: relative; z-index: 10; }
.trust-glass-bar {
  background: var(--glass-bg); backdrop-filter: var(--glass-blur); border: var(--glass-border);
  padding: 40px; border-radius: 12px; display: flex; justify-content: space-around; align-items: center;
  transform: translateY(-40px); box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.trust-item { text-align: center; }
.trust-item h4 { font-family: var(--font-heading); font-size: 3rem; color: var(--gold); margin-bottom: 5px; }
.trust-item p { color: var(--gray-text); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 2px; }
.trust-separator { width: 1px; height: 60px; background: rgba(255,255,255,0.1); }

/* WOW Slider (Before/After) */
.wow-slider-section { background: var(--dark-surface); padding: 40px 0 120px; }
.ba-slider {
  position: relative; width: 100%; max-width: 900px; margin: 0 auto; height: 500px;
  overflow: hidden; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  cursor: ew-resize;
}
.ba-after, .ba-before {
  position: absolute; top:0; left:0; width:100%; height:100%; overflow: hidden;
}
.ba-after img, .ba-before img {
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none; max-width: none;
}
.ba-before {
  width: 100%; /* Cover entire box */
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); /* clip from right */
}
/* No longer need filter, using real damaged gutter photo */
.ba-before img { filter: none; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: var(--gold);
  transform: translateX(-50%); pointer-events: none;
  display: flex; justify-content: center; align-items: center; z-index: 5;
}
.ba-arrows {
  width: 40px; height: 40px; background: var(--gold); border-radius: 50%;
  color: #050b14; display: flex; justify-content: center; align-items: center; font-weight: bold; font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}
.ba-label {
  position: absolute; top: 20px; padding: 6px 15px; background: rgba(0,0,0,0.6);
  color: #fff; font-size: 0.85rem; font-weight: bold; border-radius: 4px; letter-spacing: 1px; backdrop-filter: blur(4px);
}
.ba-label-after { right: 20px; }
.ba-label-before { left: 20px; }

/* Z-Pattern About */
.about { padding: 80px 0; background: var(--dark-surface); position: relative; }
.z-pattern-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.z-pattern-row.reverse { grid-template-columns: 1fr 1.1fr; }
.mb-xl { margin-bottom: 120px; }
.mt-md { margin-top: 30px; }

.about-text h2 { font-family: var(--font-heading); font-size: 3.5rem; margin-bottom: 30px; line-height: 1.1; }
.about-text p { color: var(--gray-text); font-size: 1.15rem; margin-bottom: 30px; font-weight: 300; }
.feature-list { list-style: none; }
.feature-list li { font-size: 1.1rem; margin-bottom: 20px; display: flex; align-items: flex-start; gap: 15px; color: var(--white); }
.gold-bullet { color: var(--gold); font-size: 1.4rem; line-height: 1; }

.cinematic-img { position: relative; overflow: hidden; border-radius: 8px; }
.cinematic-img img { width: 100%; height: 500px; object-fit: cover; transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.cinematic-img:not(.ba-after):not(.ba-before):hover img { transform: scale(1.08); }
.vignette-overlay { position: absolute; top:0; left:0; width:100%; height:100%; box-shadow: inset 0 0 80px rgba(5,11,20,0.8); pointer-events: none; }
.img-glow-fx { position: absolute; top:0; left:0; width:100%; height:100%; box-shadow: 0 0 50px rgba(212, 175, 55, 0); transition: var(--transition); border-radius: 8px; z-index: 10; pointer-events: none; }
.cinematic-img:hover .img-glow-fx { box-shadow: 0 0 40px rgba(212, 175, 55, 0.2); border: 1px solid rgba(212, 175, 55, 0.3); }

/* Testimonials / Social Proof (The Trust Factory) */
.testimonials-section {
  padding: 120px 0; background: var(--dark); position: relative;
}
.diagonal-bg { position: absolute; top: -100px; left: 0; width: 100%; height: 200px; background: var(--dark); transform: skewY(-3deg); z-index: 1; }
.diagonal-bg-reverse { position: absolute; top: -100px; left: 0; width: 100%; height: 200px; background: var(--dark-surface); transform: skewY(3deg); z-index: 1; }

.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px;
}
.review-card {
  background: var(--glass-bg); backdrop-filter: var(--glass-blur); border: var(--glass-border);
  padding: 40px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: var(--transition);
}
.review-card:hover { transform: translateY(-10px) !important; border-color: var(--gold); }
.stars { color: var(--gold); font-size: 1.2rem; margin-bottom: 20px; letter-spacing: 4px;}
.review-text { font-style: italic; color: var(--white); font-size: 1.05rem; margin-bottom: 30px; font-weight: 300;}
.reviewer { display: flex; align-items: center; gap: 15px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;}
.reviewer-avatar { width: 45px; height: 45px; border-radius: 50%; background: var(--dark-accent); display: flex; justify-content: center; align-items: center; font-family: var(--font-heading); color: var(--gold); font-size: 1.2rem; font-weight: bold;}
.reviewer-info strong { display: block; font-size: 1.05rem;}
.reviewer-info span { font-size: 0.8rem; color: #2ecc71; text-transform: uppercase; letter-spacing: 1px; font-weight: 600;}

/* Services */
.services { padding: 120px 0 160px; background: var(--dark-surface); position: relative; }
.pos-relative { position: relative; z-index: 2; }
.section-title { text-align: center; margin-bottom: 80px; }
.section-title h2 { font-family: var(--font-heading); font-size: 3.5rem; margin-bottom: 20px; }
.section-title p { color: var(--gray-text); font-size: 1.2rem; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.service-card { height: 450px; background: #000; }
.service-card img.pan-fx { height: 100%; opacity: 0.6; }
.service-card:hover img.pan-fx { opacity: 0.9; }
.service-overlay-grad { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(5,11,20,1) 0%, rgba(5,11,20,0.1) 80%); pointer-events: none; }
.service-card-content { position: absolute; bottom: 0; left: 0; padding: 40px; transform: translateY(30px); transition: var(--transition); }
.service-card:hover .service-card-content { transform: translateY(0); }
.service-gold-line { width: 40px; height: 2px; background: var(--gold); margin-bottom: 20px; transition: width 0.4s ease; }
.service-card:hover .service-gold-line { width: 80px; }
.service-card-content h3 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 15px; }
.service-card-content p { color: var(--gray-text); font-size: 1rem; opacity: 0.4; transition: var(--transition); }
.service-card:hover .service-card-content p { opacity: 1; }

/* CTA Bar */
.cta-bar { padding: 120px 0; background: url('./water_downspout_1776124109435.png') center/cover no-repeat; position: relative; background-attachment: fixed; }
.cta-bar::before { content:''; position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(212,175,55,0.85); backdrop-filter: blur(10px); }
.cta-bar .container { position: relative; z-index: 2; color: #050b14; }
.cta-bar h2 { font-family: var(--font-heading); font-size: 4rem; margin-bottom: 25px; }
.cta-bar p { font-size: 1.3rem; margin-bottom: 40px; font-weight: 500; }

/* Footer */
footer { background: #020509; padding: 100px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 80px; margin-bottom: 80px; }
.footer-logo { height: 60px; margin-bottom: 25px; }
.footer-desc p { color: var(--gray-text); font-weight: 300; font-size: 1.05rem; max-width: 80%; }
.footer-links h4 { font-family: var(--font-heading); font-size: 1.6rem; margin-bottom: 30px; color: var(--white); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 15px; }
.hover-gold-link { color: var(--gray-text); transition: var(--transition); font-size: 1.05rem; }
.hover-gold-link:hover { color: var(--gold); padding-left: 5px; }
.copyright { text-align: center; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.05); color: rgba(255,255,255,0.3); font-size: 0.95rem; }

/* Global Animations (AOS replacement) */
.fade-in { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .hero-text h1 { font-size: 4rem; }
  .trust-glass-bar { flex-wrap: wrap; gap: 30px; padding: 30px; }
  .trust-separator { display: none; }
}

@media (max-width: 992px) {
  .hero-content { grid-template-columns: 1fr; gap: 50px; text-align: center; padding-bottom: 50px;}
  .hero-badges { justify-content: center; }
  .hero-text p { margin: 0 auto 30px; }
  .hero-buttons { justify-content: center; }
  .hero-quote-card { max-width: 700px; margin: 0 auto; text-align: left; }
  
  .z-pattern-row, .z-pattern-row.reverse { grid-template-columns: 1fr; gap: 50px; }
  .about-img img { height: 400px; }
  
  .service-grid, .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 50px; }
  
  .ba-after img, .ba-before img { width: 100%; height: 100%;}
  .ba-slider { height: 400px; }
  .form-group-flex { flex-direction: column; gap: 18px; }
  .review-card { transform: none !important; }
}

@media (max-width: 768px) {
  .nav-desktop, .header-actions { display: none; }
  .mobile-toggle { display: block; }
  .trust-glass-bar { flex-direction: column; text-align: center; }
  .service-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 2.8rem; line-height: 1.2; }
  .cta-bar h2 { font-size: 2.8rem; }
  .hero-buttons { flex-direction: column; }
  
  /* Activate Sticky Mobile CTA */
  .sticky-mobile-call { display: block; }
  footer { padding-bottom: 120px; /* Make room for sticky bar */ }
  .ba-slider { height: 300px; }
  .mini-feature { display: none; } /* Hide mini cards to avoid crowding */
}
