/* ==========================================================================
   ASESCONT GROUP - Asesoría Contable, Tributaria y Financiera
   Hoja de Estilos Oficial (Estructura idéntica a Sagritech)
   ========================================================================== */

:root {
  /* Paleta Corporativa Asescont Group */
  --c-navy: #081b45;
  --c-navy-dark: #040e24;
  --c-navy-light: #163677;
  --c-navy-subtle: #edf2f9;

  --c-orange: #ff6000;
  --c-orange-hover: #e55600;
  --c-orange-subtle: #fff4ed;
  --c-orange-glow: rgba(255, 96, 0, 0.35);

  /* Fondos y superficies */
  --bg-deep: #f8fafc;
  --bg-overlay-start: rgba(255, 255, 255, 0.85);
  --bg-overlay-mid: rgba(248, 250, 252, 0.92);
  --bg-overlay-end: rgba(241, 245, 249, 0.96);

  /* Tarjetas y superficies */
  --card-white: #ffffff;
  --card-border: #e2e8f0;
  --glass-bg: #ffffff;
  --glass-border: #e2e8f0;
  --glass-hover: #ffffff;

  /* Tipografía */
  --text-primary: #081b45;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dark: #081b45;

  /* Sombras */
  --shadow-soft: 0 10px 30px -5px rgba(8, 27, 69, 0.08);
  --shadow-glow: 0 0 25px var(--c-orange-glow);
  --shadow-card: 0 12px 30px -8px rgba(8, 27, 69, 0.08), 0 0 0 1px rgba(8, 27, 69, 0.06);

  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Reset y base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Hero Section Principal
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  overflow: hidden;
}

/* 1. Capa de Imágenes de Fondo Dinámicas (Efecto Cinematográfico Ken Burns) */
.hero-bg-slideshow {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  z-index: 1;
  overflow: hidden;
  opacity: 0.35;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  transition: opacity 2.2s cubic-bezier(0.4, 0, 0.2, 1), transform 8s ease-out;
  will-change: opacity, transform;
}

.hero-bg-slide.active {
  opacity: 1;
  transform: scale(1.06);
}

/* 2. Capa de Sombra y Oscurecimiento para Máximo Contraste */
.hero-dark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.75) 0%, rgba(248, 250, 252, 0.6) 55%, rgba(235, 242, 250, 0.68) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(8, 27, 69, 0.1) 100%);
  backdrop-filter: blur(1px);
}

/* 3. Trama tecnológica interactiva que se ilumina con el mouse */
.hero-tech-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

/* Capa base continua y sutil */
.hero-tech-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(8, 27, 69, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(8, 27, 69, 0.15) 1px, transparent 1px);
}

/* Capa de líneas iluminadas sutilmente con el cursor */
.hero-tech-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 96, 0, 0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 96, 0, 0.45) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(circle 220px at var(--mouse-x, -500px) var(--mouse-y, -500px), #000 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  mask-image: radial-gradient(circle 220px at var(--mouse-x, -500px) var(--mouse-y, -500px), #000 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  opacity: var(--grid-glow-opacity, 0);
  transition: opacity 0.4s ease;
}

/* 4. Lienzo de micropartículas inteligentes */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

/* Contenedor central del contenido */
.hero-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeInDown 0.8s ease-out;
}

/* --------------------------------------------------------------------------
   Insignia
   -------------------------------------------------------------------------- */
.smart-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid rgba(8, 27, 69, 0.12);
  box-shadow: 0 4px 15px rgba(8, 27, 69, 0.05);
  backdrop-filter: blur(8px);
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--c-orange);
  box-shadow: 0 0 10px var(--c-orange-glow);
  animation: pulse 2s infinite;
}

.badge-text strong {
  color: var(--c-navy);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Vitrina del Logo
   -------------------------------------------------------------------------- */
.logo-showcase {
  margin-bottom: 1.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo-card {
  background: transparent;
  height: 130px;
  width: auto;
  max-width: 480px;
  border-radius: 0;
  box-shadow: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: transform var(--transition-normal);
  position: relative;
  filter: drop-shadow(0 4px 12px rgba(8, 27, 69, 0.08));
}

.logo-card:hover {
  transform: translateY(-3px) scale(1.03);
  filter: drop-shadow(0 8px 20px rgba(8, 27, 69, 0.12)) drop-shadow(0 0 15px rgba(255, 96, 0, 0.18));
}

.brand-logo {
  height: 120px;
  max-height: 125px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Titular y Tagline
   -------------------------------------------------------------------------- */
.hero-tagline {
  margin-bottom: 1.5rem;
  max-width: 860px;
}

.headline {
  font-size: clamp(1.25rem, 2.35vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-navy);
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 2px rgba(8, 27, 69, 0.05);
  line-height: 1.3;
}

.headline-accent {
  background: linear-gradient(135deg, var(--c-navy) 15%, var(--c-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.description {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.6;
  opacity: 0.95;
  max-width: 660px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Microindicadores de Especialidad / Respaldo
   -------------------------------------------------------------------------- */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 1.85rem;
  max-width: 760px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(8, 27, 69, 0.1);
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: 0 2px 6px rgba(8, 27, 69, 0.03);
  backdrop-filter: blur(6px);
  transition: all var(--transition-fast);
}

.trust-badge:hover {
  background: #ffffff;
  border-color: rgba(255, 96, 0, 0.4);
  color: var(--c-navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(8, 27, 69, 0.06);
}

.trust-icon {
  color: var(--c-orange);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Sección de Contacto (Tarjetas interactivas)
   -------------------------------------------------------------------------- */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  margin-bottom: 1.75rem;
}

.contact-item {
  background: var(--card-white);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--text-primary);
  min-width: 260px;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.contact-item:hover {
  background: var(--glass-hover);
  border-color: var(--c-orange);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(8, 27, 69, 0.12), 0 0 15px rgba(255, 96, 0, 0.2);
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--c-orange-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-orange);
  flex-shrink: 0;
  border: 1px solid rgba(255, 96, 0, 0.25);
}

.whatsapp-icon-wrap {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.35);
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex-grow: 1;
}

.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Indicador de disponibilidad en tiempo real (En línea) */
.online-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #25d366;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.online-pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #25d366;
  box-shadow: 0 0 8px #25d366;
  flex-shrink: 0;
}

.online-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid #25d366;
  animation: rippleOnline 1.8s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes rippleOnline {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }

  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.contact-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--c-navy);
  text-decoration: none;
  word-break: break-word;
}

.contact-value:hover {
  color: var(--c-orange);
}

.whatsapp-item:hover .contact-value {
  color: #25d366;
}

/* Botón de copiar correo */
.btn-copy {
  background: rgba(8, 27, 69, 0.04);
  border: 1px solid rgba(8, 27, 69, 0.12);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 0.45rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  background: var(--c-orange);
  color: #ffffff;
  border-color: var(--c-orange);
}

.copy-tooltip {
  position: absolute;
  top: -32px;
  right: 0;
  background: var(--c-navy);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.btn-copy.copied .copy-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  background: #10b981;
  color: #ffffff;
}

.action-arrow {
  color: var(--text-muted);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.whatsapp-item:hover .action-arrow {
  transform: translateX(3px);
  color: #25d366;
}

/* --------------------------------------------------------------------------
   Barra de Aviso
   -------------------------------------------------------------------------- */
.notice-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  border: 1px dashed rgba(8, 27, 69, 0.2);
  margin-bottom: 6.75rem;
  backdrop-filter: blur(8px);
}

.notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-orange);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Footer del Hero y Firma Wilbort.dev
   -------------------------------------------------------------------------- */
.hero-footer {
  width: 100%;
  max-width: 680px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
  border-top: 1px solid rgba(8, 27, 69, 0.14);
}

.footer-copy {
  opacity: 0.85;
  margin: 0;
}

.dev-signature {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dev-text {
  opacity: 0.75;
}

.dev-brand {
  color: var(--c-orange);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: var(--c-orange-subtle);
  border: 1px solid rgba(255, 96, 0, 0.25);
  transition: all var(--transition-fast);
}

.dev-brand:hover {
  background: var(--c-orange);
  color: #ffffff;
  border-color: var(--c-orange);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Animaciones
   -------------------------------------------------------------------------- */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 96, 0, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(255, 96, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 96, 0, 0);
  }
}

@keyframes kenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }

  100% {
    transform: scale(1.07) translate(-1.2%, -0.8%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-media {
    animation: none;
    transform: scale(1.03);
  }
}

/* --------------------------------------------------------------------------
   Ajustes Responsivos
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1rem;
  }

  .logo-card {
    height: 105px;
    max-width: 360px;
  }

  .brand-logo {
    height: 100px;
    max-height: 105px;
  }

  .trust-badges {
    gap: 0.45rem;
    margin-bottom: 1.5rem;
  }

  .trust-badge {
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
  }

  .contact-section {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 380px;
  }

  .contact-item {
    min-width: unset;
    width: 100%;
  }

  .notice-bar {
    font-size: 0.76rem;
    text-align: center;
    padding: 0.45rem 1rem;
    margin-bottom: 2rem;
  }

  .hero-footer {
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-align: center;
    padding-top: 1.35rem;
  }
}

@media (max-width: 480px) {
  .smart-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.85rem;
  }

  .logo-card {
    height: 90px;
    max-width: 290px;
    border-radius: 0;
  }

  .brand-logo {
    height: 85px;
    max-height: 90px;
  }

  .headline {
    font-size: 1.35rem;
  }

  .description {
    font-size: 0.88rem;
  }
}
