/* ==============================================================================
   INFLUDIGITAL WEBS — DESIGN SYSTEM & CORE STYLESHEET
   Vanilla CSS — Ultra Performance & Modern Dark Glassmorphism
   Author: InfluDigital Webs (Jordi Iborra Lucas)
   ============================================================================== */

/* --- CSS VARIABLES & TOKENS --- */
:root {
  /* Color Palette */
  --bg-main: #07090e;
  --bg-surface: #0e131f;
  --bg-surface-elevated: #151d2f;
  --bg-card: rgba(20, 29, 47, 0.7);
  --bg-card-hover: rgba(28, 40, 65, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.3);
  --border-active: #00f2fe;

  /* Primary & Accent Gradients */
  --primary: #00f2fe;
  --primary-hover: #4facfe;
  --accent-purple: #7928ca;
  --accent-blue: #0070f3;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --gradient-brand: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --gradient-glow: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(79, 172, 254, 0.05) 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  --gradient-neon-text: linear-gradient(135deg, #00f2fe 0%, #38bdf8 50%, #818cf8 100%);

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dark: #0f172a;

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --glow-cyan: 0 0 25px rgba(0, 242, 254, 0.25);
  --glow-cyan-strong: 0 0 40px rgba(0, 242, 254, 0.45);

  /* Layout & Geometry */
  --container-max: 1200px;
  --container-wide: 1320px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
}

body {
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 242, 254, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(79, 172, 254, 0.04) 0%, transparent 45%);
  background-attachment: fixed;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

/* --- ACCESSIBILITY --- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--primary);
  color: var(--text-dark);
  padding: 10px 18px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 20px;
}

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

h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h4 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.lead {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
}

.text-gradient {
  background: var(--gradient-neon-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-white { color: #ffffff !important; }
.text-cyan { color: var(--primary) !important; }
.text-emerald { color: var(--accent-emerald) !important; }
.text-center { text-align: center; }

/* --- CONTAINERS & LAYOUT --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 100px;
  padding-bottom: 100px;
  position: relative;
}

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

.section-alt {
  background: rgba(14, 19, 31, 0.6);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.section-header h2 {
  margin-top: 12px;
  margin-bottom: 16px;
}

.badge-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-label svg {
  width: 15px;
  height: 15px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: normal;
  text-align: center;
  max-width: 100%;
  word-break: break-word;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--text-dark);
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 242, 254, 0.5);
  color: var(--text-dark);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #fff;
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  animation: pulseWa 2s infinite;
}

.btn-whatsapp svg {
  width: 26px;
  height: 26px;
  transition: transform 0.3s ease;
}

.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
  color: #ffffff;
  animation: none;
}

.btn-whatsapp:hover svg {
  transform: scale(1.1);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  transition: all var(--transition-normal);
  background: rgba(7, 9, 14, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header.scrolled {
  height: 70px;
  background: rgba(7, 9, 14, 0.95);
  border-bottom-color: rgba(0, 242, 254, 0.15);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

@media (max-width: 991px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(14, 19, 31, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-actions .btn-primary {
    display: none;
  }
}

/* --- HERO SECTION --- */
.hero-section {
  padding-top: 150px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 991px) {
  .hero-section {
    padding-top: 110px;
    padding-bottom: 60px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

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

.hero-content h1 {
  margin-bottom: 24px;
}

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

.hero-guarantees {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-guarantees span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-visual {
  position: relative;
}

.hero-card-preview {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-card-preview::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.4), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.code-window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.code-dot-red { background: #ff5f56; }
.code-dot-yellow { background: #ffbd2e; }
.code-dot-green { background: #27c93f; }

.code-window-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.code-snippet {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #a5b4fc;
}
.code-snippet .keyword { color: #f43f5e; }
.code-snippet .func { color: #38bdf8; }
.code-snippet .string { color: #4ade80; }
.code-snippet .comment { color: #64748b; font-style: italic; }

.hero-metric-badge {
  position: absolute;
  bottom: -20px;
  right: -10px;
  background: #0f172a;
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), var(--glow-cyan);
  display: flex;
  align-items: center;
  gap: 12px;
}

.metric-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #10b981;
}

/* --- TRUST BAR --- */
.trust-bar {
  background: rgba(14, 19, 31, 0.8);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 0;
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.trust-item h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}
.trust-item p {
  font-size: 0.85rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* --- CARDS & GRIDS --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md), var(--glow-cyan);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 22px;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.feature-card ul {
  list-style: none;
  margin-top: 16px;
  margin-bottom: 20px;
}

.feature-card ul li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.feature-card ul li svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* --- SELECTOR GRID ("¿Qué necesita tu negocio?") --- */
.need-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.need-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition-fast);
  cursor: pointer;
  display: block;
}

.need-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  background: rgba(0, 242, 254, 0.05);
}

.need-item h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.need-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- PORTFOLIO SHOWCASE --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

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

.portfolio-img-wrapper {
  position: relative;
  background: #090d16;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.portfolio-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.portfolio-card:hover .portfolio-img-wrapper img {
  transform: scale(1.04);
}

.portfolio-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(14, 19, 31, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.portfolio-body {
  padding: 24px;
}

.portfolio-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.portfolio-tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- REVIEWS / TESTIMONIALS --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
}

.review-stars {
  color: #fbbf24;
  margin-bottom: 14px;
  display: flex;
  gap: 3px;
}

.review-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--text-secondary);
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.reviewer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--text-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.reviewer-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.reviewer-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- FOUNDER PROFILE (JORDI IBORRA LUCAS) --- */
.founder-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.founder-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.founder-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 991px) {
  .founder-box {
    padding: 28px;
  }
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.founder-visual {
  text-align: center;
}

.founder-avatar-frame {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  padding: 4px;
  background: var(--gradient-brand);
  box-shadow: var(--glow-cyan);
}

.founder-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #090d16;
}

.skills-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.skill-pill {
  background: rgba(0, 242, 254, 0.07);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

/* --- FAQ ACCORDION --- */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.is-open {
  border-color: rgba(0, 242, 254, 0.35);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 22px 26px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-normal);
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  padding: 0 26px;
}

.faq-item.is-open .faq-answer {
  max-height: 400px;
  padding: 0 26px 22px 26px;
}

.faq-answer p {
  margin-bottom: 0;
  font-size: 0.98rem;
  color: var(--text-secondary);
}

/* --- CONTACT FORM --- */
.contact-section {
  position: relative;
}

.contact-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

@media (max-width: 768px) {
  .contact-card {
    padding: 24px;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-label span.req {
  color: #f43f5e;
}

.form-control {
  width: 100%;
  background: rgba(7, 9, 14, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.15);
  background: rgba(7, 9, 14, 0.9);
}

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

/* Honeypot hidden input */
.website-field {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  margin-top: 10px;
}

.form-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.form-feedback {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-bottom: 20px;
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid #10b981;
  color: #34d399;
}

.form-feedback.error {
  display: block;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid #f43f5e;
  color: #fb7185;
}

/* --- FOOTER --- */
.site-footer {
  background: #040609;
  border-top: 1px solid var(--border-subtle);
  padding-top: 70px;
  padding-bottom: 40px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

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

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

.footer-col h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 18px;
}

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

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

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

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.footer-contact-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal-links a:hover {
  color: var(--primary);
}

/* --- FLOATING WHATSAPP BUTTON --- */
/* --- FLOATING WHATSAPP --- */
.floating-whatsapp-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 14px;
}

.whatsapp-tooltip {
  background: #ffffff;
  color: #111827;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(20px);
  animation: slideInWaTooltip 0.5s ease 1s forwards;
  position: relative;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent #ffffff;
}

.floating-whatsapp {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: pulseWa 2s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
  color: #fff;
  animation: none;
}

.floating-whatsapp svg {
  width: 50px;
  height: 50px;
  z-index: 2;
}

@keyframes pulseWa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes slideInWaTooltip {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- LEGAL PAGES STYLING --- */
.legal-content {
  max-width: 840px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 48px;
}

@media (max-width: 768px) {
  .legal-content {
    padding: 24px;
  }
}

.legal-content h2 {
  font-size: 1.6rem;
  margin-top: 32px;
  margin-bottom: 14px;
  color: var(--primary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.legal-content p,
.legal-content li {
  font-size: 1rem;
  line-height: 1.7;
}

.legal-content ul {
  margin-left: 24px;
  margin-bottom: 16px;
}

/* --- UTILITY CLASSES --- */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --- RESPONSIVE FIXES (ESTABILIDAD MÓVIL) --- */
@media (max-width: 480px) {
  /* Botones adaptables al 100% para evitar overflow en textos largos */
  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
    width: 100%;
    display: flex;
  }
  
  .btn-lg {
    padding: 14px 20px;
    font-size: 1rem;
  }

  /* Reducir padding de las tarjetas para pantallas muy estrechas (320px) */
  .feature-card {
    padding: 24px;
  }
  
  .card-grid {
    gap: 20px;
  }
  
  /* Asegurar que la grid de necesidades pase siempre a 1 columna en móvil */
  .need-grid {
    grid-template-columns: 1fr;
  }
  
  /* Ajustar los contenedores para aprovechar mejor el ancho */
  .container, .container-wide {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Ajustar elementos flotantes que puedan provocar overflow */
  .hero-metric-badge {
    right: 10px;
    padding: 10px 16px;
  }
  
  .metric-circle {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
}
