/*
Theme Name: Krystal Schimelfenning & Valiente
Description: Tema hijo personalizado para el Estudio Schimelfenning & Valiente basado en Krystal. Migración completa desde página estática con diseño moderno, paleta navy/beige/copper y funcionalidades específicas para abogados.
Author: Estudio Schimelfenning & Valiente
Version: 1.0.0
Template: krystal
Text Domain: krystal-schimelfenning
*/

/* Importar estilos del tema padre */
@import url("../krystal/style.css");

/* ========================================================
   VARIABLES CSS - Paleta de colores del estudio
======================================================== */
:root {
  /* Paleta de marca: Navy + Beige + Copper */
  --bg-0: #071427; /* fondo más profundo */
  --bg-1: #0b2740; /* fondo secundario */
  --bg: #0e2234; /* fondo principal - Navy */
  --surface: #132b3e; /* superficie de secciones */
  --card: #163446; /* tarjetas */
  --border: #2b4e62; /* bordes de tarjetas */
  --beige-200: #d8cfba; /* beige de marca (títulos) */
  --beige-300: #cbbe9e; /* beige hover */
  --text-1: #f3f7fa; /* texto principal */
  --text-2: #c9d5e1; /* texto secundario */
  --cta-copper: #d4a373; /* copper para CTAs */
  --accent-1: #d4a373; /* copper CTA */
  --accent-2: #d8cfba; /* beige */
  --btn-grad-1: #d4a373; /* copper */
  --btn-grad-2: #d8cfba; /* beige */
  --ink: #0e2234; /* navy para texto en botones claros */
  --radius: 14px;
  --max-width: 1160px;
  --gap: 1rem;
  --card-grad: linear-gradient(90deg, var(--btn-grad-1), var(--btn-grad-2));

  /* Aliases para compatibilidad */
  --gold: var(--beige-200);
  --muted: var(--text-2);
  --text: var(--text-1);
  --accent: var(--btn-grad-1);
  --surface-legacy: var(--surface);
}

/* ========================================================
   SCROLLBAR - Estilos personalizados
======================================================== */
/* Chrome, Safari, Edge */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(14, 34, 52, 0.3);
}

::-webkit-scrollbar-thumb {
  background: var(--cta-copper);
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--beige-200);
  background-clip: content-box;
}

/* Firefox */
* {
  scrollbar-width: thin;
}

/* ========================================================
   TIPOGRAFÍAS
======================================================== */
/* Importar fuentes desde Google Fonts - Optimizadas */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Lora:wght@400;600;700&display=swap&subset=latin-ext");

/* Fuente base */
html {
  width: 100% !important;
  height: 100% !important;
}

html,
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
  font-size: 16px;
  letter-spacing: 0.5px;
}

body {
  margin: 0 !important;
  background: 
    linear-gradient(180deg, rgba(14, 34, 52, 0.4) 0%, rgba(14, 34, 52, 0.4) 100%),
    url('/wp-content/themes/krystal-schimelfenning/assets/images/fondo-repetitivo.jpg') no-repeat fixed;
  background-size: auto, cover;
  background-position: center;
  color: var(--text-1);
  overflow-x: hidden;
  max-width: 100% !important;
  width: 100% !important;
}

main {
  overflow: visible !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-top: 70px;
}

/* Títulos con fuente serif para sensación premium */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  margin: 0;
  color: var(--beige-200);
}

h1 {
  font-size: clamp(1.4rem, 4.2vw, 2.4rem);
  letter-spacing: 0.6px;
  font-weight: 600;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
  width: 100%;
}

/* ========================================================
   HEADER PERSONALIZADO - PREMIUM CON GLASSMORPHISM
======================================================== */
.site-header {
  background: transparent;
  border-bottom: none !important;
  box-shadow: none !important;
  padding: 1.2rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  width: 100%;
}

/* Override del header del tema padre */
header {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.header-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 34, 52, 0.8) 0%,
    rgba(14, 34, 52, 0.7) 100%
  );
  backdrop-filter: blur(12px);
  opacity: 0.8;
  transition: opacity 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  z-index: -1;
  pointer-events: none;
}

.site-header.scrolled {
  padding: 0.8rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
}

.brand-logo-link {
  text-decoration: none !important;
  border: none;
  outline: none;
  background: transparent;
  padding: 0;
  margin: 0;
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 100;
}

/* Arreglar logo de WordPress */
.custom-logo {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain !important;
  display: block !important;
}

.logo-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  filter: drop-shadow(0 4px 12px rgba(212, 163, 115, 0.15));
  position: relative;
  z-index: 2;
}

.logo-wrapper:hover .brand-logo {
  transform: scale(1.05) rotateZ(2deg);
  filter: drop-shadow(0 8px 20px rgba(212, 163, 115, 0.25));
}

.logo-glow {
  position: absolute;
  inset: -8px;
  background: radial-gradient(
    circle,
    rgba(212, 163, 115, 0.2),
    transparent
  );
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  animation: none;
}

.logo-wrapper:hover .logo-glow {
  opacity: 1;
  animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(212, 163, 115, 0.3);
  }
  50% {
    box-shadow: 0 0 25px rgba(212, 163, 115, 0.5);
  }
}

.brand-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--beige-200);
  margin: 0;
  line-height: 1.2;
  font-family: "Lora", Georgia, serif;
  display: flex;
  align-items: center;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.brand-text a {
  color: inherit;
  text-decoration: none !important;
  border: none;
  outline: none;
  transition: color 0.3s ease;
  cursor: pointer;
  background: transparent;
  padding: 0;
  margin: 0;
}

.brand-text a:hover {
  color: var(--cta-copper);
  text-decoration: none !important;
}

.brand-text a:focus {
  outline: 2px solid var(--cta-copper);
  outline-offset: 2px;
  text-decoration: none !important;
}

.brand-text a:visited {
  color: inherit;
  text-decoration: none !important;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-2);
  margin: 0;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  font-family: 'Inter', system-ui, sans-serif;
}

.brand:hover .brand-tagline {
  opacity: 1;
  color: var(--cta-copper);
}

/* ========================================================
   MENÚ HAMBURGUESA - MOBILE
======================================================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 5px;
  position: relative;
  z-index: 11;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background: var(--beige-200);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/* ========================================================
   NAVEGACIÓN - MEJORADA
======================================================== */
.nav-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-inline ul,
.nav-inline .primary-menu {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-inline a,
.nav-link {
  color: var(--beige-200);
  text-decoration: none;
  font-weight: 500;
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
  display: flex;
  align-items: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-inline a::before,
.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(212, 163, 115, 0.12),
    rgba(216, 207, 186, 0.08)
  );
  opacity: 0;
  border-radius: 10px;
  transition: opacity 0.25s ease;
  z-index: -1;
}

.nav-inline a:hover::before,
.nav-link:hover::before {
  opacity: 1;
}

.nav-inline a:hover,
.nav-link:hover {
  color: var(--text-1);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(212, 163, 115, 0.2);
}

.nav-inline a:active,
.nav-link:active {
  transform: translateY(0);
}

.nav-cta {
  background: var(--cta-copper);
  color: var(--ink);
  font-weight: 600;
  border: 1px solid var(--cta-copper);
  margin-left: 0.5rem;
  padding: 0.65rem 1.5rem;
}

.nav-cta::before {
  background: rgba(255, 255, 255, 0.15) !important;
}

.nav-cta:hover {
  background: #e8b582;
  border-color: #e8b582;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(212, 163, 115, 0.3);
  transform: translateY(-3px);
}

.nav-inline .btn-estudio {
  background: var(--cta-copper);
  color: var(--ink);
  font-weight: 600;
  border: 1px solid var(--cta-copper);
  margin-left: 0.5rem;
}

.nav-inline .btn-estudio:hover {
  background: #e8b582;
  color: var(--ink);
  border-color: #e8b582;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 163, 115, 0.3);
}

.nav-inline li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-inline li::before {
  display: none;
}

/* Indicador de página activa */
.nav-inline a.current-menu-item,
.nav-inline a.current-page-ancestor {
  color: var(--cta-copper);
  background: rgba(212, 163, 115, 0.12);
  position: relative;
}

.nav-inline a.current-menu-item::after,
.nav-inline a.current-page-ancestor::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1.3rem;
  right: 1.3rem;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--cta-copper),
    var(--beige-200)
  );
  border-radius: 2px;
}

/* ========================================================
   RESPONSIVE HEADER
======================================================== */

/* Tablet */
@media (max-width: 900px) {
  .brand-tagline {
    display: none;
  }

  .nav-inline a {
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
  }

  .nav-inline .btn-estudio {
    margin-left: 0.3rem;
    padding: 0.6rem 1.2rem;
  }

  .nav-inline {
    gap: 0.2rem;
  }
}

/* Móvil */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-inline {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    flex-direction: column;
    background: linear-gradient(
      180deg,
      rgba(14, 34, 52, 0.95),
      rgba(11, 39, 64, 0.95)
    );
    backdrop-filter: blur(15px);
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
    border-top: 1px solid rgba(212, 163, 115, 0.1);
    border-bottom: 1px solid rgba(212, 163, 115, 0.1);
    z-index: 9;
    box-sizing: border-box;
  }

  .nav-inline.mobile-open {
    max-height: 100vh;
    overflow-y: auto;
    padding: 1rem 0;
  }

  .nav-inline .primary-menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-inline a,
  .nav-link {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 0;
    justify-content: flex-start;
    color: var(--beige-200);
    transition: all 0.2s ease;
    position: relative;
  }

  .nav-inline a::before,
  .nav-link::before {
    display: none;
  }

  .nav-inline a:hover,
  .nav-link:hover {
    background: rgba(212, 163, 115, 0.15);
    padding-left: 2rem;
    transform: none;
    box-shadow: none;
  }

  .nav-inline .btn-estudio {
    margin-left: 0;
    margin: 0.5rem 1rem;
    width: auto;
    align-self: flex-start;
    min-width: 150px;
  }

  .nav-inline .btn-estudio:hover {
    transform: none;
  }

  .nav-inline a.current-menu-item::after,
  .nav-inline a.current-page-ancestor::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(
      180deg,
      var(--cta-copper),
      var(--beige-200)
    );
    border-radius: 0;
  }

  .site-header .container {
    padding: 0 1rem;
  }

  .brand {
    gap: 0.8rem;
  }

  .brand-text {
    font-size: 1rem;
  }

  .logo-wrapper {
    width: 40px;
    height: 40px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .brand {
    gap: 0.6rem;
    flex-shrink: 1;
    min-width: 0;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .brand-info {
    gap: 0;
  }

  .brand-tagline {
    font-size: 0.65rem;
  }

  .logo-wrapper {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .nav-inline a,
  .nav-link {
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Pantallas muy estrechas - Galaxy Z Fold 5 */
@media (max-width: 350px) {
  .site-header .container {
    padding: 0 0.5rem;
  }

  .brand {
    gap: 0.3rem;
  }

  .brand-text {
    font-size: 0.75rem;
  }

  .brand-tagline {
    display: none;
  }

  .logo-wrapper {
    width: 32px;
    height: 32px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
    padding: 0.4rem;
  }

  .hamburger {
    width: 20px;
  }

  .hamburger span {
    height: 1.5px;
  }
}

/* ========================================================
   SECCIÓN HERO MEJORADA - PREMIUM LAYOUT
======================================================== */
.hero {
  padding: 6rem 2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: 
    linear-gradient(
      135deg,
      rgba(7, 20, 39, 0.55) 0%,
      rgba(11, 39, 64, 0.52) 50%,
      rgba(19, 43, 62, 0.55) 100%
    ),
    url('/wp-content/themes/krystal-schimelfenning/assets/images/fondo.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-blend-mode: overlay;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-left: max(2rem, env(safe-area-inset-left));
  padding-right: max(2rem, env(safe-area-inset-right));
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 163, 115, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(13, 42, 74, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.hero-copy {
  text-align: center;
  animation: fadeInUp 0.8s ease-out 0.1s both;
  position: relative;
  z-index: 3;
  max-width: 800px;
  will-change: opacity, transform;
}

.hero-copy p {
  text-shadow: 0 3px 10px rgba(0, 0, 0, 1), 0 2px 5px rgba(0, 0, 0, 0.8);
  font-weight: 400;
  background: rgba(7, 20, 39, 0.4);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

/* Sección separada para la imagen - MISMO FONDO */
.hero-media-section {
  position: relative;
  background-image: 
    linear-gradient(
      135deg,
      rgba(7, 20, 39, 0.55) 0%,
      rgba(11, 39, 64, 0.52) 50%,
      rgba(19, 43, 62, 0.55) 100%
    ),
    url('/wp-content/themes/krystal-schimelfenning/assets/images/fondo.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-blend-mode: overlay;
  padding: 4rem 2rem;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.hero-media-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 163, 115, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-media-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(13, 42, 74, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Imagen: Ahora en su propia sección */
.hero-media {
  width: 80%;
  max-width: 600px;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out 0.3s both;
  z-index: 2;
  position: relative;
  flex-shrink: 0;
  will-change: opacity, transform;
  padding: 0;
}

.hero-media picture {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  width: 100%;
  max-width: 100%;
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1),
              filter 0.6s ease,
              opacity 0.6s ease;
  will-change: transform;
  filter: brightness(0.95);
}

.hero-media img:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(14, 34, 52, 0.2),
    rgba(212, 163, 115, 0.08)
  );
  border-radius: 20px;
  pointer-events: none;
  z-index: 2;
}

/* Tablet: Imagen visible */
@media (min-width: 768px) {
  .hero {
    padding: 5rem 2rem;
    min-height: 70vh;
  }

  .hero-media-section {
    padding: 4rem 2rem;
    min-height: 55vh;
  }

  .hero-media {
    width: 70%;
    max-width: 550px;
  }
}

/* Desktop: Optimización final */
@media (min-width: 1024px) {
  .hero {
    padding: 4rem 2rem;
    min-height: 75vh;
  }

  .hero-media-section {
    padding: 4rem 2rem;
    min-height: 60vh;
  }

  .hero-media {
    width: 65%;
    max-width: 650px;
  }
}

/* Desktop grande: Más espacio para imagen */
@media (min-width: 1440px) {
  .hero-media-section {
    padding: 5rem 2rem;
    min-height: 65vh;
  }

  .hero-media {
    width: 60%;
    max-width: 700px;
  }
}

/* Móvil: Stack centrado */
@media (max-width: 767px) {
  .hero {
    padding: 3rem 1rem;
    min-height: auto;
  }

  .hero-media-section {
    padding: 3rem 1rem;
    min-height: 50vh;
    justify-content: center;
  }

  .hero-media {
    width: 85%;
    max-width: 100%;
  }
}

.hero h1 {
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  margin-bottom: 1.2rem;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.8px;
  background: linear-gradient(
    135deg,
    var(--beige-200) 0%,
    var(--beige-300) 50%,
    var(--beige-200) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-2);
  margin-bottom: 2rem;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  letter-spacing: 0.3px;
  text-align: center;
}

.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-row .btn-estudio {
  min-width: 160px;
}

@media (max-width: 768px) {
  .cta-row .btn-estudio {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 140px;
  }
}

.trust-list {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 1.5rem;
  margin: 0;
  color: var(--text-2);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  animation: fadeInUp 0.8s ease-out 0.25s both;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.trust-list li {
  position: relative;
  padding-left: 1.8rem;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cta-copper);
  font-weight: 700;
  font-size: 1.1em;
  animation: scaleIn 0.4s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* ========================================================
   BOTONES PERSONALIZADOS - PREMIUM
======================================================== */
.btn-estudio {
  border-radius: 12px;
  padding: 12px 28px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: transform 0.06s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s cubic-bezier(0.2, 0.9, 0.3, 1),
              background 0.25s ease,
              color 0.25s ease,
              text-shadow 0.25s ease;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Botón secundario en hero que necesita más visibilidad */
.hero-copy .btn-estudio-secondary {
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
  background: linear-gradient(135deg, rgba(7, 20, 39, 0.6), rgba(11, 39, 64, 0.6)) !important;
  backdrop-filter: blur(8px);
}

.btn-estudio::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transition: left 0.3s ease;
  border-radius: 12px;
  z-index: -1;
}

.btn-estudio:hover::before {
  left: 100%;
}

.btn-estudio:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--btn-grad-2) 22%, black);
  outline-offset: 2px;
}

.btn-estudio-primary {
  background: linear-gradient(135deg, var(--btn-grad-1) 0%, var(--btn-grad-2) 100%);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(212, 163, 115, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-size: clamp(0.9rem, 2vw, 1rem);
  padding: clamp(10px, 2vw, 14px) clamp(20px, 4vw, 28px);
}

.btn-estudio-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 40px rgba(212, 163, 115, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-estudio-primary:active {
  transform: translateY(0) scale(1);
}

.btn-estudio-secondary {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--beige-200);
  transition: all 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
  font-size: clamp(0.9rem, 2vw, 1rem);
  padding: clamp(10px, 2vw, 14px) clamp(20px, 4vw, 28px);
}

.btn-estudio-secondary:hover {
  border-color: var(--cta-copper);
  color: var(--cta-copper);
  background: rgba(212, 163, 115, 0.08);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(212, 163, 115, 0.2);
}

.btn-estudio-secondary:active {
  transform: translateY(0) scale(1);
}

.btn-estudio-block {
  width: 100%;
}

/* Versión alternativa de botón para CTAs especiales */
.btn-estudio-ghost {
  background: transparent;
  border: none;
  color: var(--cta-copper);
  text-decoration: underline;
  padding: 8px 0;
}

.btn-estudio-ghost:hover {
  color: var(--beige-200);
  text-decoration: none;
}

/* ========================================================
   SECCIONES GENERALES
======================================================== */
.section {
  padding: 4rem 0;
  background: 
    linear-gradient(180deg, rgba(14, 34, 52, 0.4) 0%, rgba(14, 34, 52, 0.4) 100%),
    url('/wp-content/themes/krystal-schimelfenning/assets/images/fondo-repetitivo.jpg') no-repeat fixed;
  background-size: auto, cover;
  background-position: center;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  text-align: center;
}

.section .text-muted {
  text-align: center;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  opacity: 0.9;
}

/* ========================================================
   TARJETAS DE SERVICIOS - PREMIUM
======================================================== */
.servicios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.servicio-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(12px);
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(2, 6, 23, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.servicio-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cta-copper), var(--beige-200));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.servicio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(212, 163, 115, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 16px;
  pointer-events: none;
}

.servicio-card:hover::before {
  opacity: 1;
}

.servicio-card:hover::after {
  opacity: 1;
}

.servicio-card:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow: 0 24px 60px rgba(212, 163, 115, 0.2),
              0 0 30px rgba(212, 163, 115, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(212, 163, 115, 0.3);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
}

.servicio-card h3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--beige-200);
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 700;
}

.servicio-card p {
  color: var(--text-2);
  line-height: 1.65;
  font-size: 0.95rem;
  margin: 0;
  transition: color 0.3s ease;
}

.servicio-card:hover p {
  color: var(--text-1);
}

.servicio-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--cta-copper) 25%, transparent),
    color-mix(in srgb, var(--beige-200) 18%, transparent)
  );
  color: var(--beige-200);
  flex-shrink: 0;
  margin-right: 1rem;
  border: 1.5px solid color-mix(in srgb, var(--beige-200) 15%, transparent);
  box-shadow: 0 4px 12px rgba(212, 163, 115, 0.1);
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.servicio-card:hover .servicio-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 24px rgba(212, 163, 115, 0.25);
  border-color: color-mix(in srgb, var(--beige-200) 30%, transparent);
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  transition: transform 0.3s ease;
}

.servicio-card:hover .material-symbols-rounded {
  transform: scale(1.15);
}

/* Iconos CSS personalizados como fallback */
.servicio-icon.icon-familia::before {
  content: "👨‍👩‍👧‍👦";
  font-size: 28px;
}

.servicio-icon.icon-trabajo::before {
  content: "💼";
  font-size: 28px;
}

.servicio-icon.icon-civil::before {
  content: "📋";
  font-size: 28px;
}

.servicio-icon.icon-consultoria::before {
  content: "💡";
  font-size: 28px;
}

/* Iconos SVG personalizados para mejor apariencia */
.servicio-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.servicio-card:hover .servicio-icon svg {
  transform: scale(1.2);
}

/* Si Material Symbols no carga, usar iconos SVG */
.material-symbols-rounded:empty + .icon-fallback {
  display: block;
}

.icon-fallback {
  display: none;
  width: 26px;
  height: 26px;
}

/* Responsive para servicios */
@media (min-width: 720px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 992px) {
  .servicios-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .servicio-card {
    padding: 2.2rem 1.8rem;
  }
}

/* ========================================================
   SECCIÓN DE EQUIPO
======================================================== */
.section.bg-surface {
  background: 
    linear-gradient(180deg, rgba(14, 34, 52, 0.4) 0%, rgba(14, 34, 52, 0.4) 100%),
    url('/wp-content/themes/krystal-schimelfenning/assets/images/fondo-repetitivo.jpg') no-repeat fixed;
  background-size: auto, cover;
  background-position: center;
  position: relative;
}

.section.bg-surface::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(212, 163, 115, 0.02),
    rgba(216, 207, 186, 0.01)
  );
  pointer-events: none;
}

.studio-stats {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0 3rem;
  backdrop-filter: blur(10px);
}

.studio-stats p {
  margin: 1rem 0;
  color: var(--text-1);
  line-height: 1.6;
}

.studio-stats strong {
  color: var(--beige-200);
}

.personal {
  font-style: italic;
  color: var(--cta-copper) !important;
  font-size: 1.1rem;
  text-align: center;
  margin-top: 1.5rem !important;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* ========================================================
   SECCIÓN EQUIPO - PREMIUM
======================================================== */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: stretch;
  margin-top: 3rem;
}

.abogada-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid rgba(212, 163, 115, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
  backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}

.abogada-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--cta-copper),
    var(--beige-200)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.abogada-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 24px 64px rgba(212, 163, 115, 0.25),
              0 0 40px rgba(212, 163, 115, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(212, 163, 115, 0.4);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.06)
  );
}

.abogada-card:hover::before {
  opacity: 1;
}

/* Estilos mejorados para tarjetas premium */
.premium-card {
  position: relative;
  overflow: visible;
}

/* 👉 Solo aplica a las cards de abogadas dentro del team-grid */
.team-grid .abogada-card.premium-card {
  padding-top: 0;
  border-radius: 24px;
  overflow: hidden;
}

.premium-card .abogada-info {
  padding: 2rem 1.5rem;
  flex-grow: 1;
}

.premium-card .info-header {
  margin-bottom: 1rem;
}

.premium-card .info-header h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--beige-200), var(--cta-copper));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.premium-card .role {
  color: var(--cta-copper);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  margin: 0;
}

.premium-card .desc {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 1rem 0 0 0;
}

/* 📸 WRAPPER DE LA FOTO: MISMO TAMAÑO PARA LAS DOS */
.team-grid .abogada-card .abogada-foto-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

/* La imagen ocupa COMPLETAMENTE el wrapper */
.team-grid .abogada-card .abogada-foto {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: all 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
  filter: brightness(0.95) contrast(1.05);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000;
  -webkit-perspective: 1000;
  image-rendering: -webkit-optimize-contrast;
}

/* Hover (solo una vez) */
.abogada-card:hover .abogada-foto {
  transform: scale(1.08);
  filter: brightness(1.05) contrast(1.1);
}

/* Overlay pegado a la foto */
.team-grid .abogada-card .abogada-foto-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(14, 34, 52, 0.4) 70%,
    rgba(14, 34, 52, 0.7) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.abogada-card:hover .abogada-foto-overlay {
  opacity: 1;
}

/* Shine pegado a la foto */
.team-grid .abogada-card .card-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

/* RESPONSIVE - TEAM SECTION */
@media (max-width: 767px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-grid .abogada-card .abogada-foto-wrapper {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 280px;
    margin: 0 auto;
    padding: 0;
  }

  .team-grid .abogada-card .abogada-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .team-grid .abogada-card::before {
    content: none;
  }

  .team-grid .abogada-card.premium-card {
    padding-top: 0;
  }
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .team-grid .abogada-card .abogada-foto-wrapper {
    margin: 0 auto;
    padding: 0;
  }

  .team-grid .abogada-card::before {
    content: none;
  }

  .team-grid .abogada-card.premium-card {
    padding-top: 0;
  }
}

@media (min-width: 1024px) {
  .team-grid {
    gap: 3.5rem;
  }

  .abogada-info {
    padding: 2.5rem 2rem;
  }
}

/* Estilos para sección equipo premium */
.equipo-premium {
  position: relative;
  overflow: hidden;
}

.equipo-header {
  text-align: center;
  margin-bottom: 3rem;
}

.equipo-header h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--beige-200), var(--cta-copper));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.equipo-subtitle {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Stats premium layout */
.premium-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(212, 163, 115, 0.08), rgba(216, 207, 186, 0.04));
  border-radius: 16px;
  border: 1px solid rgba(212, 163, 115, 0.1);
  backdrop-filter: blur(10px);
}

.stat-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1rem 0;
}

.stat-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.stat-content strong {
  display: block;
  font-size: 1.1rem;
  color: var(--beige-200);
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

.stat-content p {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.stat-item.philosophy {
  grid-column: 1 / -1;
  max-width: 100%;
}

.abogada-info {
  width: 100%;
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex-grow: 1;
  justify-content: space-between;
}

.abogada-info h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--beige-200);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.abogada-info .role {
  margin: 0;
  font-weight: 600;
  color: var(--cta-copper);
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.abogada-card:hover .abogada-info .role {
  color: var(--beige-200);
  opacity: 1;
}

.abogada-info .desc {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.abogada-card:hover .abogada-info .desc {
  color: var(--text-1);
}

/* Badge de especialización */
.abogada-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--cta-copper), var(--beige-200));
  color: var(--ink);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(212, 163, 115, 0.3);
  z-index: 2;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(20px);
}

.abogada-card:hover .abogada-badge {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================================
   TESTIMONIOS
======================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.testimonial {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(212, 163, 115, 0.03)
  );
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(2, 6, 23, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  position: relative;
  text-align: center;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--cta-copper);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.3);
  border-color: rgba(212, 163, 115, 0.2);
}

.testimonial p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-1);
  margin: 0 0 1.5rem 0;
  font-style: italic;
}

/* Testimonios Premium */
.testimonios-premium {
  background: 
    linear-gradient(180deg, rgba(14, 34, 52, 0.4) 0%, rgba(14, 34, 52, 0.4) 100%),
    url('/wp-content/themes/krystal-schimelfenning/assets/images/fondo-repetitivo.jpg') no-repeat fixed;
  background-size: auto, cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.testimonios-header {
  text-align: center;
  margin-bottom: 4rem;
}

.testimonios-header h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--beige-200), var(--cta-copper));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.testimonios-subtitle {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Tarjetas de testimonios mejoradas */
.premium-testimonial {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(212, 163, 115, 0.05)
  ) !important;
  border: 1px solid rgba(212, 163, 115, 0.15) !important;
  padding: 2.5rem 2rem !important;
  position: relative;
  overflow: hidden;
}

.premium-testimonial:hover {
  transform: translateY(-10px) scale(1.02) !important;
  box-shadow: 0 30px 80px rgba(212, 163, 115, 0.2) !important;
  border-color: rgba(212, 163, 115, 0.3) !important;
}

.testimonial-stars {
  font-size: 1.2rem;
  letter-spacing: 0.3rem;
  margin-bottom: 1.5rem;
  display: block;
  opacity: 0.9;
}

.premium-testimonial blockquote {
  margin: 0 0 1.5rem 0;
}

.premium-testimonial blockquote p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-1);
  font-style: normal;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.author-icon {
  font-size: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212, 163, 115, 0.2), rgba(216, 207, 186, 0.1));
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(212, 163, 115, 0.2);
}

.author-info {
  text-align: left;
}

.author-info strong {
  display: block;
  color: var(--beige-200);
  font-size: 1rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.3px;
}

.author-location {
  display: block;
  font-size: 0.85rem;
  color: var(--cta-copper);
  font-weight: 500;
}

.testimonial-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.premium-testimonial:hover .testimonial-shine {
  left: 100%;
}

/* Responsive testimonios */
@media (max-width: 1024px) {
  .testimonios-header h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .testimonios-premium {
    padding: 3rem 0;
  }

  .premium-testimonial {
    padding: 2rem 1.5rem !important;
  }

  .author-icon {
    width: 45px;
    height: 45px;
    font-size: 2rem;
  }
}

.testimonial figcaption {
  color: var(--cta-copper);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
}

/* ========================================================
   FORMULARIO DE CONTACTO
======================================================== */
.contact-form {
  display: grid;
  gap: 0.6rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--beige-200);
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-1);
  font-size: 1rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cta-copper);
  box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-2);
  opacity: 0.7;
}

.select-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.styled-select {
  width: 100%;
  padding: 1rem;
  padding-right: 3rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-1);
  font-size: 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.styled-select:hover {
  border-color: rgba(212, 163, 115, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.styled-select:focus {
  outline: none;
  border-color: var(--cta-copper);
  box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
}

.styled-select:focus-visible {
  outline: 2px solid var(--cta-copper);
  outline-offset: 1px;
}

/* Estilo de las opciones en el dropdown */
.styled-select option {
  background: var(--bg-1);
  color: var(--text-1);
  padding: 0.75rem 1rem;
  margin: 0.25rem 0;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.styled-select option:hover {
  background: linear-gradient(135deg, var(--cta-copper), var(--beige-200));
  color: var(--ink);
}

.styled-select option:checked {
  background: linear-gradient(135deg, var(--cta-copper), var(--beige-200));
  color: var(--ink);
  font-weight: 700;
}

.styled-select option:disabled {
  color: var(--text-2);
  background: var(--bg);
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--beige-200);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.select-wrap:hover::after {
  border-top-color: var(--cta-copper);
  transform: translateY(-50%) scale(1.1);
}

.styled-select:focus ~ .select-wrap::after {
  border-top-color: var(--cta-copper);
}

.field-help {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  font-style: italic;
  opacity: 0.9;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-help {
  font-size: 0.85rem;
  color: var(--text-2);
  margin: 1rem 0;
  line-height: 1.4;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  min-height: auto;
}

.form-status.error {
  background: rgba(255, 100, 100, 0.1);
  color: #ff6b6b;
  border: 1px solid rgba(255, 100, 100, 0.2);
}

.form-status.success {
  background: rgba(100, 255, 100, 0.1);
  color: #4ade80;
  border: 1px solid rgba(100, 255, 100, 0.2);
}

/* Honeypot field - mantener oculto */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.45),
    0 0 0 6px rgba(159, 209, 139, 0.06);
  border-color: var(--gold);
}

/* ========================================================
   BOTÓN WHATSAPP FLOTANTE
======================================================== */
/* ========================================================
   BOTÓN WHATSAPP FLOTANTE - PREMIUM
======================================================== */
.whatsapp-float {
  position: fixed !important;
  right: 1.5rem !important;
  bottom: 1.5rem !important;
  z-index: 99999 !important;
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  min-height: 68px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #25d366 0%, #20a355 100%) !important;
  color: #fff !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  text-decoration: none !important;
  transform: translateZ(0);
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1) !important;
  overflow: visible !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer !important;
  font-size: 0 !important;
  position: relative;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.2), transparent);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.whatsapp-float:hover::before {
  opacity: 1;
  animation: pulse-whatsapp 1.5s ease-in-out infinite;
}

@keyframes pulse-whatsapp {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.3;
  }
}

.whatsapp-float i,
.whatsapp-float svg {
  font-size: 36px !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease !important;
}

.whatsapp-float:hover i,
.whatsapp-float:hover svg {
  transform: scale(1.15) rotate(-5deg) !important;
}

.whatsapp-float:hover {
  transform: translateY(-8px) scale(1.05) !important;
  box-shadow: 0 20px 50px rgba(37, 211, 102, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.whatsapp-float:active {
  transform: translateY(-4px) scale(1.02) !important;
}

/* Responsive para WhatsApp */
@media (max-width: 768px) {
  .whatsapp-float {
    right: 1rem !important;
    bottom: 1rem !important;
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
  }

  .whatsapp-float i,
  .whatsapp-float svg {
    font-size: 33px !important;
    width: 33px !important;
    height: 33px !important;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    right: 0.75rem !important;
    bottom: 0.75rem !important;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
  }

  .whatsapp-float i,
  .whatsapp-float svg {
    font-size: 30px !important;
    width: 30px !important;
    height: 30px !important;
  }
}

/* ========================================================
   CONTACT SECTION Y INFORMACIÓN
======================================================== */
.contact-section {
  background: 
    linear-gradient(180deg, rgba(14, 34, 52, 0.4) 0%, rgba(14, 34, 52, 0.4) 100%),
    url('/wp-content/themes/krystal-schimelfenning/assets/images/fondo-repetitivo.jpg') no-repeat fixed;
  background-size: auto, cover;
  background-position: center;
  padding: 3rem 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-1);
}

.contact-list strong {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-list .material-symbols-rounded {
  color: var(--cta-copper);
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}

.contact-list a {
  color: var(--beige-200);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-list a:hover {
  color: var(--cta-copper);
}

.map-wrap {
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.map-placeholder {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  text-align: center;
  color: var(--text-2);
}

#map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
}

/* ========================================================
   FOOTER MEJORADO
======================================================== */
.site-footer {
  background: var(--bg-0);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 0 1rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-info {
  justify-self: start;
  text-align: left;
}

.footer-grid .site-social {
  justify-self: end;
}

.footer-grid p {
  margin: 0.5rem 0;
  color: var(--text-2);
  font-size: 0.9rem;
}

.dev-credit {
  margin-top: 0.5rem !important;
  font-size: 0.85rem !important;
}

.dev-credit a {
  color: var(--cta-copper);
  text-decoration: none;
  font-weight: 600;
}

.dev-credit a:hover {
  text-decoration: underline;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--beige-200);
}

.site-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

/* Móvil: footer centrado */
@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-info,
  .site-social {
    justify-self: center;
    text-align: center;
  }
}

.footer-links {
  justify-content: center;
  flex-direction: row;
  gap: 1.5rem;
}

.site-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--beige-200);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.site-social a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  color: var(--cta-copper);
}

.site-social a[data-tooltip] {
  position: relative;
}

.site-social a[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

.site-social a[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.site-social a[data-tooltip]::before {
  content: "";
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.site-social a[data-tooltip]:hover::before {
  opacity: 1;
}

.social-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ========================================================
   RESPONSIVE DESIGN MEJORADO
======================================================== */

/* Móviles pequeños */
@media (max-width: 640px) {
  .site-header .container {
    flex-direction: row;
    gap: 1rem;
    text-align: left;
  }
  
  .brand {
    order: 1;
    flex-grow: 1;
  }
  
  .menu-toggle {
    order: 2;
  }
  
  .nav-inline {
    gap: 1rem;
    order: 2;
    margin-left: 0;
  }
  
  .nav-inline a {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
  
  .hero {
    padding: 2rem 0;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: center;
  }

  .cta-row .btn-estudio {
    width: 100%;
    max-width: 280px;
  }

  .trust-list {
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
  }

  .header-grid {
    padding: 0 1rem;
  }

  .brand-text {
    font-size: 1rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn-estudio {
    width: 100%;
  }

  /* Team grid en mobile */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .abogada-card {
    display: flex;
    flex-direction: column;
  }

  .abogada-foto-wrapper {
    aspect-ratio: 400 / 380;
    width: 100%;
  }

  .abogada-info {
    padding: 1.5rem;
  }

  .abogada-info h3 {
    font-size: 1.2rem;
  }

  .abogada-info .role {
    font-size: 0.9rem;
  }

  .abogada-info .desc {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* Tablet */
@media (min-width: 720px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    text-align: left;
    align-items: center;
  }

  .site-social {
    justify-content: flex-end;
    margin-top: 0;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .nav-inline {
    gap: 2rem;
  }
  
  .hero {
    padding: 4rem 0 5rem;
  }

  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
  }

  .servicios-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* Desktop grande */
@media (min-width: 1200px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ========================================================
   ANIMACIONES Y EFECTOS ADICIONALES - PREMIUM
======================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleInCenter {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(212, 163, 115, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(212, 163, 115, 0.4);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Scroll suave para anclas */
html {
  scroll-behavior: smooth;
}

/* Mejorar el enfoque de elementos interactivos */
.btn-estudio:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.styled-select:focus-visible {
  outline: 2px solid var(--cta-copper);
  outline-offset: 2px;
}

/* Toast mejorado */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--cta-copper), var(--beige-200));
  color: var(--ink);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  display: none;
  font-weight: 600;
  max-width: 300px;
}

.toast.show {
  display: block;
  animation: slideInRight 0.4s ease-out;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .animate-in,
  .animate-float,
  .animate-glow,
  .toast.show {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* Ajustes para móviles muy estrechos */
@media (max-width: 380px) {
  .abogada-card {
    padding: 0.85rem;
  }

  .abogada-foto {
    width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
  }

  .abogada-info h3 {
    font-size: 1rem;
  }

  .abogada-info .role,
  .abogada-info .desc {
    font-size: 0.92rem;
  }
}

/* ========================================================
   ANULACIONES DE ESTILOS DEL TEMA PADRE
======================================================== */
/* Sobrescribir estilos del tema Krystal que puedan interferir */
body.krystal-schimelfenning {
  background: linear-gradient(180deg, var(--bg), var(--surface)) !important;
  color: var(--text-1) !important;
}

/* Asegurar que los títulos mantengan el color beige */
.krystal-schimelfenning h1,
.krystal-schimelfenning h2,
.krystal-schimelfenning h3,
.krystal-schimelfenning h4,
.krystal-schimelfenning h5,
.krystal-schimelfenning h6 {
  color: var(--beige-200) !important;
}

/* ========================================================
   UTILIDADES GENERALES
======================================================== */
.text-muted {
  color: var(--muted);
}

.text-beige {
  color: var(--beige-200);
}

.bg-surface {
  background: var(--surface);
}

.bg-card {
  background: var(--card);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none;
    transition: none !important;
  }
}

/* ==================== SECCIÓN BLOG PREMIUM ==================== */

.blog-premium {
  background: var(--bg);
}

.blog-header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--cta-copper), var(--beige-200));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-subtitle {
  font-size: 1.1rem;
  color: var(--text-2);
  margin: 0;
}

/* Filtros de categoría */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(212, 163, 115, 0.2);
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--cta-copper);
  background: transparent;
  color: var(--cta-copper);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
}

.filter-btn:hover,
.filter-btn-active {
  background: var(--cta-copper);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 163, 115, 0.25);
}

/* Grid de artículos */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.premium-blog-card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(212, 163, 115, 0.1);
  position: relative;
}

.premium-blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--cta-copper);
}

.blog-card-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  filter: brightness(1) contrast(1) saturate(0.95) blur(0.5px);
}

.premium-blog-card:hover .blog-image {
  transform: scale(1.05);
}

.blog-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 34, 52, 0.4) 100%);
  z-index: 1;
}

.card-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  z-index: 2;
}

.premium-blog-card:hover .card-shine {
  animation: shine-effect 0.6s ease;
}

@keyframes shine-effect {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.blog-category-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  background: var(--cta-copper);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.blog-category-tag:hover {
  background: var(--beige-200);
  transform: scale(1.05);
}

/* Contenido de la tarjeta */
.blog-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-header {
  margin-bottom: 1rem;
}

.blog-title-link {
  color: var(--text-1);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.premium-blog-card:hover .blog-title-link {
  color: var(--cta-copper);
}

.blog-card-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(212, 163, 115, 0.1);
}

.blog-date,
.blog-author {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-date .material-symbols-rounded,
.blog-author .material-symbols-rounded {
  font-size: 1rem;
  color: var(--cta-copper);
}

.blog-excerpt {
  flex-grow: 1;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0 0 1rem 0;
}

.blog-card-footer {
  margin-top: auto;
}

.btn-leer-mas {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cta-copper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.btn-leer-mas:hover {
  color: var(--beige-200);
  border-bottom-color: var(--beige-200);
  transform: translateX(4px);
}

.btn-leer-mas .material-symbols-rounded {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.btn-leer-mas:hover .material-symbols-rounded {
  transform: translateX(4px);
}

/* Sin artículos */
.blog-no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-2);
  font-size: 1.1rem;
}

/* Paginación */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--cta-copper);
  background: transparent;
  color: var(--cta-copper);
  border-radius: 50%;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-number:hover,
.page-number.current {
  background: var(--cta-copper);
  color: var(--bg);
  transform: scale(1.1);
}

/* Sección CTA Blog */
.blog-cta-section {
  background: linear-gradient(135deg, rgba(212, 163, 115, 0.15) 0%, rgba(216, 207, 186, 0.15) 100%);
  border-top: 1px solid var(--cta-copper);
  border-bottom: 1px solid var(--cta-copper);
}

.blog-cta-content {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-1);
}

.blog-cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-1);
  background: linear-gradient(135deg, var(--cta-copper), var(--beige-200));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-cta-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-2);
}

.blog-cta-content .btn-estudio-primary {
  background: var(--cta-copper);
  color: var(--bg);
  border-color: var(--cta-copper);
}

.blog-cta-content .btn-estudio-primary:hover {
  background: var(--beige-200);
  color: var(--bg);
  border-color: var(--beige-200);
}

/* Responsive */
@media (max-width: 768px) {
  .blog-header h2 {
    font-size: 1.8rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-filters {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .blog-card-content {
    padding: 1.25rem;
  }

  .blog-cta-content h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .blog-header h2 {
    font-size: 1.5rem;
  }

  .blog-filters {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    width: 100%;
    text-align: center;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .blog-card-image {
    height: 200px;
  }
}

/* ==================== SINGLE POST / ARTÍCULO INDIVIDUAL ==================== */

.blog-single {
  background: var(--bg);
}

.post-single-wrapper {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.post-meta-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(212, 163, 115, 0.2);
}

.post-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-2);
}

.post-date,
.post-author,
.post-category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-date .material-symbols-rounded,
.post-author .material-symbols-rounded,
.post-category .material-symbols-rounded {
  font-size: 1.1rem;
  color: var(--cta-copper);
}

.post-featured-image {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.featured-img {
  width: 100%;
  height: auto;
  display: block;
}

.post-content {
  line-height: 1.8;
  font-size: 1.05rem;
  color: var(--text-1);
  margin-bottom: 2rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-1);
}

.post-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
}

.post-content h3 {
  font-size: 1.4rem;
}

.post-content h4 {
  font-size: 1.2rem;
}

.post-content ul,
.post-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  border-left: 4px solid var(--cta-copper);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-2);
}

.post-content a {
  color: var(--cta-copper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.post-content a:hover {
  border-bottom-color: var(--cta-copper);
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 163, 115, 0.2);
}

.tags-label {
  font-weight: 700;
  color: var(--text-1);
}

.tag-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(212, 163, 115, 0.1);
  border: 1px solid var(--cta-copper);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--cta-copper);
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag-link:hover {
  background: var(--cta-copper);
  color: var(--bg);
}

.posts-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(212, 163, 115, 0.05);
  border-radius: 8px;
}

.nav-previous,
.nav-next {
  text-align: center;
}

.nav-previous a,
.nav-next a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--cta-copper);
  color: var(--cta-copper);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
  background: var(--cta-copper);
  color: var(--bg);
}

.edit-link {
  text-align: center;
  margin: 2rem 0;
}

.edit-link a {
  padding: 0.5rem 1rem;
  background: var(--cta-copper);
  color: var(--bg);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: opacity 0.3s ease;
}

.edit-link a:hover {
  opacity: 0.8;
}

/* Sidebar */
.post-sidebar {
  max-width: 300px;
  margin-left: 2rem;
}

.related-posts,
.post-newsletter {
  background: var(--card);
  border: 1px solid rgba(212, 163, 115, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.related-posts h3,
.post-newsletter h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--text-1);
  background: linear-gradient(135deg, var(--cta-copper), var(--beige-200));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.related-post-item {
  display: block;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.related-post-item:hover {
  transform: translateY(-4px);
}

.related-post-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-image img {
  transform: scale(1.05);
}

.related-post-content {
  padding: 0.75rem;
  background: rgba(212, 163, 115, 0.05);
}

.related-post-content h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--text-1);
}

.related-date {
  font-size: 0.8rem;
  color: var(--text-2);
}

.post-newsletter p {
  color: var(--text-2);
  margin-bottom: 1rem;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.comments-section {
  background: var(--bg);
  border-top: 1px solid rgba(212, 163, 115, 0.2);
}

/* Responsive para single post */
@media (max-width: 1024px) {
  .post-sidebar {
    max-width: 100%;
    margin-left: 0;
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .post-meta-info {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .post-content {
    font-size: 1rem;
  }

  .posts-navigation {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .post-meta-info {
    flex-direction: column;
    gap: 0.5rem;
  }

  .post-content {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .post-tags {
    gap: 0.5rem;
  }
}

/* Quitar la barra dorada solo en las cards del team */
.team-grid .abogada-card::before {
  content: none !important;
}

/* Por las dudas, aseguramos que no haya padding/margen arriba */
.team-grid .abogada-card.premium-card {
  padding-top: 0;
}

.team-grid .abogada-card .abogada-foto-wrapper {
  margin-top: 0;
  padding-top: 0;
}


/* ========================================================
   MAPA EST�TICO - Image overlay con Google Maps link
======================================================== */
.map-static-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.map-static-link:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(212, 163, 115, 0.3);
}

.map-static-link:active {
  transform: scale(0.98);
}

.map-static-link:focus {
  outline: 2px solid var(--copper-accent, #d4a373);
  outline-offset: 2px;
}

.map-static-link:focus:not(:focus-visible) {
  outline: none;
}

.map-static-link:focus-visible {
  outline: 2px solid var(--copper-accent, #d4a373);
  outline-offset: 2px;
}

.map-image {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 0.3s ease;
}

.map-static-link:hover .map-image {
  filter: brightness(0.92);
}

.map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(212, 163, 115, 0.12);
  backdrop-filter: blur(1px);
  opacity: 0;
  transition: opacity 0.3s ease;
  gap: 0.75rem;
}

.map-static-link:hover .map-overlay,
.map-static-link:focus .map-overlay {
  opacity: 1;
}

.map-icon {
  font-size: 2.8rem;
  animation: mapPulse 2s ease-in-out infinite;
  line-height: 1;
}

.map-text {
  color: var(--beige-200, #fef5e7);
  font-size: 1.05rem;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  text-align: center;
  font-family: "Inter", sans-serif;
}

@keyframes mapPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

@media (max-width: 768px) {
  .map-static-link {
    border-radius: 6px;
  }

  .map-static-link:hover {
    transform: scale(1.03);
  }

  .map-static-link:active {
    transform: scale(0.95);
  }

  .map-overlay {
    background: rgba(212, 163, 115, 0.2);
  }

  .map-icon {
    font-size: 2.5rem;
  }
  
  .map-text {
    font-size: 1rem;
    font-weight: 700;
  }
}

@media (max-width: 480px) {
  .map-static-link {
    border-radius: 5px;
  }

  .map-overlay {
    background: rgba(212, 163, 115, 0.25);
    backdrop-filter: blur(2px);
  }

  .map-icon {
    font-size: 2rem;
  }
  
  .map-text {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    padding: 0 0.5rem;
  }

  .map-overlay {
    gap: 0.5rem;
  }
}
