/* ==========================================================================
   LICORES COSTA / ESTILOS ESPECÍFICOS MARCA MATRIZ (paraguas.css)
   ========================================================================== */

body.theme-paraguas {
  font-family: var(--font-paraguas);
  background-color: var(--costa-black);
  color: var(--costa-bone);
}

/* --------------------------------------------------------------------------
   1. NAVEGACIÓN
   -------------------------------------------------------------------------- */
.paraguas-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(12, 12, 12, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(74, 107, 139, 0.25);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 86px;
}

.brand-nav-logo img {
  height: 75px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav-menu a {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(250, 245, 239, 0.8);
}

.nav-menu a:hover {
  color: var(--costa-blue-slate);
}

.btn-nav-b2b {
  padding: 0.55rem 1.3rem;
  background: rgba(74, 107, 139, 0.15);
  border: 1px solid var(--costa-blue-slate);
  border-radius: var(--radius-xs);
  color: var(--costa-bone) !important;
  font-weight: var(--fw-bold) !important;
  font-size: var(--text-xs) !important;
  letter-spacing: var(--ls-wider) !important;
  text-transform: uppercase;
}

.btn-nav-b2b:hover {
  background: var(--costa-blue-slate);
  color: var(--costa-black) !important;
}

/* Desplegable en Header Paraguas */
.nav-item-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-chevron {
  font-size: 0.65rem;
  transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--costa-blue-slate);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 270px;
  background: rgba(12, 12, 12, 0.98);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(74, 107, 139, 0.3);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-card);
  padding: 0.6rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s var(--ease-smooth);
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
  font-size: var(--text-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(250, 245, 239, 0.8);
  padding: 0.65rem 1.2rem;
  display: block;
  transition: all 0.25s ease;
}

.dropdown-menu li a:hover {
  background: rgba(74, 107, 139, 0.15);
  color: var(--costa-blue-slate);
  padding-left: 1.4rem;
}

/* --------------------------------------------------------------------------
   2. HERO PRINCIPAL (JERARQUÍA VISUAL CORREGIDA)
   -------------------------------------------------------------------------- */
.hero-paraguas {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 140px 0 90px 0;
  background: 
    radial-gradient(circle at 50% 35%, rgba(27, 42, 61, 0.6) 0%, rgba(12, 12, 12, 0.98) 75%),
    linear-gradient(180deg, rgba(12, 12, 12, 0.4) 0%, rgba(12, 12, 12, 1) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.hero-content-center {
  max-width: 920px;
  margin: 0 auto;
}

.hero-brand-symbol {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-md) auto;
  opacity: 0.9;
}

.hero-paraguas h1 {
  font-size: var(--text-hero);
  color: var(--costa-blue-slate);
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
}

.hero-paraguas h1 .hero-highlight {
  color: var(--costa-bone);
  font-weight: var(--fw-heavy);
  display: inline-block;
  position: relative;
}

.hero-paraguas p.lead {
  font-size: var(--text-md);
  line-height: var(--lh-relaxed);
  color: rgba(250, 245, 239, 0.85);
  font-weight: var(--fw-regular);
  margin-bottom: var(--space-lg);
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-costa-primary {
  padding: 0.95rem 2.2rem;
  background: var(--costa-blue-dark);
  border: 1px solid var(--costa-blue-slate);
  color: var(--costa-bone);
  border-radius: var(--radius-xs);
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-costa-primary:hover {
  background: var(--costa-blue-slate);
  color: var(--costa-black);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-blue);
}

.btn-costa-secondary {
  padding: 0.95rem 2.2rem;
  border: 1px solid rgba(250, 245, 239, 0.25);
  color: var(--costa-bone);
  border-radius: var(--radius-xs);
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-costa-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--costa-bone);
}

/* --------------------------------------------------------------------------
   3. SECCIÓN ORIGEN EDITORIAL
   -------------------------------------------------------------------------- */
.section-pad {
  padding: var(--space-2xl) 0;
  position: relative;
}

.eyebrow-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--costa-blue-slate);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-xs);
}

.section-heading {
  font-size: var(--text-2xl);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-md);
  color: var(--costa-bone);
  text-transform: uppercase;
  letter-spacing: var(--ls-tight);
}

.origen-editorial-box {
  background: rgba(18, 22, 28, 0.55);
  border: 1px solid rgba(74, 107, 139, 0.2);
  border-radius: var(--radius-sm);
  padding: var(--space-xl) var(--space-lg);
  max-width: 980px;
  margin: 0 auto;
}

.origen-paragraphs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.origen-paragraphs p {
  font-size: var(--text-md);
  line-height: var(--lh-relaxed);
  color: rgba(250, 245, 239, 0.82);
  font-weight: var(--fw-regular);
}

/* --------------------------------------------------------------------------
   4. TIMELINE HORIZONTAL INTERACTIVO CON DESPLIEGUE EN HOVER
   -------------------------------------------------------------------------- */
.evolucion-section {
  background: #090909;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-horizontal-wrap {
  position: relative;
  max-width: 1100px;
  margin: var(--space-lg) auto 0 auto;
  padding: 4rem 0 6rem 0;
}

.timeline-h-axis {
  position: absolute;
  top: 5.25rem;
  left: 5%;
  right: 5%;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 1;
}

.timeline-h-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  position: relative;
  z-index: 2;
}

.timeline-h-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  cursor: pointer;
  outline: none;
}

.h-marker {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--costa-black);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: var(--costa-bone);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;
  margin-bottom: var(--space-sm);
}

.h-step-preview .h-stage {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--costa-blue-slate);
  font-weight: var(--fw-bold);
  margin-bottom: 0.2rem;
}

.h-step-preview h4 {
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  color: var(--costa-bone);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

/* Tarjeta emergente que aparece solo en Hover o Focus */
.h-popover {
  position: absolute;
  top: 7rem;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 270px;
  background: rgba(18, 22, 28, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--costa-blue-slate);
  border-radius: var(--radius-xs);
  padding: var(--space-md);
  text-align: left;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.35s var(--ease-smooth);
  z-index: 10;
}

.h-popover-stage {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--costa-blue-slate);
  font-weight: var(--fw-bold);
  margin-bottom: 0.3rem;
}

.h-popover h3 {
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  color: var(--costa-bone);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  line-height: var(--lh-snug);
}

.h-popover p {
  font-size: var(--text-xs);
  line-height: var(--lh-normal);
  color: rgba(250, 245, 239, 0.8);
  font-weight: var(--fw-regular);
}

/* Efectos al pasar el cursor */
.timeline-h-step:hover .h-marker,
.timeline-h-step:focus .h-marker {
  background: var(--costa-blue-slate);
  border-color: var(--costa-blue-slate);
  color: var(--costa-black);
  transform: scale(1.15);
  box-shadow: var(--shadow-glow-blue);
}

.timeline-h-step:hover .h-step-preview h4,
.timeline-h-step:focus .h-step-preview h4 {
  color: var(--costa-blue-slate);
}

.timeline-h-step:hover .h-popover,
.timeline-h-step:focus .h-popover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Responsivo para móviles */
@media (max-width: 900px) {
  .timeline-h-axis {
    display: none;
  }
  .timeline-h-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .h-popover {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    width: 100%;
    margin-top: var(--space-sm);
  }
}

/* --------------------------------------------------------------------------
   5. PORTAL DE LÍNEAS HIJAS
   -------------------------------------------------------------------------- */
.lineas-showcase {
  background: radial-gradient(circle at 50% 50%, rgba(27, 42, 61, 0.2) 0%, rgba(12, 12, 12, 1) 100%);
}

.lines-grid-portal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.line-portal-card {
  background: rgba(16, 18, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.line-portal-card.card-exclusiva:hover {
  border-color: rgba(196, 168, 79, 0.5);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

/* Tarjeta Urbana con Ciclo Cromático Sincronizado */
.line-portal-card.card-urbana {
  animation: urbanCycleColor 10s linear infinite; /* Anima el color maestro en el padre */
}

/* Barra superior con gradiente continuo */
.line-portal-card.card-urbana::before {
  background: linear-gradient(90deg, #C83885, #D98835, #F5D321, #5BA778, #4F5CA2, #A94D21, #C83885);
  background-size: 300% 100%;
  animation: urbanGradientFlow 8s linear infinite;
}

.line-portal-card.card-urbana:hover {
  border-color: currentColor; /* Adopta exactamente el color activo del padre */
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

/* Etiqueta limpia sin rectángulo */
.card-urbana .portal-tag {
  color: currentColor !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}
.portal-brand-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-tag {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  font-weight: var(--fw-bold);
}

.portal-logo-img {
  height: 38px;
  width: auto;
  max-width: 140px;
}

.line-portal-card h3 {
  font-size: var(--text-xl);
  font-weight: var(--fw-heavy);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
}

.line-portal-card p.portal-desc {
  font-size: var(--text-sm);
  line-height: var(--lh-normal);
  color: rgba(250, 245, 239, 0.8);
  margin-bottom: var(--space-md);
  font-weight: var(--fw-regular);
}

.portal-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.portal-spec-item {
  font-size: var(--text-xs);
  padding: 0.35rem 0.75rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-weight: var(--fw-medium);
}

.btn-portal {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius-xs);
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-portal-exclusiva {
  background: rgba(196, 168, 79, 0.12);
  border: 1px solid rgba(196, 168, 79, 0.4);
  color: #F5F0E8;
}

.btn-portal-exclusiva:hover {
  background: #C4A84F;
  color: #0C0C0C;
}

/* Botón de Entrada fluido y sin parpadeos */
.btn-portal-urbana {
  border: 1px solid currentColor !important;
  color: inherit !important;
  background: rgba(255, 255, 255, 0.04);
  font-weight: var(--fw-bold);
  /* Se quita la transición de color para eliminar el efecto de pulso */
  transition: transform 0.3s ease, background-color 0.3s ease !important;
}

.btn-portal-urbana:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   6. FORMULARIO B2B / DISTRIBUIDORES
   -------------------------------------------------------------------------- */
.b2b-form-box {
  background: rgba(16, 20, 26, 0.8);
  border: 1px solid rgba(74, 107, 139, 0.3);
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-sm);
  margin-top: var(--space-md);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--costa-blue-slate);
  font-weight: var(--fw-bold);
}

.form-group input, .form-group select, .form-group textarea {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-xs);
  color: var(--costa-bone);
  font-size: var(--text-sm);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--costa-blue-slate);
}

/* --------------------------------------------------------------------------
   7. FOOTER PARAGUAS
   -------------------------------------------------------------------------- */
.paraguas-footer {
  background: #060606;
  padding: var(--space-xl) 0 var(--space-md) 0;
  border-top: 1px solid rgba(74, 107, 139, 0.2);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand-info .footer-logo-img {
  height: 44px;
  width: auto;
  margin-bottom: var(--space-sm);
}

.footer-brand-info p {
  font-size: var(--text-sm);
  color: rgba(250, 245, 239, 0.6);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-md);
  font-weight: var(--fw-regular);
}

.footer-nav-col h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--costa-blue-slate);
  margin-bottom: var(--space-sm);
  font-weight: var(--fw-bold);
}

.footer-nav-col ul {
  list-style: none;
}

.footer-nav-col li {
  margin-bottom: var(--space-xs);
}

.footer-nav-col a {
  font-size: var(--text-sm);
  color: rgba(250, 245, 239, 0.7);
  font-weight: var(--fw-regular);
}

.footer-nav-col a:hover {
  color: var(--costa-bone);
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--text-xs);
  color: rgba(250, 245, 239, 0.45);
}

@media (max-width: 900px) {
  .origen-paragraphs, .lines-grid-portal, .footer-top-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    display: none;
  }
  .footer-bottom-bar {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}