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

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f6f9fc;
  color: #111827;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ==================== LAYOUT ==================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.row {
  display: flex;
}

.between {
  justify-content: space-between;
}

.center-v {
  align-items: center;
}

/* ==================== TOPBAR ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.brand-sub {
  font-weight: 400;
  font-size: 0.8rem;
  color: #6b7280;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.9rem;
}

.nav-links a {
  color: #111827;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.btn-nav {
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #03a9f4, #f44336);
  color: #fff !important;
  font-weight: 500;
}

/* ==================== HERO ==================== */
.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(circle at top left, rgba(3, 169, 244, 0.16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(244, 67, 54, 0.16), transparent 55%),
    #f6f9fc;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0f172a;
}

.hero-text h1 span {
  color: #03a9f4;
}

.hero-sub {
  font-size: 0.98rem;
  color: #4b5563;
  max-width: 520px;
  margin-bottom: 20px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

/* BOTONES */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #03a9f4, #f44336);
  color: #fff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.24);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: #111827;
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.03);
}

/* Hero meta */
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 12px;
}

.hero-meta a {
  color: #0f172a;
  font-weight: 500;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(3, 169, 244, 0.08);
  color: #0369a1;
}

/* ==================== HERO MOCKUP ==================== */
.hero-mockup {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

/* Glass effect base */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* Tarjeta AC */
.ac-card {
  width: 100%;
  max-width: 360px;
  padding: 16px 18px;
}

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

.ac-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.ac-status {
  font-size: 0.8rem;
  color: #16a34a;
  font-weight: 500;
}

.ac-body {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: center;
}

.ac-unit {
  height: 70px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, #e5f4ff, #ffffff);
  position: relative;
  overflow: hidden;
}

.ac-unit::before {
  content: "";
  position: absolute;
  inset: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.ac-unit::after {
  content: "";
  position: absolute;
  bottom: 11px;
  left: 18px;
  right: 18px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #03a9f4, #f44336);
  opacity: 0.8;
}

.ac-info p {
  font-size: 0.82rem;
  color: #4b5563;
  margin-bottom: 3px;
}

.ac-client {
  font-weight: 600;
  color: #0f172a;
}

.ac-time {
  font-size: 0.8rem;
  color: #0369a1;
  font-weight: 500;
}

/* Phone mockup */
.phone-frame {
  position: absolute;
  top: 74px;
  right: -10px;
  width: 210px;
  padding: 10px;
  border-radius: 30px;
  background: linear-gradient(155deg, #0ea5e9, #f97373);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.4);
}

.phone-screen {
  background: #0b1120;
  border-radius: 22px;
  padding: 12px 12px 16px;
  color: #e5e7eb;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 9px;
  border-radius: 12px;
  background: #020617;
  z-index: 3;
}

.screen-header {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-bottom: 6px;
}

.screen-body h3 {
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.screen-body p {
  font-size: 0.74rem;
  color: #9ca3af;
  margin-bottom: 10px;
}

.screen-slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(15, 118, 110, 0.22);
  color: #e5e7eb;
  margin-bottom: 10px;
}

.slot-status {
  font-size: 0.7rem;
  color: #bbf7d0;
}

.screen-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 6px;
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  background: linear-gradient(135deg, #03a9f4, #f97373);
  color: #f9fafb;
}

.screen-foot {
  font-size: 0.68rem;
  color: #9ca3af;
}

/* Glow decorativo */
.hero-glow {
  position: absolute;
  bottom: -26px;
  right: 0;
  width: 260px;
  height: 40px;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.23), transparent 60%);
  filter: blur(6px);
  opacity: 0.9;
}

/* ==================== SECCIONES GENERALES ==================== */
.section {
  padding: 64px 0;
}

.section-alt {
  background: #ffffff;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  text-align: center;
  color: #0f172a;
}

.section-sub {
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
  max-width: 620px;
  margin: 0 auto 32px;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 18px 20px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #0f172a;
}

.card p {
  font-size: 0.88rem;
  color: #4b5563;
}

/* Contratos */
.contratos-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
}

.check-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #4b5563;
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 0.8rem;
  color: #16a34a;
}

.contrato-card {
  padding: 20px 18px;
}

.contrato-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.mini-list {
  list-style: disc;
  padding-left: 18px;
  font-size: 0.86rem;
  color: #4b5563;
  margin: 6px 0 10px;
}

.tag-note {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Zona */
.zona-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: flex-start;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(3, 169, 244, 0.08);
  font-size: 0.8rem;
  color: #0369a1;
}

.zona-card {
  padding: 18px 18px 20px;
}

/* Testimonios */
.testimonios-grid .card {
  position: relative;
}

.quote {
  font-size: 0.9rem;
  color: #374151;
  margin-bottom: 8px;
}

.quote::before {
  content: "“";
  font-size: 2rem;
  color: rgba(3, 169, 244, 0.3);
  position: absolute;
  top: -8px;
  left: 10px;
}

.quote-name {
  font-size: 0.78rem;
  color: #6b7280;
}

/* Contacto */
.contacto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  margin-top: 10px;
}

.contact-list li {
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #4b5563;
}

.contact-list a {
  color: #0369a1;
  font-weight: 500;
}

.contact-box {
  padding: 18px 18px 20px;
}

.contact-box p {
  font-size: 0.84rem;
  color: #6b7280;
  margin-bottom: 10px;
}

.contact-box form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-box input,
.contact-box textarea {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 8px 10px;
  font-size: 0.88rem;
  outline: none;
  background: rgba(248, 250, 252, 0.92);
}

.contact-box input:focus,
.contact-box textarea:focus {
  border-color: #03a9f4;
  box-shadow: 0 0 0 1px rgba(3, 169, 244, 0.35);
}

.btn-primary.full,
.btn-outline.full {
  width: 100%;
}

.contact-box small {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* ==================== FOOTER ==================== */
.footer {
  background: #0b1120;
  color: #e5e7eb;
  padding: 18px 0;
  font-size: 0.8rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.footer a {
  color: #38bdf8;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-mockup {
    align-items: center;
  }

  .phone-frame {
    position: relative;
    top: 0;
    right: 0;
    margin-top: 10px;
  }

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

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contratos-grid,
  .zona-grid,
  .contacto-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-links {
    display: none; /* versión simple; si quieres menú móvil lo añadimos luego */
  }
}

@media (max-width: 640px) {
  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    padding-top: 56px;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}
