/* =============================================
   PAY PER CALL NETWORK - Estilos Globales
   Optimizado para conversiones y SEO
   ============================================= */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* ---- Contenedor ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   STICKY CALL BAR (Mobile First)
   ============================================= */
.sticky-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-accent, #e63946);
  z-index: 1000;
  padding: 10px 20px;
  display: none;
}

.sticky-call-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 600px;
  margin: 0 auto;
}

.sticky-call-text {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.sticky-call-btn {
  background: white;
  color: var(--color-accent, #e63946);
  padding: 8px 16px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .sticky-call-bar { display: block; }
  body { padding-bottom: 60px; }
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: white;
  border-bottom: 3px solid var(--color-primary, #1a3a6b);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary, #1a3a6b);
  text-decoration: none;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-trust {
  color: #2d6a4f;
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-call-header {
  background: var(--color-accent, #e63946);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-call-header:hover {
  background: #c1121f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230,57,70,0.4);
}

@media (max-width: 640px) {
  .header-trust { display: none; }
  .logo-text { font-size: 1.1rem; }
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--color-primary, #1a3a6b) 0%, #0d2040 100%);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="40" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="80" r="50" fill="rgba(255,255,255,0.02)"/></svg>') no-repeat;
  background-size: cover;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffd700;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  animation: fadeIn 0.5s ease;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #2ecc71;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46,204,113,0.7); }
  70% { box-shadow: 0 0 0 8px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}

.hero-headline {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: white;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subheadline {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Botón de llamada hero */
.btn-call-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--color-accent, #e63946);
  color: white;
  padding: 18px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(230,57,70,0.5);
}

.btn-call-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(230,57,70,0.6);
}

.btn-icon {
  font-size: 1.4rem;
}

.btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-text small {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.85;
}

/* Animación de pulso para CTA */
.btn-pulse {
  animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.cta-guarantee {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

/* Trust signals en hero */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Card de llamada rápida */
.quick-call-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.quick-call-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary, #1a3a6b);
  margin-bottom: 6px;
}

.quick-call-subtitle {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.btn-call-large {
  display: block;
  background: var(--color-accent, #e63946);
  color: white;
  padding: 20px;
  border-radius: 12px;
  text-decoration: none;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.btn-call-large:hover {
  background: #c1121f;
  transform: translateY(-2px);
}

.call-number-large {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.call-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 2px;
  letter-spacing: 2px;
}

.call-hours {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 16px;
}

.call-badges {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.call-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #444;
  padding: 6px 0;
  border-top: 1px solid #eee;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-form-panel { max-width: 450px; margin: 0 auto; width: 100%; }
}

/* =============================================
   TRUST BAR
   ============================================= */
.trust-bar {
  background: white;
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

.trust-bar-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.trust-bar-icon {
  font-size: 1.4rem;
}

.trust-bar-text strong {
  display: block;
  font-size: 1.1rem;
  color: var(--color-primary, #1a3a6b);
}

/* =============================================
   SECCIONES GENERALES
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--color-primary, #1a3a6b);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* =============================================
   SERVICIOS
   ============================================= */
.services-section {
  padding: 80px 0;
  background: var(--color-bg, #f8f9fa);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.service-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  border: 2px solid transparent;
  transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-decoration: none;
  display: block;
}

.service-card:hover {
  border-color: var(--color-primary, #1a3a6b);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.service-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary, #1a3a6b);
  margin-bottom: 8px;
}

.service-description {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.service-payout {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.service-cta {
  display: block;
  margin-top: 16px;
  color: var(--color-accent, #e63946);
  font-weight: 600;
  font-size: 0.9rem;
}

.services-cta {
  text-align: center;
}

/* =============================================
   PROCESO
   ============================================= */
.process-section {
  padding: 80px 0;
  background: white;
}

.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.process-step {
  flex: 1;
  min-width: 160px;
  max-width: 240px;
  text-align: center;
  padding: 24px 16px;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--color-primary, #1a3a6b);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 12px;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary, #1a3a6b);
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

.process-arrow {
  font-size: 1.5rem;
  color: var(--color-secondary, #c8a951);
  padding-top: 40px;
  font-weight: 700;
}

.process-cta {
  text-align: center;
}

@media (max-width: 600px) {
  .process-arrow { display: none; }
  .process-steps { gap: 16px; }
}

/* =============================================
   TESTIMONIALES
   ============================================= */
.testimonials-section {
  padding: 80px 0;
  background: var(--color-bg, #f8f9fa);
}

.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.stars {
  color: #f4d03f;
  font-size: 1.3rem;
  letter-spacing: 2px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-left: 4px solid var(--color-primary, #1a3a6b);
}

.testimonial-stars {
  color: #f4d03f;
  margin-bottom: 12px;
}

.testimonial-text {
  font-style: italic;
  color: #444;
  line-height: 1.6;
  margin-bottom: 16px;
}

.testimonial-author {
  font-weight: 700;
  color: var(--color-primary, #1a3a6b);
}

.testimonial-meta {
  font-size: 0.8rem;
  color: #888;
  margin-top: 2px;
}

/* =============================================
   FAQ
   ============================================= */
.faq-section {
  padding: 80px 0;
  background: white;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto 48px;
}

.faq-item {
  border: 1px solid #eee;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  color: var(--color-primary, #1a3a6b);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  font-size: 1rem;
  line-height: 1.4;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-primary, #1a3a6b);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  color: #555;
  line-height: 1.7;
  font-size: 0.95rem;
  border-top: 1px solid #f0f0f0;
  padding-top: 16px;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-cta {
  text-align: center;
}

.faq-cta p {
  margin-bottom: 16px;
  color: #555;
}

/* =============================================
   CIUDADES
   ============================================= */
.cities-section {
  padding: 60px 0;
  background: var(--color-bg, #f8f9fa);
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.city-link {
  display: block;
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--color-primary, #1a3a6b);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s;
}

.city-link:hover {
  border-color: var(--color-primary, #1a3a6b);
  background: var(--color-primary, #1a3a6b);
  color: white;
}

/* =============================================
   CTA FINAL
   ============================================= */
.final-cta-section {
  background: linear-gradient(135deg, var(--color-primary, #1a3a6b), #0d2040);
  padding: 80px 0;
  text-align: center;
}

.final-cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
}

.final-cta-inner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.btn-call-final {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-accent, #e63946);
  color: white;
  padding: 20px 40px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(230,57,70,0.4);
  margin-bottom: 16px;
}

.btn-call-final:hover {
  background: #c1121f;
  transform: translateY(-2px);
}

.final-cta-guarantee {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

/* =============================================
   PÁGINAS DE LOCALIZACIÓN
   ============================================= */
.hero-location { padding: 50px 0 70px; }

.breadcrumb {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.breadcrumb-sep { margin: 0 6px; }

.location-badge {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 6px;
  margin-bottom: 8px;
}

.local-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary, #1a3a6b);
}

.stat span {
  font-size: 0.75rem;
  color: #666;
}

/* Layout de contenido con sidebar */
.local-content-section {
  padding: 60px 0;
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.local-article h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary, #1a3a6b);
  margin-bottom: 20px;
}

.local-article h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin: 28px 0 12px;
}

.local-article p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 16px;
}

.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  padding: 8px 0;
  color: #444;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.local-info-box {
  background: #f8f9fa;
  border-left: 4px solid var(--color-primary, #1a3a6b);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

/* Sidebar */
.sidebar-call-box {
  background: var(--color-primary, #1a3a6b);
  color: white;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 24px;
}

.sidebar-call-box h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: white;
}

.btn-call-sidebar {
  display: block;
  background: var(--color-accent, #e63946);
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn-call-sidebar:hover {
  background: #c1121f;
}

.sidebar-benefits {
  list-style: none;
  padding: 0;
  text-align: left;
}

.sidebar-benefits li {
  padding: 4px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}

.sidebar-related, .sidebar-nearby {
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-related h4, .sidebar-nearby h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary, #1a3a6b);
  margin-bottom: 12px;
}

.sidebar-related ul, .sidebar-nearby ul {
  list-style: none;
  padding: 0;
}

.sidebar-related ul li, .sidebar-nearby ul li {
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-related ul li a, .sidebar-nearby ul li a {
  display: block;
  padding: 8px 0;
  color: #444;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.sidebar-related ul li a:hover, .sidebar-nearby ul li a:hover {
  color: var(--color-primary, #1a3a6b);
}

@media (max-width: 900px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
  .content-sidebar {
    order: -1;
  }
}

/* =============================================
   BOTONES GENERALES
   ============================================= */
.btn-call-section,
.btn-call-process,
.btn-call-faq {
  display: inline-block;
  background: var(--color-accent, #e63946);
  color: white;
  padding: 16px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(230,57,70,0.3);
}

.btn-call-section:hover,
.btn-call-process:hover,
.btn-call-faq:hover {
  background: #c1121f;
  transform: translateY(-2px);
}

.btn-call-footer {
  display: inline-block;
  background: var(--color-accent, #e63946);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 16px;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.8);
  padding: 60px 0 20px;
}

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

.footer-col h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 2;
  transition: color 0.2s;
}

.footer-links li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-trust { gap: 6px; }
  .trust-item { font-size: 0.75rem; }
}

/* =============================================
   UTILIDADES
   ============================================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }

/* Local FAQ en páginas de ciudad */
.local-faq {
  margin-top: 48px;
}

.local-faq h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary, #1a3a6b);
  margin-bottom: 20px;
}

.call-note {
  font-size: 0.8rem;
  color: #888;
  margin-top: 8px;
}

.final-cta-local {
  margin-top: 60px;
}

.final-note {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin-top: 12px;
}
