/* ===== VARIABLES ===== */
:root {
  --color-bg: #050A0F;
  --color-bg-2: #0A1525;
  --color-teal: #00B4B4;
  --color-teal-dark: #008080;
  --color-orange: #FF8C00;
  --color-text: #E0E6ED;
  --color-text-muted: #8899AA;
  --color-glass: rgba(0, 180, 180, 0.06);
  --color-glass-border: rgba(0, 180, 180, 0.18);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --container: 1240px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; border-radius: var(--radius-sm); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== UTILITIES ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.gradient-text {
  background: linear-gradient(135deg, var(--color-teal), #00FFEA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  padding-bottom: 0.08em;
  line-height: 1.25;
}
.glass {
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-teal-dark), var(--color-teal));
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,180,180,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,180,180,0.5); }
.btn-ghost {
  border: 2px solid var(--color-glass-border);
  color: var(--color-text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--color-teal); color: var(--color-teal); transform: translateY(-2px); }
.btn-outline {
  border: 2px solid var(--color-teal);
  color: var(--color-teal);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-teal);
  color: #fff;
  transform: translateY(-2px);
}
.btn i { font-size: 1.1rem; }
.btn-nav {
  background: var(--color-teal-dark);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  transition: var(--transition);
}
.btn-nav:hover { background: var(--color-teal); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: var(--transition);
  animation: pulse-green 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse-green {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 40px rgba(37,211,102,0.8); }
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(5,10,15,0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--color-teal);
}
.nav-logo img { width: 38px; height: 38px; border-radius: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--color-teal); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ===== SECTION COMMON ===== */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-desc { color: var(--color-text-muted); max-width: 900px; margin: 0 auto; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 0 2rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 50% 50%, rgba(0,180,180,0.15) 0%, transparent 80%),
    url('../img/Institucional/fondov2.jpg') center/cover no-repeat;
  filter: brightness(0.3);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}
.hero-text {
  text-align: left;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 0 1.5rem 0;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: flex-start; margin-bottom: 1rem; }

.hero-trust {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-trust .stat {
  display: flex;
  flex-direction: column;
  padding-right: 2rem;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.hero-trust .stat:last-child {
  padding-right: 0;
  border-right: none;
}
.hero-trust .stat-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-teal);
}
.hero-trust .stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
@keyframes float-hero-logo {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}
.hero-card {
  background: rgba(5, 10, 15, 0.7);
  border: 1px solid var(--color-glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  animation: float-hero-logo 4s ease-in-out infinite;
}
.hero-card-logo {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-sm);
  margin: 0 auto 1.5rem;
  object-fit: cover;
}
.hero-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.hero-card p {
  color: var(--color-teal);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== PROBLEM SECTION ===== */
.problem-section {
  padding: 3rem 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-bg-2);
}
.problem-section .section-header { margin-bottom: 2rem; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.problem-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: rgba(5,10,15,0.4);
  border: 1px solid var(--color-glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.problem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-teal-dark), var(--color-teal));
  opacity: 0;
  transition: opacity var(--transition);
}
.problem-card:hover { 
  transform: translateY(-8px);
  border-color: rgba(0, 180, 180, 0.4);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}
.problem-card:hover::before { opacity: 1; }
.prob-num {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}
.prob-icon-wrap {
  width: 75px;
  height: 75px;
  border-radius: 20px;
  background: radial-gradient(circle at center, rgba(0,180,180,0.2) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0,180,180,0.3);
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 25px rgba(0,180,180,0.1);
  transition: transform var(--transition);
}
.problem-card:hover .prob-icon-wrap { transform: scale(1.05); border-color: var(--color-teal); }
.prob-icon-wrap i { 
  font-size: 2.2rem; 
  background: linear-gradient(135deg, var(--color-teal), #00FFEA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block; 
}
.problem-card h3 { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 1rem; position: relative; z-index: 1; }
.problem-card p { color: var(--color-text-muted); position: relative; z-index: 1; font-size: 0.95rem; }

/* ===== SERVICES ===== */
.services-section { padding: 3rem 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.services-section .section-header { margin-bottom: 2rem; }
.services-section .section-desc { max-width: 100%; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.service-card {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: var(--color-bg-2);
  border: 1px solid var(--color-glass-border);
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-8px); }
.service-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.service-icon {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0;
  flex-shrink: 0;
}
.service-icon.teal { background: rgba(0,180,180,0.1); color: var(--color-teal); }
.service-card h3 { font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: 0; line-height: 1.2; }
.service-card p { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 1rem; }
.service-list { display: flex; flex-direction: column; gap: 0.5rem; }
.service-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; color: var(--color-text-muted); }
.service-list li i { color: var(--color-teal); font-size: 1.2rem; }

/* ===== IT SECTION ===== */
.it-section {
  padding: 2rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-bg-2);
}
.it-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.it-visual-col {
  display: flex;
  justify-content: center;
}
.it-content .section-eyebrow { margin-bottom: 0.5rem; }
.it-content h2 { font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.1; margin-bottom: 0.5rem; }
.it-content > p { color: var(--color-text-muted); margin-bottom: 1rem; }
.it-list { display: flex; flex-direction: column; gap: 0.75rem; }
.it-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.it-list li > i { 
  font-size: 1.5rem; 
  color: var(--color-teal); 
  background: rgba(0, 180, 180, 0.1);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.it-list li div { display: flex; flex-direction: column; }
.it-list li strong { font-weight: 600; margin-bottom: 0.15rem; font-size: 0.95rem; }
.it-list li span { font-size: 0.85rem; color: var(--color-text-muted); line-height: 1.3; }
.it-glow-circle {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(0,180,180,0.15) 0%, rgba(5,10,15,0) 70%);
  border: 1px solid var(--color-glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  box-shadow: 0 0 40px rgba(0, 180, 180, 0.15);
  transition: transform var(--transition);
}
.it-glow-circle:hover { transform: scale(1.05); }
.chip-icon { font-size: 5.5rem; color: var(--color-teal); filter: drop-shadow(0 0 10px rgba(0,180,180,0.4)); margin-bottom: 0.2rem; }
.it-badge {
  background: rgba(0, 180, 180, 0.1);
  color: var(--color-teal);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--color-teal);
}

/* ===== PLANS ===== */
.plans-section {
  padding: 3rem 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.plans-section .section-header { margin-bottom: 2rem; }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.plan-card {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  position: relative;
  transition: transform var(--transition);
  background: var(--color-bg-2);
  border: 1px solid var(--color-glass-border);
}
.plan-card:hover { transform: translateY(-6px); }
.plan-card.featured {
  border-color: var(--color-teal);
  box-shadow: 0 0 30px rgba(0,180,180,0.12);
}
.plan-badge-top {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-teal-dark), var(--color-teal));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  white-space: nowrap;
}
.plan-header { margin-bottom: 1rem; }
.plan-tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-teal); margin-bottom: 0.25rem; display: block; }
.plan-card h3 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; margin: 0.3rem 0 0.5rem; }
.plan-desc { color: var(--color-text-muted); font-size: 0.85rem; margin-bottom: 1rem; line-height: 1.4; }
.plan-price { font-family: var(--font-heading); font-size: 2rem; font-weight: 900; }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--color-text-muted); }
.plan-features { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.plan-features li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; color: var(--color-text-muted); }
.plan-features li i { color: var(--color-teal); font-size: 0.9rem; }
.btn-full { width: 100%; }
.plans-note { text-align: center; color: var(--color-text-muted); font-size: 0.9rem; }
.plans-note a { color: var(--color-teal); font-weight: 600; }
.plans-note a:hover { text-decoration: underline; }

/* ===== CTA / CONTACTO SECTION ===== */
.cta-section {
  padding: 3rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at center, rgba(0,180,180,0.07) 0%, transparent 70%);
}
.cta-section .container { width: 100%; }
.text-center { text-align: center; }
.cta-section .section-eyebrow { margin-bottom: 0.75rem; }
.cta-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 1rem;
}
.cta-desc { color: var(--color-text-muted); max-width: 600px; margin: 0 auto 2rem; }
.cta-main-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
/* Divisor con texto */
.cta-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto 2rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.cta-divider::before,
.cta-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
/* Iconos de redes grandes */
.cta-social-icons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-social-link {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border: 2px solid rgba(255,255,255,0.1);
  color: var(--color-text-muted);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition);
  background: rgba(255,255,255,0.03);
}
.cta-social-link:hover { transform: translateY(-4px) scale(1.08); }
.cta-social-link.whatsapp:hover  { color: #25D366; border-color: #25D366; box-shadow: 0 6px 24px rgba(37,211,102,0.3); }
.cta-social-link.instagram:hover { color: #E1306C; border-color: #E1306C; box-shadow: 0 6px 24px rgba(225,48,108,0.3); }
.cta-social-link.facebook:hover  { color: #1877F2; border-color: #1877F2; box-shadow: 0 6px 24px rgba(24,119,242,0.3); }
.cta-social-link.telegram:hover  { color: #2AABEE; border-color: #2AABEE; box-shadow: 0 6px 24px rgba(42,171,238,0.3); }
.cta-social-link.x-twitter:hover { color: #fff;    border-color: #fff;    box-shadow: 0 6px 24px rgba(255,255,255,0.2); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-bg-2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 0;
}
.footer-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand img { width: 38px; height: 38px; border-radius: 8px; }
.footer-brand strong { display: block; font-size: 0.95rem; font-weight: 700; }
.footer-brand span { font-size: 0.8rem; color: var(--color-text-muted); }
.footer-copy { font-size: 0.8rem; color: var(--color-text-muted); }

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text { text-align: center; }
  .hero-subtitle { margin: 0 auto 2.5rem; }
  .hero-cta { justify-content: center; }
  .hero-trust { justify-content: center; }
  .it-wrapper { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
  .it-list li { justify-content: center; text-align: left; }
  .it-visual-col { order: -1; }
  
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .cta-social-icons { gap: 0.6rem; flex-wrap: nowrap; }
  .cta-social-link { width: 48px; height: 48px; font-size: 1.3rem; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5,10,15,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    font-size: 1.25rem;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; position: relative; z-index: 100; }
}
