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

:root {
  --primary: #0D172F;
  --primary-dark: #090f1f;
  --secondary: #3F6FC1;
  --secondary-light: rgba(63,111,193,0.08);
  --accent: #D9AF60;
  --accent-dark: #c49a4a;
  --accent-light: rgba(217,175,96,0.1);
  --text: #4A5568;
  --dark: #0D172F;
  --dark-soft: #1a2744;
  --gray: #4A5568;
  --gray-light: #718096;
  --light-gray: #F5F7FA;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(13,23,47,0.05);
  --shadow-md: 0 8px 24px rgba(13,23,47,0.07);
  --shadow-lg: 0 16px 48px rgba(13,23,47,0.1);
  --shadow-xl: 0 24px 64px rgba(13,23,47,0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== HEADER / NAV ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--primary);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  background: var(--primary-dark);
}

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

.header .logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header .logo img {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: -0.01em;
  position: relative;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-links a.active {
  color: var(--accent);
  font-weight: 600;
}

.nav-links .btn-nav {
  background: var(--accent);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-left: 12px;
  letter-spacing: 0;
  box-shadow: 0 2px 8px rgba(217,175,96,0.3);
}

.nav-links .btn-nav:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(217,175,96,0.4);
}

.nav-links .btn-login {
  background: transparent;
  color: rgba(255,255,255,0.8);
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-left: 4px;
  border: 1.5px solid rgba(255,255,255,0.2);
  transition: all var(--transition);
}

.nav-links .btn-login:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(217,175,96,0.08);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: background var(--transition);
}

.menu-toggle:hover {
  background: var(--light-gray);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  position: relative;
  background: var(--primary);
  padding: 140px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 70% 60% at 75% 10%, rgba(63,111,193,0.30) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 90% 85%, rgba(217,175,96,0.14) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 5% 90%, rgba(63,111,193,0.14) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1.4px),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 24px 24px, 48px 48px, 48px 48px;
  mask-image: radial-gradient(ellipse 85% 75% at 60% 35%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 60% 35%, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Optional: when an AI-generated hero image is ready, add class "has-bg"
   to <section class="hero"> and drop the file at img/hero-bg.jpg.
   It will blend in subtly behind the CSS gradients. */
.hero.has-bg {
  background:
    linear-gradient(160deg, rgba(13,23,47,0.82) 0%, rgba(13,23,47,0.92) 100%),
    var(--primary) url('../img/hero-bg.jpg') center/cover no-repeat;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  position: relative;
  flex-shrink: 0;
}

.pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #4ade80;
  animation: pulseRing 1.8s ease-out infinite;
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(3); opacity: 0; }
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-align: left;
  background: linear-gradient(135deg, var(--white) 0%, rgba(255,255,255,0.82) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.18rem);
  opacity: 0.72;
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 500px;
  font-weight: 400;
  text-align: left;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== DASHBOARD MOCKUP ===== */
.hero-visual {
  position: relative;
}

.dashboard {
  background: linear-gradient(160deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dash-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}

.dash-period {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 3px;
}

.dp-btn {
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: inherit;
  padding: 5px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: -0.01em;
}

.dp-btn:hover {
  color: var(--white);
}

.dp-btn.active {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(63,111,193,0.4);
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.dash-metric {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dm-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dm-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.dm-trend {
  font-size: 0.68rem;
  font-weight: 600;
}

.dm-trend.up { color: #4ade80; }
.dm-trend.down { color: #f87171; }

.dash-chart {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.dash-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}

.dash-tag {
  font-size: 0.65rem;
  color: var(--accent);
  background: rgba(217,175,96,0.12);
  padding: 3px 8px;
  border-radius: 4px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
}

.bars span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--secondary) 0%, rgba(63,111,193,0.4) 100%);
  border-radius: 5px 5px 0 0;
  animation: barGrow 1s cubic-bezier(0.4,0,0.2,1) backwards;
  transition: height 0.5s cubic-bezier(0.4,0,0.2,1);
}

.bars span.peak {
  background: linear-gradient(180deg, var(--accent) 0%, rgba(217,175,96,0.4) 100%);
}

@keyframes barGrow {
  from { height: 0; opacity: 0; }
}

.bar-labels {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.bar-labels span {
  flex: 1;
  text-align: center;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.02em;
}

.dash-sentiment {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}

.sent-row b {
  color: var(--white);
  font-weight: 700;
  min-width: 32px;
  text-align: right;
}

.sent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sent-dot.pos { background: #4ade80; }
.sent-dot.neu { background: var(--accent); }
.sent-dot.neg { background: #f87171; }

.sent-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  overflow: hidden;
}

.sent-bar i {
  display: block;
  height: 100%;
  border-radius: 100px;
  background: currentColor;
  width: 0;
  transition: width 0.7s cubic-bezier(0.4,0,0.2,1);
}

.sent-row:nth-child(1) .sent-bar i { background: #4ade80; }
.sent-row:nth-child(2) .sent-bar i { background: var(--accent); }
.sent-row:nth-child(3) .sent-bar i { background: #f87171; }

/* Dashboard status footer */
.dash-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #4ade80;
  background: rgba(74,222,128,0.1);
  padding: 4px 10px;
  border-radius: 100px;
}

.dash-updated {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
}

/* Floating cards */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  animation: floaty 4s ease-in-out infinite;
}

.float-card strong {
  display: block;
  font-size: 0.78rem;
  color: var(--dark);
  font-weight: 700;
}

.float-card small {
  font-size: 0.68rem;
  color: var(--gray-light);
}

.fc-icon {
  font-size: 1.1rem;
}

.float-1 {
  top: -34px;
  left: -84px;
  animation-delay: 0s;
}

.float-2 {
  bottom: -58px;
  right: 24px;
  animation-delay: 1.5s;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--primary-dark);
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-value {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: -0.01em;
  position: relative;
}

.btn-primary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(63,111,193,0.25);
}

.btn-primary:hover {
  background: #345da6;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(63,111,193,0.35);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(217,175,96,0.25);
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217,175,96,0.35);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}

/* ===== HERO INTERIOR ===== */
.hero-interior {
  padding: 150px 32px 80px;
  text-align: center;
  color: var(--white);
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.hero-interior::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(63,111,193,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero-interior h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  position: relative;
}

.hero-interior .hero-badge {
  margin-bottom: 20px;
}

.hero-interior p {
  font-size: 1.15rem;
  opacity: 0.7;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
}

/* ===== SECTIONS ===== */
.section {
  padding: 120px 0;
}

.section-alt {
  background: var(--light-gray);
}

.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 64px;
  color: var(--dark);
  letter-spacing: -0.04em;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  margin: 20px auto 0;
  border-radius: 3px;
}

/* ===== DESCUBRE (3 pasos) ===== */
.steps {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.step {
  display: flex;
  align-items: center;
  gap: 72px;
}

.step:nth-child(even) {
  flex-direction: row-reverse;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.step-content h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 12px;
  vertical-align: middle;
}

.step-content p {
  color: var(--gray);
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.step-content p:last-child {
  margin-bottom: 0;
}

.step-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.step-img img {
  max-width: 400px;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
}

.step:hover .step-img img {
  transform: scale(1.02);
}

/* ===== SERVICIOS GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 28px 36px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card img {
  width: 68px;
  height: 68px;
  margin-bottom: 24px;
  object-fit: contain;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 28px;
  line-height: 1.7;
  flex-grow: 1;
}

.service-card .btn {
  font-size: 0.85rem;
  padding: 10px 24px;
  border-radius: 8px;
}

/* ===== TESTIMONIOS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.testimonial:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.testimonial::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.25;
  position: absolute;
  top: 16px;
  left: 28px;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial blockquote {
  font-style: italic;
  color: var(--gray);
  margin-bottom: 28px;
  font-size: 0.9rem;
  line-height: 1.75;
  flex-grow: 1;
  padding-top: 12px;
}

.testimonial-author {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.9rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--gray-light);
  margin-top: 4px;
}

.testimonials-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-light);
  margin-top: 32px;
  font-style: italic;
}

/* ===== CTA ===== */
.cta {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 100px 32px;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 60% at 20% 50%, rgba(63,111,193,0.15) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 80% 50%, rgba(217,175,96,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  position: relative;
}

.cta p {
  opacity: 0.75;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  position: relative;
}

.cta .btn {
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  padding: 16px 40px;
  font-size: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(217,175,96,0.3);
  position: relative;
}

.cta .btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(217,175,96,0.4);
}

/* ===== CONTENT PAGE ===== */
.content-section {
  padding: 80px 0;
}

.content-section .container {
  max-width: 760px;
}

.content-section p {
  color: var(--gray);
  margin-bottom: 28px;
  font-size: 1.05rem;
  line-height: 1.85;
}

.content-section p:last-child {
  margin-bottom: 0;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.55);
  padding: 80px 0 36px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(63,111,193,0.3), rgba(217,175,96,0.3), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 48px;
}

.footer h4 {
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer p,
.footer a {
  font-size: 0.9rem;
  line-height: 1.8;
}

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

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

.footer-links a {
  display: inline-block;
  padding: 2px 0;
  transition: all var(--transition);
}

.footer-links a:hover {
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 28px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer .logo-footer {
  height: 32px;
  margin-bottom: 18px;
  opacity: 0.8;
}

/* ===== CONTACTO ===== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 640px;
  margin: 0 auto;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 28px;
  text-align: center;
  transition: all var(--transition);
}

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

.cc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  font-size: 1.6rem;
  background: var(--light-gray);
  border-radius: 50%;
  margin-bottom: 20px;
}

.contact-card h3 {
  color: var(--dark);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.contact-card p {
  font-size: 0.95rem;
  color: var(--gray);
}

.contact-card a {
  color: var(--secondary);
  font-weight: 600;
}

.contact-card a:hover {
  color: var(--accent);
}

/* ===== SERVICE DETAIL ===== */
.service-detail {
  display: flex;
  align-items: center;
  gap: 72px;
}

.service-detail.reverse {
  flex-direction: row-reverse;
}

.service-detail-content {
  flex: 1.1;
}

.service-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  background: var(--secondary-light);
  padding: 5px 14px;
  border-radius: 6px;
  margin-bottom: 18px;
}

.service-detail-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.service-detail-content p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.service-detail-content .btn {
  margin-top: 16px;
}

.service-detail-img {
  flex: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-detail-img img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition);
}

.service-detail:hover .service-detail-img img {
  transform: scale(1.02);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 16px 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    gap: 4px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius);
    width: 100%;
  }

  .nav-links .btn-nav {
    margin-left: 0;
    margin-top: 12px;
    text-align: center;
    width: 100%;
  }

  .nav-links .btn-login {
    margin-left: 0;
    margin-top: 4px;
    text-align: center;
    width: 100%;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 70px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero h1,
  .hero p {
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .float-card {
    display: none;
  }

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

  .section {
    padding: 80px 0;
  }

  .section-title {
    margin-bottom: 48px;
  }

  .step,
  .step:nth-child(even) {
    flex-direction: column;
    text-align: center;
    gap: 36px;
  }

  .step-content h3::before {
    display: none;
  }

  .step-img img {
    max-width: 300px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

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

  .contact-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-interior {
    padding: 130px 20px 60px;
  }

  .service-detail,
  .service-detail.reverse {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .service-detail-img img {
    max-width: 340px;
  }

  .cta {
    padding: 72px 20px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .cta {
    padding: 60px 20px;
  }
}

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .service-card,
  .testimonial,
  .step {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
  }

  .service-card:nth-child(1) { animation-delay: 0.1s; }
  .service-card:nth-child(2) { animation-delay: 0.2s; }
  .service-card:nth-child(3) { animation-delay: 0.3s; }
  .service-card:nth-child(4) { animation-delay: 0.4s; }

  .testimonial:nth-child(1) { animation-delay: 0.1s; }
  .testimonial:nth-child(2) { animation-delay: 0.2s; }
  .testimonial:nth-child(3) { animation-delay: 0.3s; }

  .step:nth-child(1) { animation-delay: 0.1s; }
  .step:nth-child(2) { animation-delay: 0.2s; }
  .step:nth-child(3) { animation-delay: 0.3s; }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
