/* ============================================================
   WARM SUNSET — Estilo global: cálido, acogedor, hospitalidad
   Naranja/coral/ámbar, sensación de bienvenida, turismo
   Aplica a: Inicio, SEO, Chatbot, Header, Footer
   ============================================================ */

:root {
  --v4-primary: #ea580c;
  --v4-secondary: #dc2626;
  --v4-accent: #d97706;
  --v4-warm-bg: #fffbeb;
  --v4-warm-light: #fef3c7;
  --v4-warm-cream: #fefce8;
  --v4-text-dark: #451a03;
  --v4-text-body: #78350f;
  --v4-text-muted: #92400e;
}

/* Fondo general del body */
body {
  background-color: #fffbeb !important;
}

/* --- HERO --- */
.homepage-hero {
  background: linear-gradient(160deg, #fffbeb 0%, #fef3c7 25%, #fed7aa 60%, #fdba74 100%) !important;
  padding: 80px 0 110px !important;
  position: relative;
}

.homepage-hero .aurora-overlay {
  --aurora-gradient: repeating-linear-gradient(100deg, #fbbf24 10%, #f59e0b 15%, #ea580c 20%, #dc2626 25%, #fbbf24 30%) !important;
  opacity: 0.12 !important;
}

.homepage-hero h1 {
  color: #451a03 !important;
  font-weight: 800 !important;
}

.homepage-hero h2 {
  color: #ea580c !important;
  font-weight: 600 !important;
}

.hero-subtitle, .homepage-hero .hero-subtitle {
  color: #78350f !important;
}

.hero-header p strong {
  color: #dc2626 !important;
}

.hero-points li {
  color: #451a03 !important;
}

.hero-points li::before {
  color: #ea580c !important;
}

/* Hero media */
.hero-screen {
  box-shadow: 0 30px 70px -20px rgba(234, 88, 12, 0.2), 0 0 0 1px rgba(234, 88, 12, 0.1) !important;
  border-radius: 20px !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
}

.checklist-item {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(8px) !important;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.06) !important;
  color: #451a03 !important;
  border: 1px solid rgba(234, 88, 12, 0.1) !important;
  border-radius: 14px !important;
}

.check-icon {
  color: #ea580c !important;
}

/* Video del hero */
.hero-copy .video-wrapper h3 {
  color: #451a03 !important;
}

.hero-copy .video-container {
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.6) !important;
}

/* --- CTA Buttons --- */
.cta-primary {
  background: linear-gradient(135deg, #ea580c, #dc2626) !important;
  color: white !important;
  box-shadow: 0 12px 35px -10px rgba(234, 88, 12, 0.5) !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
}

.cta-primary:hover {
  box-shadow: 0 16px 45px -10px rgba(234, 88, 12, 0.6) !important;
  transform: translateY(-3px) !important;
}

.cta-primary small {
  color: rgba(255, 255, 255, 0.85) !important;
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.8) !important;
  color: #ea580c !important;
  border: 2px solid rgba(234, 88, 12, 0.3) !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 14px !important;
}

.cta-secondary:hover {
  background: white !important;
  border-color: #ea580c !important;
}

/* --- Divisor ondulado --- */
.homepage-hero::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23451a03' d='M0,20 C360,50 720,5 1080,35 C1260,45 1380,40 1440,38 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
  z-index: 2;
}

/* --- TRUST STRIP --- */
.trust-strip {
  background: #451a03 !important;
  padding: 40px 0 !important;
}

.trust-title {
  color: #fbbf24 !important;
}

.trust-metric {
  color: #fdba74 !important;
}

.trust-logo-card {
  background: rgba(251, 191, 36, 0.12) !important;
  color: #fef3c7 !important;
  border: 1px solid rgba(251, 191, 36, 0.2) !important;
}

.trust-logo-card.trust-logo-ses {
  background: white !important;
  border: none !important;
}

.trust-logo-card.trust-logo-count {
  border: 1px solid rgba(251, 191, 36, 0.3) !important;
}

/* --- SECTION HEADINGS --- */
.section-heading h2 {
  color: #451a03 !important;
  font-weight: 800 !important;
}

.section-heading p {
  color: #92400e !important;
}

/* --- WORKFLOW --- */
.workflow-section {
  background: #fffbeb !important;
  padding: 80px 0 !important;
}

.workflow-step {
  background: white !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 30px -10px rgba(234, 88, 12, 0.1) !important;
  border: 1px solid rgba(234, 88, 12, 0.08) !important;
  transition: all 0.3s ease !important;
}

.workflow-step:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 45px -12px rgba(234, 88, 12, 0.18) !important;
}

/* Override shine-border */
.workflow-step::before,
.workflow-step::after {
  display: none !important;
}

.step-number {
  background: linear-gradient(135deg, #ea580c, #dc2626) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.35) !important;
}

.workflow-step h3 {
  color: #451a03 !important;
}

.workflow-step p {
  color: #78350f !important;
}

.step-list li {
  color: #92400e !important;
}

.step-list li::before {
  color: #ea580c !important;
}

/* --- BENEFITS --- */
.benefits-section {
  background: #fffbeb !important;
  padding: 80px 0 !important;
}

.benefit-card {
  background: white !important;
  border: 1.5px solid rgba(234, 88, 12, 0.25) !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 20px -8px rgba(234, 88, 12, 0.1) !important;
}

.benefit-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 15px 40px -12px rgba(234, 88, 12, 0.2) !important;
  border-color: rgba(234, 88, 12, 0.45) !important;
}

/* Override shine-border */
.benefit-card:not(.highlight-card)::before,
.benefit-card:not(.highlight-card)::after {
  display: none !important;
}

.benefit-icon {
  font-size: 2rem !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.benefit-card h3 {
  color: #451a03 !important;
}

.benefit-card p {
  color: #78350f !important;
}

.benefit-card.highlight-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
  border: 2px solid #fbbf24 !important;
}

.benefit-card.highlight-card h3 {
  color: #451a03 !important;
}

.benefit-card.highlight-card::before {
  background: linear-gradient(135deg, #ea580c, #dc2626) !important;
}

/* --- VIDEO / TESTIMONIALS --- */
.video-testimonial-section {
  background: #fffbeb !important;
  grid-template-columns: 1fr !important;
  max-width: min(680px, 85vw) !important;
  text-align: center !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}

.video-column h2 {
  color: #451a03 !important;
  font-weight: 800 !important;
}

.video-column p {
  color: #92400e !important;
}

.video-frame {
  border-radius: 20px !important;
  box-shadow: 0 25px 60px -20px rgba(234, 88, 12, 0.2) !important;
  border: 2px solid rgba(234, 88, 12, 0.1) !important;
}

/* --- RESOURCES --- */
.resources-section {
  background: #fffbeb !important;
}

.resource-card {
  border-radius: 20px !important;
  border: 1px solid rgba(234, 88, 12, 0.08) !important;
  box-shadow: 0 4px 15px -5px rgba(234, 88, 12, 0.06) !important;
}

.resource-card:hover {
  box-shadow: 0 10px 30px -8px rgba(234, 88, 12, 0.12) !important;
  border-color: rgba(234, 88, 12, 0.15) !important;
}

.resource-card .resource-link {
  color: #ea580c !important;
}

/* --- GESTORES --- */
.gestores-section {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 50%, #fdba74 100%) !important;
}

.gestores-section .section-badge {
  background: linear-gradient(135deg, #ea580c, #dc2626) !important;
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.4) !important;
}

.gestores-section h2 {
  color: #451a03 !important;
}

.gestores-section .section-heading > p {
  color: #78350f !important;
}

.gestores-feature {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(234, 88, 12, 0.1) !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.05) !important;
}

.gestores-feature:hover {
  box-shadow: 0 10px 30px rgba(234, 88, 12, 0.1) !important;
  background: rgba(255, 255, 255, 0.95) !important;
}

.gestores-feature h3 {
  color: #451a03 !important;
}

.gestores-feature p {
  color: #78350f !important;
}

.gestores-cta {
  background: linear-gradient(135deg, #ea580c, #dc2626) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 40px rgba(234, 88, 12, 0.35) !important;
}

.gestores-cta h3, .gestores-cta p {
  color: white !important;
}

.gestores-cta .gestores-benefits-list li {
  color: rgba(255, 255, 255, 0.9) !important;
}

.gestores-cta .cta-primary {
  background: white !important;
  color: #ea580c !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

/* --- ROI --- */
.roi-section {
  background: #451a03 !important;
}

.roi-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 20px !important;
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.1) !important;
}

.roi-card h3, .roi-card li {
  color: #fef3c7 !important;
}

.roi-card p {
  color: #fdba74 !important;
}

.roi-card.highlight {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.2), rgba(220, 38, 38, 0.15)) !important;
  border: 2px solid rgba(251, 191, 36, 0.3) !important;
}

.roi-number {
  color: #fbbf24 !important;
  text-shadow: 0 0 30px rgba(251, 191, 36, 0.3) !important;
}

.roi-label {
  color: #fdba74 !important;
}

.cta-link {
  color: #fbbf24 !important;
}

/* --- CTA BANNER --- */
.cta-banner {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 50%, #b91c1c 100%) !important;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.cta-banner .cta-text h2,
#cta-final-title {
  color: white !important;
}

.cta-banner .cta-text p {
  color: rgba(255, 255, 255, 0.85) !important;
}

.cta-banner .cta-primary {
  background: white !important;
  color: #ea580c !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

.cta-banner .cta-primary:hover {
  transform: translateY(-3px) scale(1.02) !important;
}

.cta-secondary.ghost {
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: white !important;
}

.cta-secondary.ghost:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* --- SEO CONTENT --- */
.seo-content-section {
  background: #fffbeb !important;
}

.seo-section-title {
  color: #451a03 !important;
}

.seo-content-block {
  background: white !important;
  border-left: 4px solid #ea580c !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 25px -10px rgba(234, 88, 12, 0.08) !important;
}

.seo-block-title {
  color: #451a03 !important;
}

.seo-text, .seo-list li {
  color: #78350f !important;
}

.seo-cta-box {
  background: linear-gradient(135deg, #ea580c, #dc2626) !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 40px rgba(234, 88, 12, 0.3) !important;
}

.seo-btn-primary {
  background: white !important;
  color: #ea580c !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
}

.seo-btn-secondary {
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: white !important;
  border-radius: 12px !important;
}

/* --- AI OVERVIEW --- */
.ai-overview-section {
  background: #fffbeb !important;
}

.ai-overview-section h2 {
  color: #451a03 !important;
}

.ai-overview-section article {
  background: white !important;
  border-radius: 20px !important;
  box-shadow: 0 6px 25px -8px rgba(234, 88, 12, 0.08) !important;
  border: 1px solid rgba(234, 88, 12, 0.06) !important;
  transition: all 0.3s ease !important;
}

.ai-overview-section article:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 35px -10px rgba(234, 88, 12, 0.12) !important;
}

/* Bordes izquierdos con tonos cálidos */
.ai-overview-section article.border-l-4.border-blue-600 { border-left-color: #ea580c !important; }
.ai-overview-section article.border-l-4.border-green-600 { border-left-color: #d97706 !important; }
.ai-overview-section article.border-l-4.border-purple-600 { border-left-color: #dc2626 !important; }
.ai-overview-section article.border-l-4.border-orange-600 { border-left-color: #f59e0b !important; }
.ai-overview-section article.border-l-4.border-red-600 { border-left-color: #b91c1c !important; }
.ai-overview-section article.border-l-4.border-teal-600 { border-left-color: #ea580c !important; }
.ai-overview-section article.border-l-4.border-cyan-600 { border-left-color: #d97706 !important; }

.ai-overview-section .bg-blue-600 {
  background: linear-gradient(135deg, #ea580c, #dc2626) !important;
}

.ai-overview-section .border-amber-400 {
  border-color: #ea580c !important;
  color: #ea580c !important;
}

.ai-overview-section .text-amber-700 {
  color: #ea580c !important;
}

/* --- Animación de entrada suave --- */
@keyframes warmFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.workflow-step,
.benefit-card,
.gestores-feature {
  animation: warmFadeIn 0.5s ease backwards;
}

.workflow-step:nth-child(2),
.benefit-card:nth-child(2) { animation-delay: 0.1s; }
.workflow-step:nth-child(3),
.benefit-card:nth-child(3) { animation-delay: 0.2s; }
.workflow-step:nth-child(4),
.benefit-card:nth-child(4) { animation-delay: 0.3s; }

/* --- Efecto de sol/resplandor decorativo --- */
.homepage-hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   OVERRIDES GLOBALES: Tailwind utility classes
   Para páginas SEO que usan clases Tailwind de color azul
   ============================================================ */

/* --- Botones bg-blue → warm orange --- */
.bg-blue-600 {
  background-color: #ea580c !important;
}
.hover\:bg-blue-700:hover {
  background-color: #c2410c !important;
}
.bg-blue-500 {
  background-color: #f97316 !important;
}
.hover\:bg-blue-600:hover {
  background-color: #ea580c !important;
}

/* --- Texto azul → warm orange --- */
a.text-blue-600,
.text-blue-600 {
  color: #ea580c !important;
}
a.text-blue-700,
.text-blue-700,
.hover\:text-blue-700:hover {
  color: #c2410c !important;
}
a.text-blue-800,
.text-blue-800 {
  color: #9a3412 !important;
}
.hover\:text-blue-600:hover {
  color: #ea580c !important;
}
.text-blue-900 {
  color: #451a03 !important;
}

/* --- Backgrounds claros → cremas cálidos --- */
.bg-blue-50 {
  background-color: #fffbeb !important;
}
.bg-blue-100 {
  background-color: #fef3c7 !important;
}
.bg-green-50 {
  background-color: #fefce8 !important;
}
.hover\:bg-blue-50:hover {
  background-color: #fef3c7 !important;
}

/* --- Bordes azules → warm orange/amber --- */
.border-blue-200 {
  border-color: #fdba74 !important;
}
.border-blue-500 {
  border-color: #ea580c !important;
}
.border-blue-600 {
  border-color: #ea580c !important;
}
.focus\:ring-blue-500:focus {
  --tw-ring-color: #ea580c !important;
}
.focus\:border-blue-500:focus {
  border-color: #ea580c !important;
}
.ring-blue-500 {
  --tw-ring-color: #ea580c !important;
}

/* --- Gradientes → warm gradient --- */
.from-blue-50 {
  --tw-gradient-from: #fffbeb !important;
}
.to-green-50 {
  --tw-gradient-to: #fef3c7 !important;
}
.from-blue-600 {
  --tw-gradient-from: #ea580c !important;
}
.to-blue-700 {
  --tw-gradient-to: #c2410c !important;
}

/* --- Greens → amber/gold (como acento) --- */
.text-green-700 {
  color: #b45309 !important;
}
.text-green-600 {
  color: #d97706 !important;
}
.text-green-800 {
  color: #92400e !important;
}
.text-green-900 {
  color: #451a03 !important;
}
.bg-green-100 {
  background-color: #fef3c7 !important;
}
.border-green-300 {
  border-color: #fdba74 !important;
}

/* --- Purples → warm reds --- */
.text-purple-700 {
  color: #9a3412 !important;
}
.text-purple-800 {
  color: #7c2d12 !important;
}
.text-purple-900 {
  color: #451a03 !important;
}
.bg-purple-50 {
  background-color: #fff7ed !important;
}
.bg-purple-100 {
  background-color: #ffedd5 !important;
}
.border-purple-200 {
  border-color: #fed7aa !important;
}

/* --- border-t-4 colores de tarjetas comparativas --- */
.border-t-4.border-blue-600 {
  border-top-color: #ea580c !important;
}
.border-t-4.border-green-600 {
  border-top-color: #d97706 !important;
}
.border-t-4.border-purple-600 {
  border-top-color: #dc2626 !important;
}
.border-t-4.border-amber-600 {
  border-top-color: #b45309 !important;
}
.border-t-4.border-red-600 {
  border-top-color: #b91c1c !important;
}

/* --- border-l-4 colores de bloques --- */
.border-l-4.border-blue-500 {
  border-left-color: #ea580c !important;
}
.border-l-4.border-green-500 {
  border-left-color: #d97706 !important;
}

/* --- Amber/Yellow → más intenso warm --- */
.text-amber-700 {
  color: #92400e !important;
}
.border-amber-400 {
  border-color: #ea580c !important;
}
.hover\:bg-amber-50:hover {
  background-color: #fffbeb !important;
}

/* ============================================================
   SECCIÓN "TAMBIÉN TE INTERESA" — seo_base.html / seo_clean.html
   ============================================================ */

/* Fondo de la sección */
section.bg-gray-100.py-16 {
  background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%) !important;
}

/* Links en tarjetas */
section.bg-gray-100.py-16 a.text-blue-600,
section.bg-gray-100.py-16 a:hover {
  color: #ea580c !important;
}

/* Card de registro especial */
.bg-gradient-to-br.from-blue-50.to-green-50 {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
  border-color: #fbbf24 !important;
}

/* ============================================================
   BREADCRUMB — seo_base.html / seo_clean.html
   ============================================================ */

nav.bg-gray-50[aria-label="Breadcrumb"] {
  background-color: #fffbeb !important;
}

nav[aria-label="Breadcrumb"] a:hover {
  color: #ea580c !important;
}

/* ============================================================
   HEADER / NAVBAR — components/header.html
   ============================================================ */

.nav-links a:hover {
  color: #ea580c !important;
}

.btn-registro {
  background: linear-gradient(135deg, #ea580c, #dc2626) !important;
}

.menu-button {
  background-color: #ea580c !important;
}

.menu-button:hover {
  background-color: #c2410c !important;
}

.mobile-menu a:hover {
  color: #ea580c !important;
}

.mobile-btn[href="/registro"],
.mobile-btn-registro {
  background: linear-gradient(135deg, #ea580c, #dc2626) !important;
}

/* ============================================================
   FAQ PAGES — details/summary accordions
   ============================================================ */

details summary:hover {
  color: #ea580c !important;
}

details[open] summary {
  color: #ea580c !important;
}

/* ============================================================
   AURORA OVERLAY — global override
   ============================================================ */

.aurora-bg .aurora-overlay,
.aurora-overlay {
  --aurora-gradient: repeating-linear-gradient(100deg, #fbbf24 10%, #f59e0b 15%, #ea580c 20%, #dc2626 25%, #fbbf24 30%) !important;
  opacity: 0.12 !important;
}

/* ============================================================
   HERO BADGES globales
   ============================================================ */

.hero-badge {
  background: linear-gradient(135deg, #fef3c7, #fed7aa) !important;
  color: #ea580c !important;
  border: 1px solid rgba(234, 88, 12, 0.2) !important;
}

/* ============================================================
   CHATBOT — components/chatbot_simple.html
   ============================================================ */

/* Toggle button del chatbot */
#chat-toggle {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%) !important;
  box-shadow: 0 15px 35px rgba(234, 88, 12, 0.4), 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

#chat-toggle:hover {
  box-shadow: 0 25px 50px rgba(234, 88, 12, 0.6), 0 15px 30px rgba(0, 0, 0, 0.2) !important;
}

/* Globo promocional */
#chat-bubble {
  border-color: #ea580c !important;
}

/* Header del chat window */
#chat-header {
  background-color: #ea580c !important;
}

#chat-header p {
  color: #fed7aa !important;
}

/* Avatar del bot en welcome y typing */
#chat-messages div[style*="background-color: #2563eb"],
#typing-indicator div[style*="background-color: #2563eb"] {
  background-color: #ea580c !important;
}

/* Mensajes del usuario */
#chat-messages .user-message-container div[style*="background-color: #2563eb"] {
  background-color: #ea580c !important;
}

/* Send button */
#chat-send {
  background-color: #ea580c !important;
}

#chat-send:hover {
  background-color: #c2410c !important;
}

/* Input focus */
#chat-input:focus {
  border-color: #ea580c !important;
}

/* Typing cursor */
.typing-cursor {
  color: #ea580c !important;
}

/* Bot message typing highlight */
.bot-message-container.typing {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(234, 88, 12, 0.1) !important;
}

/* ============================================================
   TABLAS en páginas SEO (precios, comparativa)
   ============================================================ */

table thead th {
  background: #451a03 !important;
  color: #fef3c7 !important;
}

/* ============================================================
   PÁGINAS SEO: CTA finales, bloques con bg-blue-600
   ============================================================ */

section.bg-blue-600,
div.bg-blue-600 {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 50%, #b91c1c 100%) !important;
}

.bg-gradient-to-r.from-green-600.to-green-700 {
  background: linear-gradient(135deg, #ea580c, #dc2626) !important;
}

/* ============================================================
   COVERAGE / STATS SECTIONS — partes-automaticos.html
   ============================================================ */

.stats-strip {
  background: #451a03 !important;
}

.stat-card {
  background: rgba(251, 191, 36, 0.1) !important;
  border: 1px solid rgba(251, 191, 36, 0.2) !important;
}

/* Validation section color overrides */
.validation-card.is-blue { border-left-color: #ea580c !important; }
.validation-card.is-green { border-left-color: #d97706 !important; }
.validation-card.is-purple { border-left-color: #dc2626 !important; }
.validation-card.is-orange { border-left-color: #f59e0b !important; }

/* Feature cards */
.feature-card.highlight {
  border-color: #ea580c !important;
  background: #fffbeb !important;
}

/* Comparison section */
.comparison-section {
  background: #fffbeb !important;
}

/* Tecnología avanzada (scan-ia) — single column */
#scan-ia .feature-grid {
  grid-template-columns: 1fr !important;
  max-width: min(800px, 94vw) !important;
  text-align: center !important;
}

#scan-ia .feature-media {
  max-width: 500px !important;
  margin: 0 auto !important;
}

#scan-ia .feature-content {
  text-align: left !important;
}

/* Problem/Solution cards — pill tamaño correcto en grid */
.problem-card .section-pill,
.solution-card .section-pill {
  justify-self: start !important;
  align-self: start !important;
  height: auto !important;
  padding: 6px 16px !important;
}

/* Sections with white backgrounds → unified to #fffbeb */
.validation-section {
  background: #fffbeb !important;
}

.process-section {
  background: #fffbeb !important;
}

.testimonial-section {
  background: #fffbeb !important;
}

/* Problem-solution section */
.indicator.positive {
  color: #d97706 !important;
}

/* Integration cards */
.integration-card {
  border-color: rgba(234, 88, 12, 0.1) !important;
}

.integration-card:hover {
  border-color: #ea580c !important;
  box-shadow: 0 8px 25px rgba(234, 88, 12, 0.1) !important;
}

/* Pricing highlight section */
.pricing-highlight {
  background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
}

.pricing-copy {
  color: #451a03 !important;
}

.pricing-copy h2 {
  color: #451a03 !important;
}

.pricing-copy p {
  color: #78350f !important;
}

.pricing-list {
  color: #78350f !important;
}

.pricing-copy .section-pill {
  background: linear-gradient(135deg, #ea580c, #dc2626) !important;
  color: white !important;
}

.pricing-card {
  border-color: #ea580c !important;
}

.pricing-badge {
  background: linear-gradient(135deg, #ea580c, #dc2626) !important;
}

.pricing-number {
  color: #ea580c !important;
}

/* Compliance banner */
.compliance-banner {
  background: #451a03 !important;
}

/* FAQ section on sub-pages */
.faq-section {
  background: #fffbeb !important;
}

.faq-item {
  border-color: rgba(234, 88, 12, 0.1) !important;
}

/* Coverage section */
.coverage-section {
  background: #fffbeb !important;
}

.coverage-card {
  border-color: rgba(234, 88, 12, 0.1) !important;
}

.coverage-card:hover {
  border-color: #ea580c !important;
}

/* ============================================================
   BLOG PAGES
   ============================================================ */

/* Animated border glow on blog cards */
@property --blog-border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.grid.md\:grid-cols-2 > article {
  position: relative !important;
  background: #fffbeb !important;
  border: none !important;
  overflow: visible !important;
  z-index: 0 !important;
}

.grid.md\:grid-cols-2 > article::before {
  content: "" !important;
  position: absolute !important;
  inset: -2px !important;
  border-radius: 18px !important;
  background: conic-gradient(
    from var(--blog-border-angle),
    #ea580c 0%,
    #fbbf24 25%,
    #dc2626 50%,
    #f59e0b 75%,
    #ea580c 100%
  ) !important;
  z-index: -1 !important;
  animation: blog-border-spin 4s linear infinite !important;
}

.grid.md\:grid-cols-2 > article::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: 16px !important;
  background: #fffbeb !important;
  z-index: -1 !important;
}

@keyframes blog-border-spin {
  to { --blog-border-angle: 360deg; }
}

.grid.md\:grid-cols-2 > article:hover::before {
  animation-duration: 2s !important;
  inset: -3px !important;
  filter: blur(3px) !important;
}

article a {
  color: #ea580c !important;
}

article a:hover {
  color: #c2410c !important;
}

/* ============================================================
   CONTACTO PAGE — forms
   ============================================================ */

input:focus,
textarea:focus,
select:focus {
  border-color: #ea580c !important;
  --tw-ring-color: rgba(234, 88, 12, 0.5) !important;
}

/* ============================================================
   PRECIOS PAGE — pricing cards
   ============================================================ */

.bg-yellow-50,
.bg-amber-50 {
  background-color: #fffbeb !important;
}

.text-yellow-600 {
  color: #d97706 !important;
}

.border-yellow-200 {
  border-color: #fdba74 !important;
}

.bg-yellow-500 {
  background-color: #ea580c !important;
}

.hover\:bg-yellow-600:hover {
  background-color: #c2410c !important;
}

/* ============================================================
   LAYOUT UNIFICADO — Anchos consistentes en todas las secciones
   ============================================================ */

/* Widget Elfsight de reseñas (suelto entre hero y trust-strip) */
.testimonial-column {
  max-width: min(1200px, 94vw) !important;
  margin: 48px auto !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
}

/* Padding horizontal en secciones full-width */
.homepage-hero,
.trust-strip,
.workflow-section,
.benefits-section,
.resources-section,
.gestores-section,
.roi-section,
.cta-banner,
.seo-content-section {
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* Unificar max-width de todos los contenedores internos a 1200px */
.hero-header {
  max-width: min(1200px, 94vw) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hero-wrapper {
  max-width: min(1200px, 94vw) !important;
}

.trust-wrapper {
  max-width: min(1200px, 94vw) !important;
}

.workflow-grid {
  max-width: min(1200px, 94vw) !important;
}

.benefits-grid {
  max-width: min(1200px, 94vw) !important;
}

.video-testimonial-section {
  max-width: min(1200px, 94vw) !important;
}

.resources-grid {
  max-width: min(1200px, 94vw) !important;
}

.gestores-content {
  max-width: min(1200px, 94vw) !important;
}

.roi-wrapper {
  max-width: min(1200px, 94vw) !important;
}

.cta-container {
  max-width: min(1200px, 94vw) !important;
}

.seo-content-wrapper {
  max-width: min(1200px, 94vw) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* AI overview usa clases Tailwind: forzar mismo ancho */
.ai-overview-section > .container {
  max-width: min(1200px, 94vw) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.ai-overview-section .max-w-6xl {
  max-width: 100% !important;
}

.ai-overview-section {
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* ============================================================
   MEDIA QUERIES — Responsive adjustments
   ============================================================ */

@media (max-width: 768px) {
  .homepage-hero::before {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
  }

  /* Reducir padding lateral en móvil */
  .homepage-hero,
  .trust-strip,
  .workflow-section,
  .benefits-section,
  .resources-section,
  .gestores-section,
  .roi-section,
  .cta-banner,
  .seo-content-section,
  .ai-overview-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
