/* ===== WebMailGratis – Diseño persuasivo premium ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #5eead4;
  --accent: #f97316;
  --success: #059669;
  --whatsapp: #25d366;
  --paypal: #003087;
  --dark: #0c1222;
  --darker: #070b14;
  --light-bg: #f0fdfa;
  --muted: #64748b;
  --text: #134e4a;
  --gradient-hero: linear-gradient(145deg, #042f2e 0%, #0c1222 40%, #134e4a 75%, #0f766e 100%);
  --gradient-cta: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  --gradient-accent: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  --shadow-soft: 0 20px 50px rgba(13, 148, 136, 0.12);
  --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.07);
  --shadow-btn: 0 10px 30px rgba(13, 148, 136, 0.35);
  --radius: 1.15rem;
  --radius-sm: 0.75rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ===== Navbar ===== */
.navbar {
  background: rgba(2, 6, 23, 0.88) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.navbar-brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff !important;
}

.navbar-brand i { color: var(--primary-light); }

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75) !important;
  padding: 0.4rem 0.75rem !important;
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.08);
}

/* ===== Hero ===== */
.hero-section {
  min-height: 92vh;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 75% 15%, rgba(99, 102, 241, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(244, 63, 94, 0.18) 0%, transparent 45%);
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, #fff, transparent);
  pointer-events: none;
}

.hero-section .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(165, 180, 252, 0.35);
  color: #99f6e4;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #fff;
  line-height: 1.15;
  font-size: clamp(1.85rem, 5vw, 3.1rem);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title .highlight {
  background: linear-gradient(90deg, #5eead4, #fdba74);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-price-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(13, 148, 136, 0.25));
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  margin: 1.1rem 0;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}

.hero-footnote {
  font-size: 0.88rem;
  line-height: 1.55;
  opacity: 0.9;
}

.btn-cta {
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2.6rem;
  border-radius: 50px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  transition: transform 0.25s, box-shadow 0.25s;
  border: none;
  letter-spacing: -0.01em;
}

.btn-cta:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
  background: #f8fafc;
  color: var(--primary-dark);
}

.btn-cta-secondary {
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 1.8rem;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: all 0.25s;
}

.btn-cta-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-trust span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-trust i { color: #34d399; font-size: 1rem; }

/* Animations */
.animate-fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Steps & sections ===== */
.step-badge {
  display: inline-block;
  background: var(--gradient-cta);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.section-title {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dark);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* ===== Option cards ===== */
.option-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.option-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-cta);
  opacity: 0;
  transition: opacity 0.3s;
}

.option-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft);
  border-color: #99f6e4;
}

.option-card:hover::before,
.option-card.selected::before { opacity: 1; }

.option-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15), var(--shadow-soft);
}

#card-option-a.selected {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18), var(--shadow-soft);
}
#card-option-a.selected::before { background: var(--success); }

.option-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  transition: transform 0.3s;
}

.option-card:hover .option-icon { transform: scale(1.08); }

/* ===== Product checks ===== */
.product-check {
  background: #f8fafc;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  border: 1px solid #e2e8f0;
}

.product-check:hover {
  background: #f0fdfa;
  border-color: #99f6e4;
}

.product-check .form-check-input:checked + .form-check-label {
  font-weight: 600;
  color: var(--success);
}

/* ===== Buttons ===== */
.btn-whatsapp {
  background: #25d366 !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.25s;
  padding: 0.65rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  background: #1da851 !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

.btn-paypal {
  background: var(--paypal);
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 0.95rem 2.2rem;
  border-radius: 50px;
  transition: all 0.25s;
}

.btn-paypal:hover {
  background: #001c64;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 48, 135, 0.4);
}

.btn-primary {
  background: var(--gradient-cta);
  border: none;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
  color: #fff;
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  font-weight: 600;
  border-radius: 50px;
}

.btn-success:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
  color: #fff;
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  border-radius: 50px;
}

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

.btn-warning {
  border-radius: 50px;
  font-weight: 700;
}

/* ===== Color chips ===== */
.color-chip {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #cbd5e1, 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  position: relative;
  transition: transform 0.2s;
}

.color-chip:hover { transform: scale(1.12); }

.color-chip .remove-color {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
  font-weight: bold;
}

/* ===== Share ===== */
.share-section {
  background: var(--darker);
  position: relative;
  overflow: hidden;
}

.share-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(13, 148, 136, 0.22) 0%, transparent 55%);
  pointer-events: none;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto;
}

@media (min-width: 576px) {
  .share-grid {
    grid-template-columns: repeat(6, 1fr);
    max-width: 560px;
    gap: 0.65rem;
  }
}

.share-btn-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 0.5rem;
  border-radius: 0.9rem;
  border: none;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  min-height: 72px;
}

.share-btn-label i { font-size: 1.35rem; }
.share-btn-label:hover { transform: translateY(-3px); filter: brightness(1.1); color: #fff; }

.share-whatsapp { background: #25d366; }
.share-facebook { background: #1877f2; }
.share-twitter { background: #0f172a; border: 1px solid rgba(255,255,255,0.12); }
.share-linkedin { background: #0a66c2; }
.share-email { background: #dc2626; }
.share-copy { background: var(--primary); }

/* ===== Price highlight ===== */
.price-highlight {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem 1.85rem;
  text-align: left;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.price-highlight h3 {
  color: var(--dark);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

/* ===== Cookie ===== */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(2, 6, 23, 0.97);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 1.15rem 0;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

#cookie-banner.hiding {
  transform: translateY(100%);
  opacity: 0;
}

#cookie-banner .btn-accept {
  background: var(--gradient-cta);
  border: none;
  font-weight: 700;
  color: #fff;
  padding: 0.55rem 1.5rem;
  border-radius: 50px;
}

#cookie-banner .btn-accept:hover {
  filter: brightness(1.1);
  color: #fff;
}

/* ===== Footer ===== */
.footer {
  background: var(--darker);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-link {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--primary-light); }

/* ===== Forms ===== */
.form-control {
  border-radius: var(--radius-sm);
  border-color: #e2e8f0;
  padding: 0.65rem 0.9rem;
}

.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.2);
  border-color: var(--primary);
}

.form-control-color {
  width: 3.2rem;
  height: 2.4rem;
  padding: 0.2rem;
}

.card {
  border-radius: var(--radius);
}

.form-control.is-invalid { border-color: #ef4444; }

/* ===== Table compare ===== */
.table-compare {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border-collapse: separate;
  border-spacing: 0;
}

.table-compare thead th {
  background: var(--dark);
  color: #fff;
  font-weight: 600;
  padding: 1.05rem 1.25rem;
  border: none;
  font-size: 0.95rem;
}

.table-compare tbody td {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.table-compare tbody tr:last-child td { border-bottom: none; }
.table-compare tbody tr:hover { background: #f8fafc; }

/* ===== Portfolio & testimonials ===== */
.portfolio-thumb {
  height: 150px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.portfolio-card,
.testimonial-card {
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius: var(--radius) !important;
  overflow: hidden;
}

.portfolio-card:hover,
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft) !important;
}

/* ===== FAQ ===== */
#faqAccordion .accordion-button {
  background: #fff;
  color: var(--dark);
  box-shadow: none;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm) !important;
}

#faqAccordion .accordion-button:not(.collapsed) {
  background: #f0fdfa;
  color: var(--primary-dark);
}

#faqAccordion .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

#faqAccordion .accordion-item {
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

/* ===== Complex projects ===== */
.complex-card {
  border-left: 4px solid var(--primary) !important;
  background: #fff;
  border-radius: var(--radius) !important;
}

/* ===== WhatsApp float ===== */
.whatsapp-float {
  position: fixed !important;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)) !important;
  right: 1.25rem !important;
  z-index: 10050 !important;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px;
  min-height: 58px;
  border-radius: 50% !important;
  background: #25d366 !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.75rem !important;
  line-height: 1 !important;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5) !important;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none !important;
  border: 3px solid #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.whatsapp-float i {
  color: #fff !important;
  font-size: 1.75rem !important;
  line-height: 1 !important;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  color: #fff !important;
  background: #1ebe57 !important;
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55) !important;
}

/* Espacio en el pie para que el float no tape enlaces */
.footer {
  padding-bottom: 5rem !important;
}

@media (max-width: 768px) {
  .footer {
    padding-bottom: 5.5rem !important;
  }

  .whatsapp-float {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
    right: 1rem !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px;
    min-height: 56px;
    font-size: 1.6rem !important;
  }

  .whatsapp-float i {
    font-size: 1.6rem !important;
  }
}

/* ===== Utility ===== */
.bg-light { background-color: var(--light-bg) !important; }

.alert-info {
  background: #f0fdfa;
  color: #115e59;
  border: 1px solid #99f6e4;
  border-radius: var(--radius-sm);
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .hero-section {
    min-height: 85vh;
    background: #0f172a;
  }

  .hero-section::before {
    background: radial-gradient(ellipse 100% 50% at 50% 0%, rgba(13, 148, 136, 0.3) 0%, transparent 55%);
  }

  .hero-section::after { height: 60px; }

  .hero-price-tag {
    font-size: 0.9rem;
    padding: 0.55rem 1.15rem;
  }

  .btn-cta {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
    width: 100%;
    max-width: 320px;
  }

  .btn-cta-secondary {
    width: 100%;
    max-width: 320px;
  }

  .option-card:hover { transform: none; }

  .hero-trust {
    gap: 0.75rem 1.25rem;
    margin-top: 1.5rem;
  }

  .hero-trust span { font-size: 0.8rem; }

  .share-btn-label {
    min-height: 68px;
    font-size: 0.7rem;
  }

  .table-compare thead th,
  .table-compare tbody td {
    padding: 0.75rem 0.85rem;
    font-size: 0.88rem;
  }

}

@media (max-width: 576px) {
  .hero-section { min-height: 90vh; }
  .navbar-brand { font-size: 1.15rem; }
}

/* ===== Packs ===== */
.pack-card { position: relative; }
.pack-featured {
  border: 2px solid #10b981 !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12), var(--shadow-soft);
}

.pack-badge-elegido {
  display: inline-block;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff !important;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
  line-height: 1.2;
}

/* Scroll offset navbar fija */
html {
  scroll-padding-top: 80px;
}

/* Confirm pack cards */
.confirm-pack-card {
  border-radius: var(--radius) !important;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  border: 2px solid transparent !important;
}

.confirm-pack-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft) !important;
}

.confirm-pack-card.selected {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15), var(--shadow-soft) !important;
}

#confirm-marca.selected {
  border-color: var(--success) !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18), var(--shadow-soft) !important;
}

.confirm-pack-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-left: auto;
  margin-right: auto;
}

/* ===== PWA install banner ===== */
.pwa-install-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 10040;
  max-width: 420px;
  margin: 0 auto;
}

.pwa-install-inner {
  background: #0f766e;
  color: #fff;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.pwa-install-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
  flex: 1 1 160px;
}

.pwa-install-text strong {
  font-size: 0.95rem;
}

.pwa-install-text span {
  opacity: 0.9;
  font-size: 0.8rem;
}

.pwa-install-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
