:root {
  --primary: #0f172a;
  --primary-2: #111827;
  --accent: #c8a96b;
  --accent-soft: #e9dcc2;
  --text: #f5f5f5;
  --dark-text: #1f2937;
  --muted: #cbd5e1;
  --light-bg: #f8f6f1;
  --white: #ffffff;
  --shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  --radius: 22px;
  --transition: all 0.35s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--dark-text);
  line-height: 1.6;
}

img {
  width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.section {
  padding: 90px 0;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  transition: var(--transition);
  background: rgba(8, 12, 20, 0.45);
  backdrop-filter: blur(10px);
}

.header.scrolled {
  background: rgba(8, 12, 20, 0.92);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.logo-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text h2 {
  color: var(--white);
  font-size: 1rem;
  line-height: 1.1;
  margin-bottom: 2px;
}

.logo-text span {
  color: var(--accent-soft);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 10px;
  transition: var(--transition);
}

/* HERO */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(5, 8, 14, 0.55), rgba(5, 8, 14, 0.70)),
    url("IMG/2.webp") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at left center, rgba(200, 169, 107, 0.08), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
}

.hero-text {
  max-width: 650px;
  color: var(--white);
}

.hero-tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  color: var(--accent-soft);
  font-size: 0.9rem;
  background: rgba(255,255,255,0.05);
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.05;
  margin-bottom: 22px;
}

.hero-text h1 span {
  color: var(--accent);
}

.hero-text p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 15px 24px;
  border-radius: 999px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #9d7c44);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
}

/* SECTION HEADINGS */
.section-subtitle {
  display: inline-block;
  color: #a7894c;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-heading h2,
.experience-text h2,
.contact-info h2,
.cta-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

.section-heading h2 span,
.experience-text h2 span,
.contact-info h2 span {
  color: var(--accent);
}

.section-heading p,
.experience-text p,
.contact-info p,
.cta-box p {
  color: #6b7280;
  max-width: 760px;
}

.center {
  text-align: center;
  margin-bottom: 55px;
}

.center p {
  margin: 0 auto;
}

/* EXPERIENCE */
.experience {
  background: var(--light-bg);
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.experience-image {
  position: relative;
}

.experience-image img {
  height: 560px;
  object-fit: cover;
  border-radius: 0 0 80px 80px;
  box-shadow: var(--shadow);
}

.mini-tag {
  position: absolute;
  top: -20px;
  left: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #b7a57d;
}

.mini-text {
  position: absolute;
  top: 30px;
  left: 0;
  max-width: 180px;
  font-size: 0.92rem;
  color: #6b7280;
}

.experience-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 30px;
}

.experience-list .item {
  background: var(--white);
  padding: 18px;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  font-weight: 600;
  color: #374151;
}

/* =========================
   ESTADÍSTICAS DE LUJO
========================= */
.stats {
  position: relative;
  background:
    linear-gradient(180deg, #fbfaf7 0%, #ffffff 45%, #fbfaf7 100%);
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(200, 169, 107, 0.08), transparent 20%),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.04), transparent 18%);
  pointer-events: none;
}

.stats .container {
  position: relative;
  z-index: 2;
}

.stats-header {
  margin-bottom: 70px;
}

.stats-header h2 {
  margin-bottom: 14px;
}

.stats-header p {
  max-width: 620px;
  margin: 0 auto;
  color: #6b7280;
}

.stats-luxury-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.stat-luxury-item {
  position: relative;
  text-align: center;
  padding: 20px 24px;
  opacity: 0;
  transform: translateY(30px);
}

.stat-luxury-item.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.stat-luxury-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 0;
  width: 1px;
  height: calc(100% - 20px);
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(200, 169, 107, 0.55),
    transparent
  );
}

.stat-luxury-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.3rem, 7vw, 5.6rem);
  line-height: 0.95;
  color: #111827;
  margin-bottom: 18px;
  letter-spacing: -2px;
  font-weight: 700;
}

.stat-mini-line {
  display: block;
  width: 72px;
  height: 2px;
  margin: 0 auto 18px;
  background: linear-gradient(90deg, transparent, #c8a96b, transparent);
  border-radius: 999px;
}

.stat-luxury-item p {
  margin: 0;
  color: #8b7355;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* Tablet */
@media (max-width: 992px) {
  .stats-luxury-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .stat-luxury-item:not(:last-child)::after {
    display: none;
  }

  .stat-luxury-item {
    padding: 0 10px 24px;
    border-bottom: 1px solid rgba(200, 169, 107, 0.18);
  }

  .stat-luxury-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* Móvil */
@media (max-width: 768px) {
  .stats {
    padding: 80px 0;
  }

  .stats-header {
    margin-bottom: 42px;
  }

  .stat-luxury-item h3 {
    font-size: 3rem;
    margin-bottom: 14px;
  }

  .stat-mini-line {
    width: 56px;
    margin-bottom: 14px;
  }

  .stat-luxury-item p {
    font-size: 0.84rem;
    letter-spacing: 1.6px;
  }
}

/* =========================
   SERVICIOS - LIMPIO Y PREMIUM
========================= */
.services {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(200,169,107,0.12), transparent 22%),
    linear-gradient(135deg, #08111f 0%, #0f172a 50%, #121c30 100%);
}

.services-heading {
  margin-bottom: 52px;
}

.services-heading .section-subtitle {
  color: #d7b97a;
}

.services-heading h2 {
  color: #ffffff;
}

.services-heading h2 span {
  color: #c8a96b;
}

.services-heading p {
  color: #cbd5e1;
  max-width: 640px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 22px;
}

.service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(200,169,107,0.14);
  border-radius: 28px;
  padding: 26px 24px 22px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.20);
  transition: all 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(200,169,107,0.28);
  box-shadow: 0 26px 60px rgba(0,0,0,0.28);
}

.service-main {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(200,169,107,0.16), rgba(255,255,255,0.04)),
    rgba(255,255,255,0.06);
  min-height: 100%;
}

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.service-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200,169,107,0.10);
  border: 1px solid rgba(200,169,107,0.18);
}

.service-icon-wrap img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(80%) sepia(28%) saturate(475%) hue-rotate(355deg) brightness(90%) contrast(88%);
}

.service-number {
  font-family: 'Playfair Display', serif;
  color: #d7b97a;
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.service-main h3 {
  font-size: 2rem;
}

.service-card p {
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.service-main p {
  font-size: 1rem;
  max-width: 320px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f0d8a8;
  font-weight: 600;
  font-size: 0.94rem;
  transition: all 0.3s ease;
}

.service-link::after {
  content: "→";
  transition: transform 0.3s ease;
}

.service-link:hover {
  color: #ffffff;
}

.service-link:hover::after {
  transform: translateX(4px);
}

/* Tablet */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-main {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .service-main h3 {
    font-size: 1.7rem;
  }
}

/* Móvil */
@media (max-width: 768px) {
  .services {
    padding: 80px 0;
  }

  .services-heading {
    margin-bottom: 38px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card,
  .service-main {
    padding: 22px 18px 18px;
    border-radius: 22px;
  }

  .service-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .service-icon-wrap img {
    width: 21px;
    height: 21px;
  }

  .service-card h3,
  .service-main h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .service-card p,
  .service-main p {
    font-size: 0.92rem;
    line-height: 1.65;
    max-width: 100%;
  }

  .service-link {
    font-size: 0.9rem;
  }
}

/* =========================
   TEAM PREMIUM ELITE
========================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* CARD */
.team-card {
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  background: #111;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.15);
}

/* IMAGE */
.team-image {
  position: relative;
}

.team-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: 0.6s ease;
}

/* OVERLAY */
.team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,15,25,0.88),
    rgba(10,15,25,0.38),
    transparent
  );
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  transition: 0.5s ease;
}

/* HOVER PC */
.team-card:hover .team-overlay {
  opacity: 1;
}

.team-card:hover img {
  transform: scale(1.08);
  filter: brightness(0.7);
}

/* CONTENT */
.team-overlay-content {
  transform: translateY(30px);
  transition: 0.5s ease;
  color: #fff;
  width: 100%;
}

.team-card:hover .team-overlay-content {
  transform: translateY(0);
}

/* TEXT */
.team-overlay-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 6px;
  line-height: 1.3;
}

.team-overlay-content span {
  font-size: 0.8rem;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}

.team-overlay-content p {
  font-size: 0.85rem;
  margin-bottom: 4px;
  opacity: 0.95;
  line-height: 1.5;
}

/* SOCIAL ICONS PREMIUM */
.team-socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.team-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.team-socials img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.team-socials a:hover {
  background: #c8a96b;
  transform: translateY(-3px);
}

/* ANIMATION */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.9s ease;
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* TABLET */
@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MÓVIL */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .team-card {
    border-radius: 22px;
  }

  .team-image img {
    height: 360px;
    filter: brightness(0.72);
  }

  /* En móvil la info SIEMPRE visible */
  .team-overlay {
    opacity: 1;
    padding: 20px 18px;
    background: linear-gradient(
      to top,
      rgba(10,15,25,0.92),
      rgba(10,15,25,0.55),
      rgba(10,15,25,0.12)
    );
  }

  .team-overlay-content {
    transform: translateY(0);
  }

  .team-card:hover {
    transform: none;
  }

  .team-card:hover img {
    transform: none;
    filter: brightness(0.72);
  }

  .team-overlay-content h3 {
    font-size: 1.08rem;
    margin-bottom: 6px;
  }

  .team-overlay-content span {
    font-size: 0.72rem;
    margin-bottom: 8px;
    letter-spacing: 0.9px;
  }

  .team-overlay-content p {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 3px;
  }

  .team-socials {
    margin-top: 12px;
    gap: 8px;
  }

  .team-socials a {
    width: 38px;
    height: 38px;
  }

  .team-socials img {
    width: 18px;
    height: 18px;
  }
}

/* MÓVIL PEQUEÑO */
@media (max-width: 480px) {
  .team-image img {
    height: 320px;
  }

  .team-overlay {
    padding: 18px 14px;
  }

  .team-overlay-content h3 {
    font-size: 1rem;
  }

  .team-overlay-content span {
    font-size: 0.68rem;
  }

  .team-overlay-content p {
    font-size: 0.84rem;
  }

  .team-socials a {
    width: 36px;
    height: 36px;
  }

  .team-socials img {
    width: 17px;
    height: 17px;
  }
}

/* CTA */
.cta {
  background: #0f172a;
}

.cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  background: linear-gradient(135deg, rgba(200,169,107,0.12), rgba(255,255,255,0.03));
  border: 1px solid rgba(200,169,107,0.18);
  border-radius: 28px;
  padding: 45px;
}

.cta-box h2,
.cta-box p,
.cta-box .section-subtitle {
  color: var(--white);
}

.cta-box p {
  color: #d1d5db;
}

/* CONTACT */
.contact {
  background: var(--light-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-details {
  margin-top: 28px;
  display: grid;
  gap: 14px;
  color: #4b5563;
}

.contact-form {
  background: var(--white);
  padding: 35px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #ddd6c8;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: #fffdf9;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(200, 169, 107, 0.15);
}

.form-btn {
  width: 100%;
  border: none;
  cursor: pointer;
}

/* FOOTER */
.footer {
  background: #0b1220;
  color: var(--white);
  padding: 28px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.footer h3 {
  margin-bottom: 4px;
}

.footer p {
  color: #d1d5db;
}

/* WHATSAPP */
.whatsapp-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.35);
  z-index: 999;
  transition: var(--transition);
  padding: 14px;
}

.whatsapp-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.whatsapp-btn:hover {
  transform: scale(1.08);
}

/* ANIMACIÓN */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .services-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .experience-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .experience-image img {
    height: 460px;
  }

  .mini-text {
    position: static;
    margin: 8px 0 18px;
    max-width: 100%;
  }

  .mini-tag {
    position: static;
  }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 88px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 88px);
    background: rgba(9, 13, 21, 0.98);
    display: flex;
    flex-direction: column;
    padding: 30px;
    gap: 22px;
    transition: 0.4s ease;
  }

  .nav.active {
    right: 0;
  }

  .menu-toggle {
    display: block;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 35px 0;
  }

  .hero {
    background-position: center;
  }

  .hero-content {
    padding-top: 110px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text p {
    font-size: 0.98rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .services-grid,
  .team-grid,
  .experience-list {
    grid-template-columns: 1fr;
  }

  .lawyer-card img {
    height: 280px;
  }

  .contact-form {
    padding: 24px;
  }

  .logo-icon {
    width: 50px;
    height: 50px;
  }

  .logo-text h2 {
    font-size: 0.9rem;
  }

  .logo-text span {
    font-size: 0.72rem;
  }

  .whatsapp-btn {
    width: 56px;
    height: 56px;
    padding: 12px;
  }
}

/* =========================
   TEAM MEJORADO
========================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lawyer-card {
  background: #1f2430;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.lawyer-card:hover {
  transform: translateY(-8px);
}

.lawyer-card img {
  height: 320px;
  object-fit: cover;
}

.lawyer-info {
  padding: 22px;
}

.lawyer-info h3 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.4;
}

.lawyer-info p {
  color: #d6d6d6;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.lawyer-socials {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.lawyer-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lawyer-socials a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.lawyer-socials img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* =========================
   TESTIMONIOS - CARRUSEL PREMIUM
========================= */
.testimonials {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(200, 169, 107, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8f6f1 55%, #ffffff 100%);
}

.testimonials-heading {
  margin-bottom: 52px;
}

.testimonial-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-track-container {
  overflow: hidden;
  border-radius: 30px;
}

.testimonial-track {
  display: flex;
  transition: transform 0.7s ease;
  will-change: transform;
}

.testimonial-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 6px;
}

.testimonial-card {
  position: relative;
  background: #ffffff;
  border-radius: 30px;
  padding: 48px 38px 34px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  text-align: center;
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 18px;
  left: 24px;
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  line-height: 1;
  color: rgba(200, 169, 107, 0.15);
}

/* CABECERA DEL USUARIO */
.testimonial-user-top {
  text-align: center;
  margin-bottom: 22px;
}

.testimonial-user-top img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 3px solid rgba(200, 169, 107, 0.2);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  background: #ece8de;
  display: block;
}

.testimonial-user-top h4 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: #111827;
}

.testimonial-user-top span {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: #9b7a43;
}

/* TEXTO */
.testimonial-text {
  text-align: center;
  font-size: 1.02rem;
  line-height: 1.9;
  color: #4b5563;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

/* BOTONES */
.testimonial-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: #111827;
  font-size: 1.35rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 5;
}

.testimonial-btn:hover {
  background: #c8a96b;
  color: #ffffff;
}

.testimonial-btn.prev {
  left: -22px;
}

.testimonial-btn.next {
  right: -22px;
}

/* DOTS */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.testimonial-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: rgba(17, 24, 39, 0.16);
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dots .dot.active {
  width: 30px;
  border-radius: 999px;
  background: #c8a96b;
}

/* TABLET */
@media (max-width: 1024px) {
  .testimonial-btn.prev {
    left: -10px;
  }

  .testimonial-btn.next {
    right: -10px;
  }

  .testimonial-card {
    padding: 40px 28px 30px;
  }

  .testimonial-text {
    font-size: 0.98rem;
    line-height: 1.8;
  }
}

/* MÓVIL */
@media (max-width: 768px) {
  .testimonials {
    padding: 80px 0;
  }

  .testimonials-heading {
    margin-bottom: 38px;
  }

  .testimonial-track-container {
    border-radius: 22px;
  }

  .testimonial-card {
    border-radius: 22px;
    padding: 34px 18px 22px;
  }

  .testimonial-card::before {
    top: 14px;
    left: 16px;
    font-size: 3.2rem;
  }

  .testimonial-user-top {
    margin-bottom: 18px;
  }

  .testimonial-user-top img {
    width: 95px;
    height: 95px;
  }

  .testimonial-user-top h4 {
    font-size: 1rem;
  }

  .testimonial-user-top span {
    font-size: 0.8rem;
  }

  .testimonial-text {
    font-size: 0.92rem;
    line-height: 1.75;
  }

  .testimonial-btn {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .testimonial-btn.prev {
    left: -4px;
  }

  .testimonial-btn.next {
    right: -4px;
  }
}

/* MÓVIL PEQUEÑO */
@media (max-width: 480px) {
  .testimonial-btn {
    display: none;
  }

  .testimonial-card {
    padding: 30px 16px 20px;
  }

  .testimonial-user-top img {
    width: 95px;
    height: 95px;
  }

  .testimonial-text {
    font-size: 0.9rem;
  }
}
.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* 🔥 CLAVES ANTI-PIXELADO */
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  
  transform: translateZ(0);
  backface-visibility: hidden;
}
.testimonial-track {
  display: flex;
  transition: transform 0.7s ease;

  /* 🔥 ESTO MEJORA LA NITIDEZ */
  transform: translate3d(0,0,0);
  will-change: transform;
}
.testimonial-avatar {
  overflow: hidden;
  border-radius: 50%;
  background: #f3f3f3;
}
/* =========================
   UBICACIÓN
========================= */
.location {
  background: var(--light-bg);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: stretch;
}

.location-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-card {
  margin-top: 24px;
  background: var(--white);
  padding: 25px;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.location-card h3 {
  margin-bottom: 12px;
  color: #a7894c;
  font-size: 1.2rem;
}

.location-card p {
  color: #4b5563;
  line-height: 1.8;
}

.location-map {
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* =========================
   FOOTER MEJORADO
========================= */
.footer {
  background: linear-gradient(180deg, #0b1220 0%, #111827 100%);
  color: var(--white);
  padding-top: 60px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 35px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-brand span {
  color: #cbd5e1;
  line-height: 1.7;
  display: block;
  max-width: 340px;
}

.footer-logo-box {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.footer-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: 1.1rem;
}

.footer-links a {
  display: block;
  color: #cbd5e1;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-contact p {
  color: #cbd5e1;
  margin-bottom: 10px;
  line-height: 1.7;
}

.footer-bottom {
  padding: 22px 0;
  text-align: center;
}

.footer-bottom p {
  color: #94a3b8;
  font-size: 0.95rem;
}

/* =========================
   RESPONSIVE EXTRA
========================= */
@media (max-width: 1100px) {
  .team-grid,
  .testimonials-grid,
  .footer-top,
  .location-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .team-grid,
  .testimonials-grid,
  .footer-top,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .location-map {
    min-height: 300px;
  }
}

/* ..... */


/* =========================
   FORMULARIO PREMIUM
========================= */

#form {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 34px 30px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 28px;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #8b7355;
  letter-spacing: 0.2px;
  text-transform: capitalize;
}

.field input {
  display: block;
  width: 100%;
  min-width: 100%;
  padding: 15px 16px;
  line-height: 1.5;
  font-size: 0.96rem;
  font-family: inherit;
  color: #111827;
  background: #fffdf9;
  border: 1px solid #e7dcc8;
  border-radius: 16px;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.field input:focus {
  border-color: #c8a96b;
  box-shadow: 0 0 0 4px rgba(200, 169, 107, 0.12);
  background: #ffffff;
}

.field input:hover {
  border-color: #d4c2a0;
}

.field input::placeholder {
  color: #9ca3af;
}

/* BOTÓN */
input[type="submit"] {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 15px 20px;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #c8a96b, #a67c3b);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(200, 169, 107, 0.22);
  transition: all 0.3s ease;
}

input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(200, 169, 107, 0.28);
}

input[type="submit"]:active {
  transform: translateY(0);
}

input[type="submit"]:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 10px 20px rgba(200, 169, 107, 0.16);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  #form {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .field {
    margin-bottom: 16px;
  }

  .field label {
    font-size: 0.95rem;
    margin-bottom: 7px;
  }

  .field input {
    padding: 14px 14px;
    font-size: 0.92rem;
    border-radius: 14px;
  }

  input[type="submit"] {
    padding: 14px 18px;
    font-size: 0.92rem;
  }
}
.field select {
  display: block;
  width: 100%;
  padding: 15px 16px;
  font-size: 0.96rem;
  font-family: inherit;
  color: #111827;
  background: #fffdf9;
  border: 1px solid #e7dcc8;
  border-radius: 16px;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  appearance: none; /* elimina estilo default */
  cursor: pointer;

  /* flechita personalizada */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%239b7a43' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}

.field select:focus {
  border-color: #c8a96b;
  box-shadow: 0 0 0 4px rgba(200, 169, 107, 0.12);
  background-color: #ffffff;
}

.field select:hover {
  border-color: #d4c2a0;
}