.floating-gold-btn svg {
  width: 32px;
  height: 32px;
  fill: var(--azul-corporativo);
  transition: fill 0.3s;
}
.floating-gold-btn:hover svg {
  fill: var(--azul-claro); /* azul claro corporativo en hover */
}
/* ========================================
   BOTÓN FLOTANTE DORADO GLOBAL
   ======================================== */
.floating-gold-btn {
  position: fixed;
  left: 32px;
  bottom: 60px;
  z-index: 9999;
  background: linear-gradient(135deg, var(--dorado-brillante) 0%, var(--dorado-medio) 100%);
  color: var(--azul-corporativo);
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  box-shadow: 0 8px 32px rgba(201, 169, 97, 0.25), 0 0 0 4px rgba(255,215,0,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.2s;
  animation: btn-gold-pulse 2s infinite;
}

/* Ajustes para móvil */
@media (max-width: 768px) {
  .floating-gold-btn {
    left: 16px;
    bottom: 20px;
    width: 48px;
    height: 48px;
  }

  .floating-gold-btn svg {
    width: 24px !important;
    height: 24px !important;
  }
}
.floating-gold-btn:hover {
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.35), 0 0 0 6px rgba(255,215,0,0.18);
  transform: scale(1.08);
  /* Mantener el icono en azul claro al hacer hover */
  color: var(--azul-claro) !important;
}
.floating-gold-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor !important;
  /* Asegurar que el trazo (stroke) también use el color actual */
  stroke: currentColor !important;
  pointer-events: none;
}
.floating-gold-btn:hover svg {
  fill: var(--azul-claro) !important;
  stroke: var(--azul-claro) !important;
}

/* Asegurar que todos los paths/polylines dentro del botón respeten el color */
.floating-gold-btn svg path,
.floating-gold-btn svg polyline,
.floating-gold-btn svg line,
.floating-gold-btn svg circle {
  stroke: currentColor !important;
  fill: none;
}
.floating-gold-btn:hover svg path,
.floating-gold-btn:hover svg polyline,
.floating-gold-btn:hover svg line,
.floating-gold-btn:hover svg circle {
  stroke: var(--azul-claro) !important;
  fill: none;
}

/* Extra high-specificity rule to override any remaining icon styles (force blue on hover) */
.floating-gold-btn:hover svg,
.floating-gold-btn:hover svg * {
  stroke: var(--azul-claro) !important;
  fill: var(--azul-claro) !important;
  color: var(--azul-claro) !important;
}
#article-image.floated {
  float: right;
  width: 220px !important;
  height: 160px !important;
  object-fit: cover;
  margin: 0 0 24px 32px;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(26,54,93,0.10);
}
/* Imagen destacada en el post individual */
#article-image {
  width: 220px !important;
  height: 160px !important;
  object-fit: cover;
  display: block;
  margin: 0 auto 32px auto;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(26,54,93,0.10);
}
/* Miniaturas del blog más pequeñas */
.card-hover img {
  width: 120px !important;
  height: 90px !important;
  object-fit: cover;
  display: block;
  margin: 16px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(26,54,93,0.08);
}
/* ========================================
   STUDIO LEGALE LAURA REHDER - CUSTOM STYLES
   ======================================== */

/* Variables de colores */
:root {
  --azul-corporativo: #60282c;
  --azul-claro: #521418;
  --dorado-brillante: #FFD700;
  --dorado-claro: #F4E6C3;
  --dorado-medio: #C9A961;
  --dorado-oscuro: #B8860B;
  --dorado-profundo: #8B6914;
  --verde-italia: #009246;
  --gris-perla: #f5f5f5;
  --gris-medio: #6b7280;
  --gris-oscuro: #2d3748;
  --blanco: #ffffff;
}

/* Tipografía */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@400;600;700&display=swap');

body {
  font-family: 'Inter', sans-serif;
  color: var(--gris-oscuro);
  line-height: 1.6;
}

h1, h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  background: linear-gradient(135deg,
    var(--dorado-oscuro) 0%,
    var(--dorado-medio) 12.5%,
    var(--dorado-brillante) 25%,
    var(--dorado-claro) 37.5%,
    var(--dorado-brillante) 50%,
    var(--dorado-medio) 62.5%,
    var(--dorado-oscuro) 75%,
    var(--dorado-medio) 87.5%,
    var(--dorado-oscuro) 100%);
  background-size: 400% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shimmer 16s linear infinite;
  text-shadow: 0 0 30px rgba(201, 169, 97, 0.5);
  position: relative;
}
  @media (max-width: 768px) {
    h1, h2 {
      filter: blur(0.3px) brightness(1.01);
    }
  }

h2::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    transparent 0%,
    rgba(255, 215, 0, 0.3) 50%,
    transparent 100%);
  background-size: 200% auto;
  animation: gold-shine 6s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes gold-shimmer {
  0% { background-position: 400% center; }
  100% { background-position: 0% center; }
}

@keyframes gold-shine {
  0%, 100% { opacity: 0; transform: translateX(100%); }
  50% { opacity: 1; transform: translateX(-100%); }
}

h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--azul-corporativo);
  font-weight: 700;
}

/* Clase para forzar el degradado dorado brillante */
.text-gold-gradient {
  background: linear-gradient(135deg,
    var(--dorado-oscuro) 0%,
    var(--dorado-medio) 12.5%,
    var(--dorado-brillante) 25%,
    var(--dorado-claro) 37.5%,
    var(--dorado-brillante) 50%,
    var(--dorado-medio) 62.5%,
    var(--dorado-oscuro) 75%,
    var(--dorado-medio) 87.5%,
    var(--dorado-oscuro) 100%);
  background-size: 400% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shimmer 20s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* Clase para texto dorado sólido con brillo */
.text-gold {
  color: var(--dorado-oscuro);
  text-shadow: 0 1px 2px rgba(139, 105, 20, 0.1);
  transition: all 0.3s ease;
}

/* Texto dorado hover effect */
.text-gold-hover {
  transition: all 0.3s ease;
  color: var(--dorado-oscuro);
}

.text-gold-hover:hover {
  color: var(--dorado-brillante);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  filter: brightness(1.2);
}


/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Header sticky - solo añade efectos visuales sin cambiar position */
.header-sticky {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-transparent {
  background: transparent;
  box-shadow: none;
}

/* Hero overlay */
.hero-overlay {
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.8) 0%, rgba(10, 10, 10, 0.5) 100%);
}

/* Botones con efectos dorados */
.btn-primary {
  position: relative;
  background: linear-gradient(135deg, var(--azul-corporativo) 0%, var(--azul-claro) 100%);
  color: var(--blanco);
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 215, 0, 0.4),
    transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg,
    var(--dorado-oscuro) 0%,
    var(--dorado-brillante) 50%,
    var(--dorado-oscuro) 100%);
  background-size: 200% auto;
  transform: translateY(-3px);
  box-shadow:
    0 15px 35px rgba(201, 169, 97, 0.4),
    0 0 20px rgba(255, 215, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: var(--dorado-brillante);
  animation: btn-gold-pulse 3s ease-in-out infinite;
}

/* Hero payment button: base is semi-transparent white; on hover use the same golden treatment as .btn-primary:hover */
.btn-pay-hero {
  /* keep hero visual: translucent white */
  background: rgba(255,255,255,0.18);
  color: var(--blanco);
  border: 2px solid rgba(255,255,255,0.18);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-pay-hero:hover {
  /* adopt golden gradient and effects from .btn-primary:hover */
  background: linear-gradient(135deg,
    var(--dorado-oscuro) 0%,
    var(--dorado-brillante) 50%,
    var(--dorado-oscuro) 100%);
  background-size: 200% auto;
  color: var(--blanco);
  transform: translateY(-3px);
  box-shadow:
    0 15px 35px rgba(201, 169, 97, 0.4),
    0 0 20px rgba(255, 215, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: var(--dorado-brillante);
  animation: btn-gold-pulse 3s ease-in-out infinite;
}

@keyframes btn-gold-pulse {
  0%, 100% { box-shadow: 0 15px 35px rgba(201, 169, 97, 0.4), 0 0 20px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 15px 40px rgba(201, 169, 97, 0.6), 0 0 30px rgba(255, 215, 0, 0.5); }
}

.btn-secondary {
  background: transparent;
  color: var(--azul-corporativo);
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--azul-corporativo);
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.btn-secondary:hover {
  /* Hover: white background with azul text for better contrast on hero */
  background: var(--blanco);
  color: var(--azul-corporativo);
  transform: translateY(-2px);
  border-color: var(--azul-corporativo);
}

/* Hero-specific secondary button: use solid azul-corporativo at rest on dark hero backgrounds */
.btn-hero {
  background: var(--azul-corporativo);
  color: var(--blanco);
  border-color: var(--azul-corporativo);
}

.btn-hero:hover {
  background: linear-gradient(135deg, var(--azul-claro) 0%, var(--azul-corporativo) 100%);
  color: var(--blanco);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(26, 54, 93, 0.2);
}

/* Cards con hover elegante y brillo dorado */
.card-hover {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
}

.card-hover::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
    rgba(255, 215, 0, 0.1) 0%,
    transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.card-hover:hover::before {
  opacity: 1;
  animation: card-glow-rotate 6s linear infinite;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 50px rgba(26, 54, 93, 0.15),
    0 0 30px rgba(201, 169, 97, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border-color: var(--dorado-medio);
  background: linear-gradient(145deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(244, 230, 195, 0.1) 100%);
}

@keyframes card-glow-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Servicios grid */
.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--azul-corporativo) 0%, #2d4a7c 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanco);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

/* Styles specifically for the "Por Qué Elegirnos" section */
.why-choose .grid > div {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.04);
  padding: 1.5rem 1.25rem;
  border-radius: 12px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.why-choose .grid > div:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(10,30,60,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
}

.why-choose .service-icon {
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.06);
}

.why-choose h3 {
  font-size: 1.125rem; /* ~text-lg */
  color: var(--blanco);
}

.why-choose p {
  color: rgba(255,255,255,0.9);
}

/* restored original card styles */

.card-hover:hover .service-icon {
  background: linear-gradient(135deg, var(--dorado-medio) 0%, var(--dorado-oscuro) 100%);
  transform: rotate(5deg) scale(1.1);
}

/* Timeline proceso judicial */
.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 30px;
  bottom: -30px;
  width: 2px;
  background: linear-gradient(180deg, var(--azul-corporativo) 0%, var(--dorado-medio) 100%);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  background: var(--dorado-medio);
  border: 3px solid var(--blanco);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--azul-corporativo);
}

/* Payment method selector (compacto) */
.payment-method {
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.payment-method:hover {
  border-color: var(--dorado-medio) !important;
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.2);
  transform: translateY(-2px);
}

.payment-method.selected {
  border-color: var(--azul-corporativo) !important;
  background: rgba(26, 54, 93, 0.03);
  box-shadow: 0 4px 16px rgba(26, 54, 93, 0.15);
}

.payment-method.selected .payment-check {
  display: block !important;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-success {
  background: #d4edda;
  color: #155724;
}

.badge-gold {
  background: rgba(224, 170, 62, 0.15);
  color: var(--dorado-oscuro);
}

.badge-blue {
  background: rgba(26, 54, 93, 0.1);
  color: var(--azul-corporativo);
}

/* Loading spinner */
.spinner {
  border: 3px solid rgba(26, 54, 93, 0.2);
  border-top-color: var(--azul-corporativo);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success checkmark animation */
.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--verde-italia);
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: var(--blanco);
  stroke-miterlimit: 10;
  margin: 10% auto;
  box-shadow: inset 0px 0px 0px var(--verde-italia);
  animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 30px var(--verde-italia);
  }
}

@keyframes scale {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--azul-corporativo);
  color: var(--blanco);
  padding: 20px;
  z-index: 10000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

/* Aceptar cookies button: mantener texto azul al hacer hover */
#accept-cookies {
  background: var(--blanco);
  color: var(--azul-corporativo);
}

#accept-cookies:hover {
  background: #f8fafc; /* gray-100 */
  color: var(--azul-corporativo) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26,54,93,0.08);
}

/* Formularios */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--azul-corporativo);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.input-error {
  border-color: #e53e3e !important;
}

.error-message {
  color: #e53e3e;
  font-size: 0.875rem;
  margin-top: 4px;
}

/* Accordion FAQ */
.accordion-item {
  background-color: var(--blanco);
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26, 54, 93, 0.1);
  border-color: var(--dorado-medio);
}

.accordion-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--azul-corporativo);
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: none;
}

.accordion-button .accordion-icon {
  transition: transform 0.3s ease;
  width: 24px;
  height: 24px;
  stroke: var(--dorado-medio) !important;
  color: var(--dorado-medio) !important;
  flex-shrink: 0;
}

.accordion-button.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-button.active {
  color: var(--dorado-oscuro);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 1.5rem;
  color: var(--gris-medio);
}

.accordion-content.open {
  max-height: 1000px; /* Suficiente para cualquier contenido */
  padding: 0 1.5rem 1.5rem;
}

.accordion-content p {
  margin-bottom: 1rem;
}

.accordion-content ul, .accordion-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}


/* Responsive utilities */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem; /* Aumentar un poco para el nuevo efecto */
  }

  h2 {
    font-size: 2rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 24px;
    font-size: 0.95rem;
  }
}

/* Utilidades generales */
 .bg-gradient-blue {
  background: linear-gradient(135deg, var(--azul-corporativo) 0%, #3d0407 100%);
}

.bg-gradient-gold {
  background: linear-gradient(135deg, var(--dorado-medio) 0%, var(--dorado-oscuro) 100%);
}

.text-gold {
  color: var(--dorado-medio);
}

.border-gold {
  border-color: var(--dorado-medio);
}

.shadow-elegant {
  box-shadow: 0 10px 40px rgba(26, 54, 93, 0.1);
}

/* Separador decorativo */
.separator {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--azul-corporativo) 0%, var(--dorado-medio) 100%);
  margin: 20px auto;
}

/* ========================================
   EFECTOS DORADOS PREMIUM
   ======================================== */

/* Bordes dorados animados */
.border-gold-glow {
  border: 2px solid var(--dorado-medio);
  box-shadow:
    0 0 15px rgba(201, 169, 97, 0.4),
    inset 0 0 15px rgba(255, 215, 0, 0.1);
  animation: border-gold-pulse 2s ease-in-out infinite;
}

@keyframes border-gold-pulse {
  0%, 100% {
    border-color: var(--dorado-medio);
    box-shadow: 0 0 15px rgba(201, 169, 97, 0.4), inset 0 0 15px rgba(255, 215, 0, 0.1);
  }
  50% {
    border-color: var(--dorado-brillante);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6), inset 0 0 25px rgba(255, 215, 0, 0.2);
  }
}

/* Fondos con gradiente dorado */
.bg-gold-gradient {
  background: linear-gradient(135deg,
    var(--dorado-profundo) 0%,
    var(--dorado-oscuro) 25%,
    var(--dorado-medio) 50%,
    var(--dorado-claro) 75%,
    rgba(255, 255, 255, 0.9) 100%);
  position: relative;
  overflow: hidden;
}

.bg-gold-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
    transparent 30%,
    rgba(255, 215, 0, 0.2) 50%,
    transparent 70%);
  animation: bg-shine 3s linear infinite;
}

@keyframes bg-shine {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Iconos dorados con brillo */
.icon-gold {
  color: var(--dorado-medio);
  filter: drop-shadow(0 0 8px rgba(201, 169, 97, 0.5));
  transition: all 0.3s ease;
}

.icon-gold:hover {
  color: var(--dorado-brillante);
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
  transform: scale(1.1) rotate(5deg);
}

/* Badges dorados premium */
.badge-gold-premium {
  background: linear-gradient(135deg,
    var(--dorado-oscuro) 0%,
    var(--dorado-brillante) 50%,
    var(--dorado-oscuro) 100%);
  background-size: 200% auto;
  color: var(--azul-corporativo);
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 25px;
  box-shadow:
    0 4px 15px rgba(201, 169, 97, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  animation: gold-shimmer 3s linear infinite;
  position: relative;
  overflow: hidden;
}

.badge-gold-premium::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  bottom: -50%;
  left: -50%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transform: rotate(45deg) translateX(-100%);
  animation: badge-shine 3s ease-in-out infinite;
}

@keyframes badge-shine {
  0%, 100% { transform: rotate(45deg) translateX(-100%); }
  50% { transform: rotate(45deg) translateX(100%); }
}

/* Líneas divisoras doradas */
.divider-gold {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--dorado-oscuro) 20%,
    var(--dorado-brillante) 50%,
    var(--dorado-oscuro) 80%,
    transparent 100%);
  margin: 30px auto;
  border-radius: 2px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  animation: divider-glow 2s ease-in-out infinite;
}

@keyframes divider-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); }
  50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.8); }
}

/* Sombras doradas elegantes */
.shadow-gold {
  box-shadow:
    0 10px 30px rgba(201, 169, 97, 0.2),
    0 0 20px rgba(255, 215, 0, 0.1);
}

.shadow-gold-hover {
  transition: box-shadow 0.3s ease;
}

.shadow-gold-hover:hover {
  box-shadow:
    0 15px 40px rgba(201, 169, 97, 0.3),
    0 0 30px rgba(255, 215, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Overlay dorado para imágenes */
.img-overlay-gold {
  position: relative;
  overflow: hidden;
}

.img-overlay-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(26, 54, 93, 0.7) 0%,
    rgba(201, 169, 97, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.img-overlay-gold:hover::after {
  opacity: 1;
}

/* Números/stats dorados brillantes */
.stat-number-gold {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg,
    var(--dorado-profundo) 0%,
    var(--dorado-brillante) 50%,
    var(--dorado-profundo) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shimmer 3s linear infinite;
  filter: drop-shadow(0 2px 4px rgba(201, 169, 97, 0.3));
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* Checkbox/radio dorados personalizados */
.checkbox-gold:checked {
  background: linear-gradient(135deg,
    var(--dorado-oscuro) 0%,
    var(--dorado-brillante) 100%);
  border-color: var(--dorado-brillante);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Links con efecto dorado */
.link-gold {
  color: var(--dorado-oscuro);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.link-gold::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--dorado-oscuro) 0%,
    var(--dorado-brillante) 50%,
    var(--dorado-oscuro) 100%);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.link-gold:hover {
  color: var(--dorado-brillante);
}

.link-gold:hover::after {
  width: 100%;
}

/* Efecto de partículas doradas (opcional para hover) */
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

.sparkle-effect {
  position: relative;
}

.sparkle-effect::before,
.sparkle-effect::after {
  content: '✦';
  position: absolute;
  color: var(--dorado-brillante);
  opacity: 0;
  animation: sparkle 2s ease-in-out infinite;
}

.sparkle-effect::before {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.sparkle-effect::after {
  bottom: 10%;
  right: 10%;
  animation-delay: 1s;
}

/* Timeline dorado mejorado */
.timeline-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg,
    var(--dorado-oscuro) 0%,
    var(--dorado-brillante) 100%);
  color: var(--azul-corporativo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow:
    0 4px 15px rgba(201, 169, 97, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.timeline-number::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid var(--dorado-claro);
  border-radius: 50%;
  animation: timeline-ring-pulse 2s ease-in-out infinite;
}

@keyframes timeline-ring-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.5;
  }
}

/* Navegación activa con dorado */
.nav-link {
  position: relative;
  color: var(--gris-oscuro);
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--dorado-oscuro),
    var(--dorado-brillante),
    var(--dorado-oscuro));
  border-radius: 2px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.nav-link:hover,
.nav-link.active {
  color: var(--dorado-oscuro);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Efecto de brillo en scroll (para elementos que aparecen) */
.reveal-gold {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal-gold.visible {
  opacity: 1;
  transform: translateY(0);
  animation: reveal-shine 1s ease-out;
}

@keyframes reveal-shine {
  0% {
    box-shadow: 0 0 0 rgba(255, 215, 0, 0);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
  }
  100% {
    box-shadow: 0 0 0 rgba(255, 215, 0, 0);
  }
}

/* ========================================
   FOOTER STYLES - COLORES BORDO
   ======================================== */

footer {
  background: linear-gradient(to bottom right, #60282c, #521418, #3d0407) !important;
}

footer .bg-gradient-to-r {
  background: linear-gradient(to right, #60282c, #7a3338) !important;
}

footer .bg-\[\#3d0407\] {
  background-color: #3d0407 !important;
}

/* ========================================
   FIX OVERFLOW - SOLUCIÓN DEFINITIVA
   ======================================== */

/* Solo prevenir scroll horizontal en todo el sitio */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

/* ========================================
   ANIMACIONES SIMPLES (Reemplazo de AOS)
   ======================================== */

/* Fade In Up - Animación suave de aparición */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In - Animación simple de aparición */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Clase para aplicar animación fade-in-up */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Clase para aplicar animación fade-in */
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

/* Activar animación cuando el elemento entra en viewport */
.fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.animate {
  opacity: 1;
}

/* Delays para animaciones escalonadas */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* Contenedores principales */
.container {
  max-width: 100%;
}

/* Secciones (section) no deben causar overflow */
section {
  max-width: 100vw;
}

/* Fix para animaciones que salen del viewport */
.card-hover::before,
.bg-gold-gradient::before,
h1::after,
h2::after {
  max-width: 100%;
  overflow: hidden;
}

/* Asegurar que las rows de grid no causen overflow */
.grid {
  max-width: 100%;
}

/* Fix específico para elementos con width: 200% */
[class*="::before"],
[class*="::after"] {
  max-width: 100vw;
}

/* Prevenir que los gradientes animados causen scroll */
* {
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

/* Prevenir overflow en elementos con transform */
[style*="transform"] {
  max-width: 100%;
  overflow-x: clip;
}

/* Fix específico para hero section y otras secciones con background */
.hero-overlay {
  max-width: 100vw;
  overflow: hidden;
}

/* Contenedores de swiper no deben causar overflow */
.swiper,
.swiper-wrapper,
.swiper-slide {
  max-width: 100%;
  overflow-x: hidden;
}

/* Grid responsivos con overflow controlado */
.grid > * {
  min-width: 0;
}

/* Imágenes responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Fix para mobile menu */
#mobile-menu {
  max-width: 100%;
}

/* ========================================
   FOOTER SOCIAL ICONS - HOVER EFFECTS
   ======================================== */
footer a[aria-label="WhatsApp"],
footer a[aria-label="LinkedIn"],
footer a[aria-label="Facebook"],
footer a[aria-label="Instagram"] {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto de brillo al hacer hover */
footer a[aria-label="WhatsApp"]::before,
footer a[aria-label="LinkedIn"]::before,
footer a[aria-label="Facebook"]::before,
footer a[aria-label="Instagram"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent);
  transition: left 0.5s ease;
}

footer a[aria-label="WhatsApp"]:hover::before,
footer a[aria-label="LinkedIn"]:hover::before,
footer a[aria-label="Facebook"]:hover::before,
footer a[aria-label="Instagram"]:hover::before {
  left: 100%;
}

/* Hover states individuales con colores de marca */
footer a[aria-label="WhatsApp"]:hover,
footer a[aria-label="LinkedIn"]:hover,
footer a[aria-label="Facebook"]:hover,
footer a[aria-label="Instagram"]:hover {
  background: linear-gradient(135deg,
    var(--dorado-oscuro) 0%,
    var(--dorado-brillante) 50%,
    var(--dorado-oscuro) 100%);
  background-size: 200% auto;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 8px 20px rgba(201, 169, 97, 0.4),
    0 0 15px rgba(255, 215, 0, 0.3);
}

/* Animación de pulso sutil para iconos sociales */
footer a[aria-label="WhatsApp"]:hover i,
footer a[aria-label="LinkedIn"]:hover i,
footer a[aria-label="Facebook"]:hover i,
footer a[aria-label="Instagram"]:hover i {
  animation: icon-pulse 0.6s ease-in-out;
}

@keyframes icon-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ========================================
   FOOTER LINKS - HOVER EFFECTS
   ======================================== */
/* Links generales del footer */
footer a:not([aria-label]) {
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

/* Efecto de subrayado animado desde el centro */
footer a:not([aria-label])::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--dorado-brillante),
    transparent);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

footer a:not([aria-label]):hover::after {
  width: 100%;
}

/* Efecto hover en los links */
footer a:not([aria-label]):hover {
  color: var(--dorado-brillante) !important;
  transform: translateX(3px);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

/* Efecto especial para links de contacto (teléfonos y email) */
footer a[href^="tel"],
footer a[href^="mailto"] {
  transition: all 0.3s ease;
}

footer a[href^="tel"]:hover,
footer a[href^="mailto"]:hover {
  color: var(--dorado-brillante) !important;
  transform: translateX(5px);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

footer a[href^="tel"]::before,
footer a[href^="mailto"]::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: linear-gradient(180deg,
    var(--dorado-brillante),
    var(--dorado-oscuro));
  transition: height 0.3s ease;
}

footer a[href^="tel"]:hover::before,
footer a[href^="mailto"]:hover::before {
  height: 100%;
}

/* Efecto hover para el link de FrandoWeb */
footer a[href*="frandoweb"] {
  position: relative;
  transition: all 0.3s ease;
}

footer a[href*="frandoweb"]:hover {
  color: var(--dorado-brillante) !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  transform: scale(1.05);
}

/* ========================================
   FOOTER SECTION TITLES - SUBTLE HIGHLIGHT
   ======================================== */
/* Títulos de secciones del footer */
footer h4 {
  position: relative;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.875rem;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 215, 0, 0.15) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Línea decorativa debajo del título */
footer h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg,
    var(--dorado-brillante),
    transparent);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* Centrar línea en móvil */
@media (max-width: 768px) {
  footer h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}
