:root {
  --primary: #00A8B5;
  --primary-hover: #008C99;
  --primary-light: #E6F8F9;
  --secondary: #1E3A8A;
  --secondary-hover: #172554;
  --accent-red: #EF4444;
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,168,181,0.12), 0 4px 12px rgba(30,58,138,0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= NAVBAR ================= */
.navbar-wrapper {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 24px;
  height: 3px;
  background: var(--text-main);
  border-radius: 2px;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(0, 168, 181, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--secondary);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ================= HERO SECTION ================= */
.hero-section {
  padding: 70px 0 60px;
  background: linear-gradient(180deg, #F0FDFA 0%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #E0F2FE;
  color: #0369A1;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #0284C7;
  border-radius: 50%;
  display: inline-block;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--secondary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 540px;
}

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

.hero-guarantees {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guarantee-icon {
  font-size: 1.6rem;
}

.guarantee-item small {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.mascot-card {
  position: relative;
  background: #ffffff;
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  text-align: center;
}

.mascot-img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background-color: #ffffff;
}

.mascot-tag {
  position: absolute;
  bottom: 25px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  text-align: left;
}

.mascot-tag-icon {
  font-size: 1.8rem;
}

.mascot-tag small {
  display: block;
  color: var(--text-muted);
}

/* ================= SECTIONS COMMON ================= */
.section {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

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

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ================= PLAN TABS & CARDS ================= */
.plan-tabs {
  display: inline-flex;
  background: var(--border);
  padding: 5px;
  border-radius: 30px;
  margin-top: 25px;
}

.plan-tab {
  padding: 10px 24px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-tab.active {
  background: var(--bg-white);
  color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.plan-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.plan-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.badge-featured {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.plan-type {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
}

.plan-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 4px 0 10px;
}

.plan-speed {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.plan-speed small {
  font-size: 1.2rem;
  color: var(--primary);
}

.plan-subspeed {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.plan-price {
  margin: 24px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-price .currency {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
}

.plan-price .amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--secondary);
}

.plan-price .period {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.plan-features {
  list-style: none;
  margin-bottom: 24px;
  flex-grow: 1;
}

.plan-features li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: #334155;
}

.plan-ift {
  background: var(--bg-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  text-align: center;
  margin-bottom: 18px;
  border: 1px dashed var(--border);
}

/* ================= SPEEDTEST ================= */
.speedtest-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.speedtest-gauge {
  margin-bottom: 30px;
}

.gauge-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 10px solid var(--primary-light);
  border-top-color: var(--primary);
  margin: 0 auto 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: none;
}

.gauge-value {
  font-size: 3rem;
  font-weight: 900;
  color: var(--secondary);
  line-height: 1;
}

.gauge-unit {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.gauge-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.speedtest-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 30px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.metric-title {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.metric-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--secondary);
}

/* ================= COBERTURA ================= */
.coverage-checker {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.coverage-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.coverage-result {
  margin-bottom: 20px;
  display: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.coverage-zones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.zone-badge {
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* ================= IFT & REGULACIÓN ================= */
.ift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.ift-card {
  background: var(--bg-white);
  padding: 30px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.ift-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.ift-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 10px;
}

.ift-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

.ift-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}

.ift-link:hover {
  text-decoration: underline;
}

.ift-hotlines {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-md);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.hotline-box strong {
  display: block;
  color: var(--secondary);
  font-size: 1rem;
  margin-bottom: 4px;
}

.hotline-box span {
  display: block;
  font-size: 0.85rem;
  color: #3B82F6;
  margin-bottom: 6px;
}

.hotline-box a {
  color: var(--secondary);
  font-weight: 700;
  text-decoration: underline;
}

/* ================= CONTACTO ================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-details {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.05rem;
}

.contact-icon {
  font-size: 1.6rem;
}

.contact-card {
  background: var(--bg-white);
  padding: 35px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.contact-card h3 {
  font-size: 1.4rem;
  color: var(--secondary);
  margin-bottom: 20px;
  font-weight: 800;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 168, 181, 0.15);
}

.form-msg {
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ================= FOOTER ================= */
.footer {
  background: var(--secondary);
  color: #fff;
  padding: 60px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  height: 44px;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer-brand p {
  color: #94A3B8;
  font-size: 0.9rem;
  max-width: 380px;
}

.footer-links h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-links a {
  display: block;
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  color: #94A3B8;
  font-size: 0.85rem;
}

/* ================= MODAL LOGIN ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-logo {
  height: 48px;
  margin-bottom: 12px;
}

.modal-header h3 {
  font-size: 1.4rem;
  color: var(--secondary);
  font-weight: 800;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-light);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.modal-tab {
  padding: 8px;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-tab.active {
  background: #fff;
  color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.modal-pwa-banner {
  margin-top: 20px;
  background: var(--primary-light);
  border: 1px solid rgba(0, 168, 181, 0.3);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: #00707A;
  font-weight: 600;
  text-align: center;
}

.hidden {
  display: none !important;
}

.error-msg {
  color: var(--accent-red);
  font-size: 0.85rem;
  margin-top: 10px;
  text-align: center;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .hero-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .nav-menu, .nav-actions {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
}
