/* ==========================================================================
   TERRA-RAIN - CORPORATE DESIGN SYSTEM & STYLESHEET
   Inspired by Irritec Iberia - High-Efficiency Smart Agricultural Irrigation
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* --- COLOR PALETTE & TOKENS --- */
:root {
  --primary: #0b4f28;
  --primary-light: #15803d;
  --primary-dark: #06371b;
  --primary-glow: rgba(21, 128, 61, 0.15);
  
  --secondary: #0284c7;
  --secondary-light: #38bdf8;
  --secondary-dark: #0369a1;
  --secondary-glow: rgba(2, 132, 199, 0.15);

  --accent-gold: #d97706;
  --accent-gold-light: #f59e0b;
  
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  
  --white: #ffffff;
  --black: #000000;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(11, 79, 40, 0.15), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 30px rgba(2, 132, 199, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--slate-800);
  background-color: var(--slate-50);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--slate-900);
  line-height: 1.2;
  font-weight: 700;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-glow);
  color: var(--primary-light);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid rgba(21, 128, 61, 0.2);
  margin-bottom: 12px;
}

.section-tag.cyan {
  background: var(--secondary-glow);
  color: var(--secondary);
  border-color: rgba(2, 132, 199, 0.2);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--slate-600);
  max-width: 720px;
  margin: 0 auto 40px auto;
}

.text-gradient-green {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 90px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

/* --- BUTTONS & CTAS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(11, 79, 40, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(11, 79, 40, 0.4);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
  background: var(--primary-glow);
  transform: translateY(-2px);
  color: var(--primary-dark);
}

.btn-blue {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4);
}

/* --- STICKY HEADER & NAVBAR --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: var(--transition);
}

.header.scrolled .nav-container {
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--primary-dark);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 10px rgba(11, 79, 40, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate-700);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-light);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--primary-light);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--slate-800);
  cursor: pointer;
  padding: 8px;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 130px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 52%;
  height: 100%;
  background-image: url('images/hero/H1.png');
  background-size: cover;
  background-position: center left;
  border-bottom-left-radius: var(--radius-lg);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.08);
  opacity: 0.92;
  transition: transform 0.5s ease-out;
}

.hero-bg-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(240, 253, 244, 1) 0%, rgba(240, 253, 244, 0.4) 30%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 650px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 24px;
  color: var(--slate-900);
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--slate-600);
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-md);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--primary-light);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--slate-600);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--slate-200);
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}

.hero-visual-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-visual-card:hover img {
  transform: scale(1.04);
}

.hero-live-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: var(--secondary-light);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--secondary-light);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

/* --- NUESTRA PROPUESTA --- */
.propuesta {
  background: var(--white);
}

.propuesta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.propuesta-card-visual {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 44px;
  border-radius: var(--radius-lg);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.propuesta-card-visual::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.35) 0%, rgba(0, 0, 0, 0) 70%);
}

.propuesta-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.metric-box {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.metric-box h4 {
  font-size: 1.8rem;
  color: var(--secondary-light);
  margin-bottom: 4px;
}

.metric-box p {
  font-size: 0.88rem;
  opacity: 0.9;
}

/* --- QUÉ HACEMOS (SERVICIOS) --- */
.servicios {
  background: var(--slate-50);
}

.cards-grid-6 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.card-servicio {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-servicio:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-glow);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-glow);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.card-servicio:hover .card-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.card-desc {
  color: var(--slate-600);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* --- POR QUÉ ELEGIR TERRA-RAIN --- */
.why-us {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--primary-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.why-block {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  padding: 32px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.why-block:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  border-color: var(--secondary-light);
}

.why-icon {
  font-size: 2.2rem;
  color: var(--secondary-light);
  margin-bottom: 16px;
}

.why-block h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.why-block p {
  color: var(--slate-400);
  font-size: 0.92rem;
}

/* --- DISEÑO AGRONÓMICO --- */
.agronomico {
  background: var(--white);
}

.agronomic-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.factors-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.factor-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--slate-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate-800);
}

.factor-check {
  color: var(--primary-light);
  font-size: 1.2rem;
}

.diagnostic-tool {
  background: var(--slate-50);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-md);
}

.diagnostic-tool h3 {
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.form-group-sm {
  margin-bottom: 16px;
}

.form-group-sm label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.form-select-sm, .form-input-sm {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-300);
  background: var(--white);
  outline: none;
}

.calc-result-box {
  margin-top: 20px;
  padding: 16px;
  background: var(--primary-glow);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--primary-light);
  font-size: 0.9rem;
  color: var(--primary-dark);
  font-weight: 600;
}

/* --- TECNOLOGÍA PARA EL AGRO (AGRICULTURA INTELIGENTE) --- */
.tecnologia {
  background: var(--slate-900);
  color: var(--white);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.tech-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tech-tag {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-200);
}

.dashboard-mockup {
  background: var(--slate-800);
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-700);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.dash-header {
  background: #090d16;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--slate-700);
}

.dash-dots {
  display: flex;
  gap: 8px;
}

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dash-dot.red { background: #ef4444; }
.dash-dot.yellow { background: #f59e0b; }
.dash-dot.green { background: #22c55e; }

.dash-body {
  padding: 24px;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.telemetry-card {
  background: rgba(15, 23, 42, 0.6);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-700);
}

.telemetry-card .val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--secondary-light);
}

/* --- SECTORES --- */
.sectores {
  background: var(--slate-50);
}

.sectores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.sector-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--slate-200);
  transition: var(--transition);
  text-align: center;
}

.sector-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.sector-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--primary);
}

/* --- COBERTURA REGIONAL --- */
.cobertura {
  background: var(--white);
}

.cobertura-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.countries-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.country-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--slate-50);
  border-radius: var(--radius-full);
  border: 1px solid var(--slate-200);
  font-weight: 600;
  color: var(--slate-800);
  cursor: pointer;
  transition: var(--transition);
}

.country-chip:hover, .country-chip.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.map-container {
  background: linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 100%);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.map-svg {
  width: 100%;
  max-height: 380px;
}

/* --- PROYECTOS (GALERÍA & SERVICIOS) --- */
.proyectos {
  background: var(--slate-50);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 240px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.85) 0%, rgba(0, 0, 0, 0) 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: var(--white);
}

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

.services-workflow-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--white);
  padding: 24px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.wf-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-dark);
}

.wf-arrow {
  color: var(--slate-400);
}

/* --- NUESTRO PROCESO --- */
.proceso {
  background: var(--white);
}

.process-stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 40px;
  position: relative;
}

@media (max-width: 992px) {
  .process-stepper {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: var(--slate-50);
  padding: 28px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  position: relative;
  text-align: center;
  transition: var(--transition);
}

.step-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-glow);
  color: var(--primary-light);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

/* --- SOSTENIBILIDAD --- */
.sostenibilidad {
  background: linear-gradient(135deg, #052e16 0%, #0b4f28 100%);
  color: var(--white);
}

.sostenibilidad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.eco-points {
  list-style: none;
  margin-top: 24px;
}

.eco-point {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.eco-point-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* --- CONTACTO & FORMULARIO --- */
.contacto {
  background: var(--slate-50);
}

.contacto-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
}

@media (max-width: 992px) {
  .contacto-wrapper {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

.contacto-info h2 {
  margin-bottom: 16px;
}

.contact-direct-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-glow);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-full {
  grid-column: span 2;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-300);
  background: var(--slate-50);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-light);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

/* --- FOOTER --- */
.footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 70px 0 30px 0;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links-title {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 12px;
}

.footer-links-list a:hover {
  color: var(--secondary-light);
}

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

/* --- FLOATING WHATSAPP BUTTON --- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

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

/* --- LIGHTBOX MODAL --- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.active {
  display: flex;
}

.modal-content {
  max-width: 900px;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--slate-600);
}
