/* 
   RIG Desarrollo Corporativo - Premium Design System
   Color Palette: Deep Spatial Blue, Satin Black, Metallic Gold
   Typography: Outfit (Headings), Plus Jakarta Sans (Body)
*/

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

/* --- CUSTOM PROPERTIES --- */
:root {
  --bg-primary: #07090e;
  --bg-secondary: #0d111b;
  --bg-tertiary: #131927;
  
  --accent-blue: #1d4ed8;
  --accent-blue-light: #3b82f6;
  --accent-blue-glow: rgba(59, 130, 246, 0.15);
  --accent-blue-gradient: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  
  --accent-gold: #c5a85c;
  --accent-gold-light: #e5c97f;
  --accent-gold-dark: #917532;
  --accent-gold-gradient: linear-gradient(135deg, #917532 0%, #e5c97f 50%, #c5a85c 100%);
  --accent-gold-glow: rgba(197, 168, 92, 0.2);
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --glass-bg: rgba(13, 17, 27, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-border-hover: rgba(59, 130, 246, 0.3);
  --glass-border-gold: rgba(197, 168, 92, 0.3);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.2);
  --shadow-glow-gold: 0 0 30px rgba(197, 168, 92, 0.15);

  --surface-hover: rgba(255, 255, 255, 0.04);
  --surface-soft: rgba(255, 255, 255, 0.02);
  --surface-strong: rgba(255, 255, 255, 0.06);

  /* Controles nativos (select/option) en Windows: evita menú blanco con texto blanco */
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg-primary: #f4f6fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e8ecf3;

  --accent-blue-glow: rgba(37, 99, 235, 0.12);
  --accent-gold-glow: rgba(161, 128, 48, 0.18);

  --text-primary: #121826;
  --text-secondary: #4b5568;
  --text-muted: #6b7280;

  --glass-bg: rgba(255, 255, 255, 0.86);
  --glass-border: rgba(18, 24, 38, 0.08);
  --glass-border-hover: rgba(37, 99, 235, 0.28);
  --glass-border-gold: rgba(161, 128, 48, 0.35);

  --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  --shadow-glow-blue: 0 0 24px rgba(37, 99, 235, 0.12);
  --shadow-glow-gold: 0 0 24px rgba(197, 168, 92, 0.16);

  --surface-hover: rgba(18, 24, 38, 0.04);
  --surface-soft: rgba(18, 24, 38, 0.03);
  --surface-strong: rgba(18, 24, 38, 0.06);

  color-scheme: light;
}

/* Theme toggle */
.rig-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--surface-soft);
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  line-height: 1;
}
.rig-theme-toggle:hover {
  color: var(--accent-gold-light);
  border-color: var(--glass-border-gold);
  background: var(--surface-hover);
}
.rig-theme-toggle svg { flex-shrink: 0; }

html[data-theme="light"] .btn-view {
  background: var(--surface-soft);
}
html[data-theme="light"] .admin-nav-link:hover,
html[data-theme="light"] .sidebar-link:hover {
  background: var(--surface-hover);
}

/* Light skin: superficies con hardcode oscuro frecuente */
html[data-theme="light"] .dash-card,
html[data-theme="light"] .admin-card,
html[data-theme="light"] .glass-card,
html[data-theme="light"] .section-card {
  background: var(--bg-secondary);
  border-color: var(--glass-border);
  box-shadow: var(--shadow-sm);
}
html[data-theme="light"] .nav-cta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

ul {
  list-style: none;
}

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

input, textarea, button {
  font-family: inherit;
  outline: none;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border: 2px solid var(--bg-primary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold-dark);
}

/* --- REUSABLE UTILITIES & GLASSMORPHISM --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
  transform: translateY(-5px);
}

.gold-glow-card {
  background: linear-gradient(135deg, rgba(13, 17, 27, 0.8) 0%, rgba(25, 33, 50, 0.8) 100%);
  border: 1px solid var(--glass-border-gold);
  box-shadow: var(--shadow-md), var(--shadow-glow-gold);
}

.gold-glow-card:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(197, 168, 92, 0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
  border: 1px solid transparent;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gold-gradient);
  color: #000000;
  box-shadow: 0 4px 15px rgba(197, 168, 92, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 168, 92, 0.5);
  color: #000000;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--glass-border-gold);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(197, 168, 92, 0.08);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  transform: translateY(-2px);
}

.btn-blue {
  background: var(--accent-blue);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(29, 78, 216, 0.3);
}

.btn-blue:hover {
  background: var(--accent-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

/* --- ANIMATIONS KEYFRAMES --- */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 20px rgba(197, 168, 92, 0.15);
    border-color: var(--glass-border-gold);
  }
  50% {
    box-shadow: 0 0 35px rgba(197, 168, 92, 0.3);
    border-color: var(--accent-gold);
  }
  100% {
    box-shadow: 0 0 20px rgba(197, 168, 92, 0.15);
    border-color: var(--glass-border-gold);
  }
}

@keyframes orbitGlow {
  0% {
    transform: rotate(0deg) translateX(100px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(100px) rotate(-360deg);
  }
}

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

/* --- ORBITAL GLOW EFFECTS IN BACKGROUND --- */
.bg-glow-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(150px);
  opacity: 0.2;
}

.orb-blue {
  background: var(--accent-blue);
  top: 15%;
  right: -10%;
}

.orb-gold {
  background: var(--accent-gold);
  bottom: 20%;
  left: -10%;
}

.orb-center {
  background: var(--accent-blue);
  top: 50%;
  left: 40%;
  width: 500px;
  height: 500px;
  opacity: 0.12;
}

/* --- SCROLL REVEAL STYLE --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- HEADER & NAVBAR --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 0.6rem 0;
}

header.scrolled {
  padding: 0.5rem 0;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.logo img {
  width: 180px;
  height: auto;
  display: block;
  object-fit: contain;
  transition: var(--transition-smooth);
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold-gradient);
  transition: var(--transition-fast);
}

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

.nav-cta {
  display: flex;
  align-items: center;
}

/* MENU MOBILE HAMBURGER */
.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
  z-index: 10;
}

.hero-content {
  position: relative;
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  background: rgba(197, 168, 92, 0.08);
  border: 1px solid var(--glass-border-gold);
  color: var(--accent-gold-light);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.tagline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero h1 span.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 span.gold-text {
  background: var(--accent-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-btns {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* HERO VISUAL ELEMENT — Efficiency Chart */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.efficiency-chart-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: float 6s ease-in-out infinite;
}

/* Ring chart */
.efficiency-ring-box {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.efficiency-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.ring-track {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 14;
  fill: none;
}

.ring-rig {
  stroke: url(#goldGradient);
  stroke-width: 14;
  fill: none;
  stroke-dasharray: 603.2;
  stroke-dashoffset: 603.2;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 8px rgba(197, 168, 92, 0.6));
}

.ring-rig.animated {
  stroke-dashoffset: 180.96; /* 70% = 603.2 * 0.30 */
}

.efficiency-center {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.efficiency-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3.8rem;
  font-weight: 800;
  background: var(--accent-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.efficiency-percent {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--accent-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: -0.5rem;
}

.efficiency-sublabel {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
  text-align: center;
  line-height: 1.5;
}

/* Comparison card */
.efficiency-compare-card {
  width: 100%;
  max-width: 300px;
  padding: 1.4rem 1.8rem;
}

.compare-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  text-align: center;
}

.efficiency-vs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.vs-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.vs-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}

.rig-val {
  background: var(--accent-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vs-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rig-label {
  color: var(--accent-gold-light);
}

.vs-gap-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.vs-gap-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  background: var(--accent-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border: 1px solid var(--glass-border-gold);
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  background-clip: text;
  box-shadow: 0 0 14px rgba(197, 168, 92, 0.2);
}

.vs-gap-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

.muted-val {
  color: var(--text-muted) !important;
  -webkit-text-fill-color: var(--text-muted) !important;
}

/* --- SECTION GENERAL STYLE --- */
section {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem auto;
  z-index: 10;
  position: relative;
}

.section-tag {
  color: var(--accent-gold-light);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.section-header h2 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  font-weight: 800;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* --- QUIENES SOMOS (ABOUT US) --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
}

.about-ad {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(197, 168, 92, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  background: #07090e;
}

.about-ad img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-wrapper {
  position: relative;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.1) 0%, rgba(197, 168, 92, 0.05) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
}

.about-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.about-item:hover {
  background: rgba(255, 255, 255, 0.02);
  transform: translateX(8px);
}

.about-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(197, 168, 92, 0.1);
  border: 1px solid var(--glass-border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.about-item:hover .about-icon {
  background: var(--accent-gold-gradient);
  color: #000;
}

.about-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.about-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- SERVICIOS (SERVICES) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  z-index: 10;
  position: relative;
}

.service-card {
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-blue-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card.gold-service::before {
  background: var(--accent-gold-gradient);
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue-light);
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.service-card:hover .service-icon-box {
  transform: scale(1.1) rotate(5deg);
  background: var(--accent-blue-light);
  color: #fff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.service-card.gold-service .service-icon-box {
  background: rgba(197, 168, 92, 0.08);
  border-color: var(--glass-border-gold);
  color: var(--accent-gold);
}

.service-card.gold-service:hover .service-icon-box {
  background: var(--accent-gold-gradient);
  color: #000;
  box-shadow: 0 0 20px rgba(197, 168, 92, 0.4);
}

/* EcoSistema RIG: icono activo = botón Calculadora ISR */
a.service-icon-btn {
  text-decoration: none;
  cursor: pointer;
  background: var(--accent-blue-light);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.45);
}

a.service-icon-btn:hover,
a.service-icon-btn:focus-visible,
.service-card--active:hover a.service-icon-btn {
  transform: scale(1.12) rotate(5deg);
  background: var(--accent-blue-light);
  color: #fff;
  box-shadow: 0 0 26px rgba(59, 130, 246, 0.55);
}

a.service-icon-btn:focus-visible {
  outline: 2px solid var(--accent-blue-light);
  outline-offset: 3px;
}

/* Placeholders: mismos efectos hover, sin pointer de control */
.service-card--placeholder .service-icon-box {
  cursor: default;
  pointer-events: none;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  opacity: 0.8;
  transition: var(--transition-fast);
}

.service-link svg {
  transition: transform 0.2s ease;
}

.service-card:hover .service-link {
  color: var(--accent-blue-light);
  opacity: 1;
}

.service-card.gold-service:hover .service-link {
  color: var(--accent-gold-light);
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* --- PRECIOS (PRICING) --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: flex-start;
  z-index: 10;
  position: relative;
}

.pricing-card {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card.featured-plan {
  animation: pulseGlow 4s infinite alternate;
  position: relative;
  z-index: 10;
  transform: scale(1.03);
}

.pricing-card.featured-plan:hover {
  transform: scale(1.05) translateY(-5px);
}

.pricing-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: var(--accent-gold-gradient);
  color: #000;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(197, 168, 92, 0.3);
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.pricing-header .description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  min-height: 40px;
}

.price-box {
  display: flex;
  align-items: baseline;
  margin-bottom: 2rem;
}

.price-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-right: 0.2rem;
}

.pricing-card.featured-plan .price-currency {
  color: var(--accent-gold-light);
}

.price-amount {
  font-size: 3.2rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.pricing-features {
  margin-bottom: 3rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.pricing-features li svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

.pricing-card.featured-plan .pricing-features li svg {
  color: var(--accent-gold-light);
}

/* --- PRECIO DOBLE (Plan Inicio: mensual / trimestral) --- */
.price-dual {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 2rem;
}
.price-dual-option {
  display: flex;
  align-items: baseline;
}
.price-dual-sep {
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  padding: 0.15rem 0;
}
.price-dual-trimestral .price-amount {
  font-size: 2.3rem;
}
.price-savings {
  display: inline-block;
  font-size: 0.7rem;
  background: rgba(197, 168, 92, 0.14);
  color: var(--accent-gold);
  border-radius: 20px;
  padding: 0.1rem 0.55rem;
  margin-left: 0.45rem;
  font-weight: 600;
  vertical-align: middle;
}
.plan-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: -1.4rem;
  margin-bottom: 1.4rem;
  line-height: 1.4;
  opacity: 0.85;
}

/* --- CONTACTO (CONTACT) --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  z-index: 10;
  position: relative;
}

.contact-info-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.contact-info-text h3 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

.contact-info-text p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-ad {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(197, 168, 92, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  background: #07090e;
}

.contact-ad img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  vertical-align: middle;
}

.contact-form-card {
  padding: 3.5rem 3rem;
}

.contact-form-card h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-input {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

textarea.form-input {
  min-height: 140px;
  max-height: 320px;
  resize: vertical;
  overflow-y: auto;
}

.form-group-message {
  margin-bottom: 2.4rem;
}

/* Para el campo de mensaje el label queda fijo arriba (como caption)
   en vez de flotar, ya que el placeholder real ahora muestra el texto
   descriptivo dentro del textarea. */
.form-label-static {
  top: -0.7rem;
  left: 0.8rem;
  font-size: 0.78rem;
  background: var(--bg-secondary);
  padding: 0 0.5rem;
  color: var(--accent-gold-light);
  border-radius: 4px;
}

/* Contador dinámico de caracteres del mensaje */
.char-counter {
  position: absolute;
  right: 0.2rem;
  bottom: -1.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.char-counter.char-counter-safe {
  color: #34d399;
}

.char-counter.char-counter-warning {
  color: #fbbf24;
}

.char-counter.char-counter-danger {
  color: #f87171;
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(197, 168, 92, 0.15);
}

.form-label {
  position: absolute;
  left: 1.2rem;
  top: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

/* Float Label Animation — dorado legible sobre fondo oscuro */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
select.form-input ~ .form-label {
  top: -0.7rem;
  left: 0.8rem;
  font-size: 0.78rem;
  background: var(--bg-secondary);
  padding: 0 0.5rem;
  color: var(--accent-gold-light);
  border-radius: 4px;
}

select.form-input {
  cursor: pointer;
  appearance: auto;
}

/* Opciones del desplegable: contraste legible (Windows usa fondo claro por defecto) */
select.form-input option {
  background: #141820;
  color: #f0f0f0;
}

html[data-theme="light"] select.form-input option {
  background: #ffffff;
  color: #121826;
}

select.form-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.01);
}

/* Labels flotantes del dashboard: siempre dorado (no se pierden en el fondo) */
.dash-main .form-label,
.dash-main .form-input:focus ~ .form-label,
.dash-main .form-input:not(:placeholder-shown) ~ .form-label {
  color: var(--accent-gold-light);
}

/* STATUS BANNER/TOAST FOR FORM SUBMIT */
.form-status {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: none;
  font-size: 0.9rem;
  text-align: center;
  animation: float 4s ease-in-out infinite;
}

.form-status.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.form-status.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* --- FOOTER --- */
footer {
  background: #04060a;
  border-top: 1px solid var(--glass-border);
  padding: 5rem 0 2.5rem 0;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 1.5rem 0 2rem 0;
  max-width: 320px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-gold-light);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

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

.footer-legal a:hover {
  color: var(--text-secondary);
}

/* --- RESPONSIVE DESIGN (BREAKPOINTS) --- */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4rem;
  }
  
  .tagline {
    justify-content: center;
  }
  
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .contact-info-container {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  
  header {
    padding: 1rem 0;
  }
  
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: block;
    z-index: 1001;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #090d16;
    border-left: 1px solid var(--glass-border);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: var(--transition-smooth);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .section-header h2 {
    font-size: 2.2rem;
  }
  
  .pricing-card.featured-plan {
    transform: scale(1);
  }
  
  .pricing-card.featured-plan:hover {
    transform: translateY(-5px);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-form-card {
    padding: 2.5rem 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.3rem;
  }
  
  .hero-btns .btn {
    width: 100%;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
}
