/* ============================================
   ISCECO S.L. — Design System
   Aerotermia · Suelo Radiante · Energía Solar
   ============================================ */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* === CSS Custom Properties === */
:root {
  /* Colors - Dark Premium Theme */
  --bg-primary: #0D1117;
  --bg-secondary: #161B22;
  --bg-tertiary: #1C2333;
  --bg-card: rgba(22, 27, 34, 0.8);
  --bg-glass: rgba(22, 27, 34, 0.6);
  
  --accent-green: #FF6B35;
  --accent-green-light: #FF8A5C;
  --accent-green-dark: #E55A2B;
  --accent-green-glow: rgba(255, 107, 53, 0.15);
  
  --accent-orange: #FF6B35;
  --accent-orange-light: #FF8A5C;
  --accent-orange-dark: #E55A2B;
  --accent-orange-glow: rgba(255, 107, 53, 0.15);
  
  --text-primary: #F0F6FC;
  --text-secondary: #8B949E;
  --text-muted: #6E7681;
  
  --border-subtle: rgba(240, 246, 252, 0.08);
  --border-default: rgba(240, 246, 252, 0.12);
  --border-emphasis: rgba(240, 246, 252, 0.2);
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0D1117 0%, #161B22 50%, #1a2332 100%);
  --gradient-green: linear-gradient(135deg, #FF6B35, #E55A2B);
  --gradient-orange: linear-gradient(135deg, #FF6B35, #FF8A5C);
  --gradient-card: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 107, 53, 0.03));
  --gradient-section: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --fs-hero: clamp(2.5rem, 6vw, 4.5rem);
  --fs-h1: clamp(2rem, 4vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.5rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow-green: 0 0 30px rgba(255, 107, 53, 0.2);
  --shadow-glow-orange: 0 0 30px rgba(255, 107, 53, 0.2);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Container */
  --container-max: 1200px;
  --container-narrow: 800px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-green);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-green-light);
}

ul, ol {
  list-style: none;
}

/* === Utility Classes === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-alt {
  background: var(--bg-secondary);
}

.text-center { text-align: center; }
.text-gradient-green {
  background: var(--gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-orange {
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.8;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--accent-green-glow);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: var(--radius-full);
  color: var(--accent-green);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

/* === HEADER / NAVBAR === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.7rem 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--accent-green);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav a {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-green);
  border-radius: 1px;
  transition: width var(--transition-base);
}

.nav a:hover {
  color: var(--text-primary);
}

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

.nav-cta {
  padding: 0.6rem 1.4rem !important;
  background: var(--gradient-green) !important;
  color: var(--bg-primary) !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  font-size: var(--fs-small) !important;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast) !important;
}

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

.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-glow-green) !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 8px 14px;
  z-index: 1001;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all var(--transition-base);
}

.menu-toggle:hover {
  background: rgba(255,255,255,0.14);
}

.menu-toggle svg {
  transition: all var(--transition-base);
}

.menu-toggle-text {
  font-family: inherit;
}

.menu-toggle.active svg {
  display: none;
}

.menu-toggle.active .menu-toggle-text::before {
  content: '✕ ';
}

/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: brightness(0.6);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 17, 23, 0.3) 0%,
    rgba(13, 17, 23, 0.6) 50%,
    var(--bg-primary) 100%
  );
}

/* Animated orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 8s ease-in-out infinite;
}

.hero-orb--green {
  width: 400px;
  height: 400px;
  background: var(--accent-green);
  top: 10%;
  right: -100px;
  animation-delay: 0s;
}

.hero-orb--orange {
  width: 300px;
  height: 300px;
  background: var(--accent-orange);
  bottom: 20%;
  left: -80px;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 750px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: var(--radius-full);
  color: var(--accent-green);
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-green);
}

.hero-stat-label {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: normal;
  word-break: break-word;
}

.btn-primary {
  background: var(--gradient-green);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
  color: var(--bg-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-emphasis);
}

.btn-secondary:hover {
  background: rgba(240, 246, 252, 0.05);
  border-color: var(--accent-green);
  color: var(--accent-green);
  transform: translateY(-2px);
}

.btn-orange {
  background: var(--gradient-orange);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
  color: white;
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
}

.btn-icon {
  font-size: 1.2rem;
}

/* === SERVICES SECTION === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-green);
  box-shadow: var(--shadow-lg), var(--shadow-glow-green);
}

.service-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.service-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, var(--bg-card));
}

.service-card-body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  margin-top: calc(var(--space-md) * -1);
  position: relative;
  z-index: 1;
}

.service-card-icon.green {
  background: var(--accent-green-glow);
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.service-card-icon.orange {
  background: var(--accent-orange-glow);
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.service-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  line-height: 1.7;
}

.service-card-features {
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-card-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.service-card-features li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 700;
  font-size: 0.8rem;
}

/* === WHY US SECTION === */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  align-items: center;
}

.why-content {
  padding-right: var(--space-xl);
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.why-feature {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.why-feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-green-glow);
  border: 1px solid rgba(255, 107, 53, 0.15);
  font-size: 1.2rem;
}

.why-feature h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.why-feature p {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.6;
}

.why-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-subtle);
}

.why-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.why-image::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), transparent 60%);
  z-index: 1;
}

/* === GALLERY === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.6));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

/* === ZONE / MAP SECTION === */
.zone-banner {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.zone-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, var(--accent-green-glow) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, var(--accent-orange-glow) 0%, transparent 50%);
  animation: float 12s ease-in-out infinite;
}

.zone-banner > * {
  position: relative;
  z-index: 1;
}

.zone-title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-sm);
}

.zone-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.zone-areas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
  margin-top: var(--space-md);
}

.zone-tag {
  padding: 0.5rem 1.2rem;
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  color: var(--text-secondary);
  font-weight: 500;
}

/* === CONTACT SECTION === */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-info {
  padding-right: var(--space-xl);
}

.contact-info h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-sm);
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-green-glow);
  border: 1px solid rgba(255, 107, 53, 0.15);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-method span {
  font-size: var(--fs-small);
  color: var(--text-muted);
  display: block;
}

.contact-method strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-green);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(240, 246, 252, 0.04);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
  background: rgba(255, 107, 53, 0.03);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238B949E' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-submit {
  width: 100%;
  margin-top: var(--space-sm);
}

.form-note {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: var(--space-sm);
  text-align: center;
}

.form-note a {
  color: var(--accent-green);
}

/* === FOOTER === */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  line-height: 1.7;
  margin-top: var(--space-sm);
  max-width: 340px;
}

.footer-links h4 {
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-green);
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-bottom p {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-md);
}

.footer-legal a {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.footer-legal a:hover {
  color: var(--accent-green);
}

/* === FLOATING CTA (Mobile) === */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm);
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  z-index: 999;
}

.floating-cta .btn {
  width: 100%;
  justify-content: center;
}

/* WhatsApp floating */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 998;
  transition: all var(--transition-base);
  text-decoration: none;
  color: white;
  font-size: 1.5rem;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
  color: white;
}

/* === SCROLL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s 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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* === LEGAL PAGES === */
.legal-page {
  padding-top: 120px;
  padding-bottom: var(--space-3xl);
}

.legal-page h1 {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-lg);
}

.legal-page h2 {
  font-size: var(--fs-h3);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  color: var(--accent-green);
}

.legal-page p {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.legal-page ul {
  list-style: disc;
  padding-left: var(--space-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.legal-page ul li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.legal-page a {
  color: var(--accent-green);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .why-content {
    padding-right: 0;
  }
  
  .why-image img {
    height: 350px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .contact-info {
    padding-right: 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-2xl) 0;
  }

  /* Mobile nav */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 80px var(--space-lg) var(--space-lg);
    transition: right var(--transition-base);
    align-items: flex-start;
    gap: var(--space-sm);
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav a {
    font-size: var(--fs-body);
    padding: 0.5rem 0;
    width: 100%;
  }
  
  .nav-cta {
    margin-top: var(--space-sm);
    text-align: center;
    width: 100% !important;
    justify-content: center;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }
  
  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: space-between;
  }

  .hero-stat {
    flex: 1 1 30%;
    text-align: center;
    min-width: 90px;
  }

  .hero-stat-value {
    font-size: 1.5rem;
  }

  .hero-stat-label {
    font-size: 0.7rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* CTAs no overflow */
  .btn-lg {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .section-cta .btn {
    max-width: calc(100vw - 3rem);
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }
  
  .floating-cta {
    display: block;
  }
  
  .whatsapp-float {
    bottom: 85px;
    right: 14px;
    width: 50px;
    height: 50px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding-bottom: 80px;
  }
  
  .zone-banner {
    padding: var(--space-lg);
  }

  /* Zonas compactas: 2 columnas */
  .zone-areas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  .zone-tag {
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
    text-align: center;
    justify-content: center;
  }

  /* Formulario compacto */
  .form-group {
    margin-bottom: 0.75rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.7rem 0.85rem;
  }

  .form-group textarea {
    min-height: 80px;
  }

  .contact-form-wrapper {
    padding: var(--space-md);
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .section-subtitle {
    margin: 0 auto var(--space-md);
  }

  .contact-info {
    padding-right: 0;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  
  .gallery-item:nth-child(1) {
    grid-column: span 2;
  }
}

/* === Cookie banner === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-md);
  z-index: 2000;
  transform: translateY(100%);
  transition: transform var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  max-width: 600px;
}

.cookie-banner a {
  color: var(--accent-green);
}

.cookie-banner .btn {
  padding: 0.5rem 1.5rem;
  font-size: var(--fs-small);
}
