/* ============================================================
   SOLUCIONES JURÍDICAS UY — Hero Section CSS
   Paleta: #233E49 (bg) | #9C7F5B (dorado) | #FFFFFF
   Tipografía: Cormorant Garamond + Jost
   ============================================================ */

/* ── Variables (coherentes con header.css) ──────────────────── */
:root {
  --color-bg:           #233E49;
  --color-bg-dark:      #1a2e36;
  --color-bg-deeper:    #162830;
  --color-bg-mid:       #1e353f;
  --color-gold:         #9C7F5B;
  --color-gold-light:   #b89870;
  --color-gold-pale:    #d4b896;
  --color-gold-dim:     rgba(156, 127, 91, 0.18);
  --color-white:        #FFFFFF;
  --color-offwhite:     #F0EBE3;
  --color-text-body:    rgba(255, 255, 255, 0.72);
  --color-text-muted:   rgba(255, 255, 255, 0.45);

  --font-serif:  'Cormorant Garamond', 'Georgia', serif;
  --font-sans:   'Jost', 'Helvetica Neue', sans-serif;

  --header-h:    88px;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Hero Shell ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background-color: var(--color-bg);
  overflow: hidden;
}

/* Fondo: textura de líneas diagonales + degradados de profundidad */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -55deg,
      transparent,
      transparent 60px,
      rgba(156, 127, 91, 0.03) 60px,
      rgba(156, 127, 91, 0.03) 61px
    ),
    radial-gradient(
      ellipse 80% 70% at 70% 50%,
      rgba(156, 127, 91, 0.06) 0%,
      transparent 65%
    ),
    linear-gradient(
      105deg,
      rgba(22, 40, 48, 0.5) 0%,
      transparent 55%
    );
  pointer-events: none;
}

/* Arco decorativo de sello (fondo derecho) */
.hero::after {
  content: '';
  position: absolute;
  right: -180px;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  border: 1px solid rgba(156, 127, 91, 0.1);
  pointer-events: none;
}

/* ── Container ──────────────────────────────────────────────── */
.hero .container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Grid de dos columnas ───────────────────────────────────── */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: 80px 0;
}

/* ── Columna de contenido ───────────────────────────────────── */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Badge de confianza */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(156, 127, 91, 0.1);
  border: 1px solid rgba(156, 127, 91, 0.3);
  border-radius: 2px;
  width: fit-content;
}

.hero__badge-icon {
  font-size: 16px;
  line-height: 1;
  filter: saturate(0.7) brightness(1.1);
}

.hero__badge-text {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-pale);
}

/* Título principal */
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-white);
  margin: 0;
}

.hero__title-highlight {
  display: inline;
  font-style: italic;
  font-weight: 400;
  color: var(--color-gold-pale);
  position: relative;
}

/* Subrayado ornamental */
.hero__title-highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

.hero__title-block {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--color-white);
}

/* Descripción */
.hero__description {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-text-body);
  max-width: 520px;
}

.hero__description strong {
  font-weight: 500;
  color: var(--color-offwhite);
}

/* Lista de beneficios */
.hero__benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.hero__benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-body);
}

.hero__benefit-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  background: rgba(156, 127, 91, 0.12);
  border-radius: 50%;
  padding: 3px;
}

/* ── Botones de acción ──────────────────────────────────────── */
.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.hero__btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* Botón primario */
.hero__btn--primary {
  padding: 14px 30px;
  background: linear-gradient(
    135deg,
    var(--color-gold) 0%,
    var(--color-gold-light) 50%,
    var(--color-gold) 100%
  );
  background-size: 200% 200%;
  color: var(--color-bg-deeper);
  box-shadow:
    0 0 0 1px rgba(156, 127, 91, 0.6),
    0 4px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.hero__btn--primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  transition: left 0.55s ease;
}

.hero__btn--primary:hover::before { left: 150%; }

.hero__btn--primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px var(--color-gold-light),
    0 10px 30px rgba(156, 127, 91, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hero__btn--primary:active { transform: translateY(-1px); }

.hero__btn--primary svg {
  transition: transform var(--transition);
}

.hero__btn--primary:hover svg {
  transform: translateX(4px);
}

/* Botón secundario */
.hero__btn--secondary {
  padding: 13px 28px;
  background: transparent;
  color: var(--color-gold-pale);
  border: 1px solid rgba(156, 127, 91, 0.45);
}

.hero__btn--secondary:hover {
  background: rgba(156, 127, 91, 0.08);
  border-color: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ── Sellos de confianza ────────────────────────────────────── */
.hero__trust {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 8px;
  border-top: 1px solid rgba(156, 127, 91, 0.15);
  flex-wrap: wrap;
}

.hero__trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.hero__trust-badge:hover {
  color: var(--color-gold-pale);
}

.hero__trust-badge svg {
  color: var(--color-gold);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}

/* ── Columna de imagen ──────────────────────────────────────── */
.hero__image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image-container {
  position: relative;
  width: 100%;
  max-width: 560px;
}

/* Marco decorativo desplazado (efecto de profundidad) */
.hero__image-container::before {
  content: '';
  position: absolute;
  top: -16px;
  right: -16px;
  bottom: 16px;
  left: 16px;
  border: 1px solid rgba(156, 127, 91, 0.25);
  border-radius: 3px;
  pointer-events: none;
  z-index: 0;
}

.hero__image-container::after {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  bottom: 8px;
  left: 8px;
  border: 1px solid rgba(156, 127, 91, 0.12);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
}

.hero__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  border-radius: 3px;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.3);
  filter: brightness(0.92) contrast(1.05);
}

/* Overlay cromático sobre la imagen */
.hero__image-container picture {
  position: relative;
  display: block;
  z-index: 1;
}

.hero__image-container picture::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(35, 62, 73, 0.25) 0%,
    transparent 60%,
    rgba(156, 127, 91, 0.08) 100%
  );
  border-radius: 3px;
  pointer-events: none;
  z-index: 2;
}

/* ── Card flotante de contacto ──────────────────────────────── */
.hero__floating-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: var(--color-bg-dark);
  border: 1px solid rgba(156, 127, 91, 0.35);
  border-radius: 3px;
  min-width: 240px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(156, 127, 91, 0.2);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* Indicador "en línea" */
.hero__floating-card::before {
  content: '';
  position: absolute;
  top: 14px;
  right: 16px;
  width: 8px;
  height: 8px;
  background: #4caf82;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(76, 175, 130, 0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(76, 175, 130, 0.08); }
}

.hero__floating-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(156, 127, 91, 0.4);
}

.hero__floating-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-bg-deeper);
}

.hero__floating-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__floating-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.hero__floating-phone {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-gold-pale);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.hero__floating-phone:hover {
  color: var(--color-white);
}

/* ── Animaciones de entrada ─────────────────────────────────── */
/* Si no usás AOS, estas clases las activan igual */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  animation: aosUp 0.7s var(--ease-out) forwards;
}

[data-aos="fade-left"] {
  opacity: 0;
  transform: translateX(40px);
  animation: aosLeft 0.8s var(--ease-out) forwards;
}

[data-aos-delay="100"] { animation-delay: 0.1s; }
[data-aos-delay="200"] { animation-delay: 0.2s; }
[data-aos-delay="300"] { animation-delay: 0.3s; }
[data-aos-delay="400"] { animation-delay: 0.4s; }
[data-aos-delay="500"] { animation-delay: 0.5s; }

@keyframes aosUp  { to { opacity: 1; transform: translateY(0); } }
@keyframes aosLeft { to { opacity: 1; transform: translateX(0); } }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__grid       { gap: 40px; }
  .hero .container  { padding: 0 24px; }
  .hero__title      { font-size: clamp(2.2rem, 4vw, 3.2rem); }
}

@media (max-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 60px 0 80px;
    min-height: auto;
  }

  .hero .container  { padding: 0 20px; }
  .hero__content    { order: 1; gap: 22px; }
  .hero__image-wrapper { order: 2; }
  .hero__image-container { max-width: 100%; }
  .hero__title      { font-size: clamp(2rem, 7vw, 2.8rem); }
  .hero__description { font-size: 0.95rem; }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__btn { justify-content: center; text-align: center; }

  .hero__floating-card {
    bottom: -16px;
    left: 12px;
    min-width: 210px;
    padding: 12px 16px;
  }

  .hero__trust { gap: 16px; }
  .hero::after { display: none; }
}

@media (max-width: 480px) {
  .hero__grid { padding: 40px 0 60px; }

  .hero__trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero__image-container::before,
  .hero__image-container::after { display: none; }

  .hero__floating-card {
    position: relative;
    bottom: auto; left: auto;
    animation: none;
    width: 100%;
    margin-top: 16px;
  }
}