/* ===== BASE ===== */
:root {
  --yellow: #ffc107;
  --dark:   #111318;
  --card-bg: #1a1d24;
}

html { scroll-behavior: smooth; }

body {
  padding-bottom: 60px;
  background-color: #f8f9fa;
  color: #212529;
}

/* ===== NAVBAR ===== */
#mainNav {
  transition: box-shadow .3s;
}
#mainNav .nav-link {
  color: rgba(255,255,255,.8) !important;
  font-size: .9rem;
  transition: color .2s;
}
#mainNav .nav-link:hover { color: var(--yellow) !important; }

/* ===== HERO ===== */
.hero-section {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.72) 40%, transparent 100%);
  z-index: 1;
}

.overlay-box {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  color: white;
  max-width: 560px;
  z-index: 2;
}

.logo-overlay {
  width: 380px;
  max-width: 85vw;
  margin-bottom: 18px;
  display: block;
}

.overlay-text {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.65;
  text-shadow: 1px 1px 4px rgba(0,0,0,.7);
  margin-bottom: 0;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.6);
  font-size: 1.4rem;
  text-decoration: none;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* Hero fade-in */
.animate-fadein {
  animation: fadeInUp .9s ease both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(-50%) translateY(24px); }
  to   { opacity: 1; transform: translateY(-50%); }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ===== STATS ===== */
.stat-card {
  padding: 1.2rem .5rem;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  transition: background .2s;
}
.stat-card:hover { background: rgba(255,193,7,.08); }

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}
.stat-plus {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yellow);
}
.stat-label {
  margin-top: .4rem;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 0;
}

/* ===== VALUES GRID ===== */
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.value-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 1.1rem;
  transition: border-color .25s, background .25s;
}
.value-item:hover {
  border-color: rgba(255,193,7,.4);
  background: rgba(255,193,7,.07);
}

/* ===== PLANES ===== */
.plan-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
}
.plan-featured {
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px var(--yellow), 0 8px 24px rgba(255,193,7,.15);
}
.plan-featured:hover { box-shadow: 0 0 0 1px var(--yellow), 0 16px 36px rgba(255,193,7,.2); }

.plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--yellow);
  color: #000;
  font-size: .7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .08em;
}

.plan-header {
  padding: 2rem 1.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.plan-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.plan-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .04em;
  margin-bottom: .25rem;
  line-height: 1.25;
}
.plan-subtitle {
  font-size: .85rem;
  color: rgba(255,255,255,.45);
  margin: 0;
}

.plan-body {
  padding: 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 0;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.plan-features li:last-child { border: none; }
.plan-features li .bi-x { color: rgba(255,255,255,.25); }

.plan-feature-highlight {
  margin-top: .4rem;
  padding: .55rem .6rem !important;
  background: rgba(167,139,250,.12);
  border: 1px solid rgba(167,139,250,.35) !important;
  border-radius: 8px;
  align-items: flex-start !important;
  gap: .5rem;
  color: #fff !important;
  font-size: .87rem;
  line-height: 1.45;
}

/* ===== SERVICIOS ===== */
.servicios-section {
  background-image: url('images/fondo.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.servicios-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.68);
}
.servicios-section .container { position: relative; z-index: 1; }

.service-card {
  background: rgba(20, 22, 30, .88);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 1.6rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  backdrop-filter: blur(6px);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,193,7,.5);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.service-icon-wrap {
  margin-bottom: 1rem;
}
.service-icon-wrap img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.service-card p {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  line-height: 1.6;
  flex: 1;
}

.service-card-cta {
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(255,193,7,.06);
  border-color: rgba(255,193,7,.25);
}

/* ===== COBERTURA ===== */
.coverage-zone {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: .5rem .75rem;
  font-size: .9rem;
  color: rgba(255,255,255,.75);
}

.tech-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: .9rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.tech-item:last-child { border: none; }
.tech-icon {
  width: 42px;
  height: 42px;
  background: rgba(255,193,7,.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--yellow);
  flex-shrink: 0;
}

/* ===== FAQ ===== */
.accordion-item {
  border-color: rgba(0,0,0,.1);
}
.accordion-button {
  font-weight: 600;
  font-size: .95rem;
}
.accordion-button:not(.collapsed) {
  background-color: #111;
  color: #fff;
  box-shadow: none;
}
.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}
.accordion-button:focus { box-shadow: none; }

/* ===== CONTACTO ===== */
.contact-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
}
.contact-card .form-control,
.contact-card .form-select {
  color: rgba(255,255,255,.85) !important;
}
.contact-card .form-control::placeholder { color: rgba(255,255,255,.3); }
.contact-card .form-control:focus,
.contact-card .form-select:focus {
  border-color: var(--yellow) !important;
  box-shadow: 0 0 0 .2rem rgba(255,193,7,.2);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 66px;
  right: 18px;
  z-index: 1000;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ===== FOOTER ===== */
.footer-fixed {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 50px;
  z-index: 999;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .values-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-section { height: 80vh; }

  .hero-image {
    object-position: center;
  }

  .overlay-box {
    top: auto;
    bottom: 10%;
    left: 5%;
    transform: none;
  }
  .animate-fadein {
    animation: fadeInUpMobile .9s ease both;
  }
  @keyframes fadeInUpMobile {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
  }

  .logo-overlay { width: 220px; }

  .overlay-text { font-size: .9rem; line-height: 1.5; }

  .stat-number { font-size: 2.1rem; }

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

  .plan-card { max-width: 360px; margin: 0 auto; }

  .service-icon-wrap img { width: 52px; height: 52px; }
}

@media (max-width: 480px) {
  .hero-section { height: 75vh; }
  .logo-overlay { width: 180px; }
  .overlay-text { font-size: .82rem; }
}
