/* Fuentes locales (archivos en assets/fonts/). Sin Google Fonts en tiempo de ejecución. */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/playfair-600.ttf") format("truetype");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/playfair-700.ttf") format("truetype");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./assets/fonts/playfair-800.ttf") format("truetype");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("./assets/fonts/poppins-300.ttf") format("truetype");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/poppins-400.ttf") format("truetype");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/poppins-500.ttf") format("truetype");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/poppins-600.ttf") format("truetype");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/poppins-700.ttf") format("truetype");
}

/* Sitio autocontenido: tipografía y decoración desde este archivo + assets locales. */
:root {
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --color-primary: #00172b;
  --color-secondary: #02111e;
  --color-tertiary: #051e38;
  --bg: var(--color-primary);
  --bg-soft: var(--color-tertiary);
  --text: #f6f6f6;
  --muted: #c9d4e0;
  --gold: #d6b06f;
  --line: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7.5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-primary);
  color: var(--text);
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  margin: 0 0 0.75rem;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ——— Menú principal ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(2, 17, 30, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header .nav-wrap {
  position: relative;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
}

.brand-with-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  height: 88px;
  width: auto;
  max-width: min(340px, 62vw);
  object-fit: contain;
  object-position: left center;
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(214, 176, 111, 0.45),
    0 4px 20px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(214, 176, 111, 0.18);
}

.brand-text {
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.main-nav a,
.dropbtn {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  border: 0;
  background: none;
  cursor: pointer;
}

.main-nav a:hover,
.dropbtn:hover {
  color: var(--gold);
}

.cta-nav {
  border: 1px solid var(--gold);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-weight: 600;
}

.dropdown {
  position: relative;
}

.dropbtn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.dropdown-content {
  position: absolute;
  top: 135%;
  left: 0;
  min-width: 260px;
  border: 1px solid var(--line);
  background: var(--color-tertiary);
  border-radius: 10px;
  padding: 0.5rem;
  display: none;
}

.dropdown-content a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
}

.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dropdown-content a[aria-current="page"] {
  background: rgba(214, 176, 111, 0.22);
  color: #fff;
  font-weight: 500;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 4px 0;
  background: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 100% 70% at 15% 25%, rgba(214, 176, 111, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 85% 70%, rgba(5, 30, 56, 0.95) 0%, transparent 50%),
    linear-gradient(115deg, #02111e 0%, #051e38 38%, #00172b 55%, #020d18 100%);
}

.hero-overlay {
  background: linear-gradient(
    105deg,
    rgba(0, 23, 43, 0.88) 0%,
    rgba(2, 17, 30, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  text-align: left;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  margin-bottom: 0.7rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.06;
}

.hero p {
  margin-top: 1.2rem;
  max-width: 620px;
}

.btn-primary {
  display: inline-block;
  margin-top: 1.5rem;
  text-decoration: none;
  color: var(--color-primary);
  background: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
}

.btn-primary:hover {
  background: transparent;
  color: var(--gold);
}

/* Sections */
.about,
.team,
.news,
#nuestra-empresa {
  background: var(--bg-soft);
}

.services h2,
.about h2,
.stats h2,
.team h2,
.news h2,
.site-footer h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.card-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
  background: #041a2f;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.stats {
  background: var(--color-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
}

.stat-card h3 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--color-secondary);
}

/* Paginas internas (areas de practica) */
.inner-hero {
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  padding: 6.5rem 0 2.75rem;
  background: linear-gradient(
    165deg,
    var(--color-tertiary) 0%,
    var(--color-primary) 55%,
    var(--color-secondary) 100%
  );
  border-bottom: 1px solid var(--line);
}

.inner-hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  max-width: 820px;
}

.inner-hero .lead {
  margin-top: 1rem;
  max-width: 640px;
  font-size: 1.05rem;
}

.breadcrumb {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  opacity: 0.65;
  margin: 0 0.35rem;
}

.service-detail {
  background: var(--bg-soft);
}

.service-detail h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-top: 2.5rem;
  margin-bottom: 0.65rem;
  color: #fff;
}

.service-detail h2:first-of-type {
  margin-top: 0;
}

.detail-list {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.85;
}

.detail-list li {
  margin-bottom: 0.35rem;
}

.page-cta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.service-heading-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.service-heading-link:hover {
  color: var(--gold);
}

/* Nosotros — Misión y visión */
.about-lead {
  margin-top: 0.5rem;
  max-width: 720px;
}

.mission-vision {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.mv-card {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 1.35rem;
  border-radius: 12px;
  background: linear-gradient(
    145deg,
    rgba(5, 30, 56, 0.96) 0%,
    rgba(2, 17, 30, 0.92) 100%
  );
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.mv-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    var(--gold) 0%,
    rgba(214, 176, 111, 0.35) 100%
  );
}

.mv-card h3 {
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.mv-card p {
  font-size: 0.98rem;
}

/* ——— Equipo: marcos en .lawyer-frame; fotos solo con CSS (background-image) ——— */
.team-intro {
  margin-top: 0.35rem;
  font-family: var(--font-body);
}

.team-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.35rem;
}

.lawyer-card {
  min-width: 0;
}

.lawyer-frame {
  position: relative;
  height: 100%;
  padding: 1.65rem 1.15rem 1.5rem;
  text-align: center;
  background: linear-gradient(
    180deg,
    #041a31 0%,
    var(--color-secondary) 100%
  );
  border-radius: 6px;
  /* Marco exterior: visible aunque falle ::before/::after en navegadores viejos */
  border: 2px solid rgba(214, 176, 111, 0.55);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
}

/* Marco doble interior (compatible sin propiedad inset) */
.lawyer-frame::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  border: 1px solid rgba(214, 176, 111, 0.6);
  border-radius: 4px;
  pointer-events: none;
}

.lawyer-frame::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 14px;
  right: 14px;
  bottom: 14px;
  left: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  pointer-events: none;
}

.lawyer-photo-wrap {
  position: relative;
  z-index: 1;
  width: 132px;
  height: 132px;
  margin: 0 auto 1.15rem;
  border-radius: 50%;
  border: 2px solid rgba(214, 176, 111, 0.55);
  background: rgba(0, 23, 43, 0.75);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

/* Capa de foto (encima de iniciales); URL definida solo en este CSS */
.lawyer-face {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  border-radius: 50%;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

.lawyer-card--maria .lawyer-face {
  background-image: url("./assets/equipo/jorge.jpeg");
}

.lawyer-card--carlos .lawyer-face {
  background-image: url("./assets/equipo/abogado2.jpeg");
}

.lawyer-card--ana .lawyer-face {
  background-image: url("./assets/equipo/abogado3.jpeg");
}

.lawyer-card--jorge .lawyer-face {
  background-image: url("./assets/equipo/laura.jpeg");
}

.lawyer-card--laura .lawyer-face {
  background-image: url("./assets/equipo/abogada4.jpeg");
}
.lawyer-card--susana .lawyer-face {
  background-image: url("./assets/equipo/suasana.jpeg");
}

.lawyer-initials {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  pointer-events: none;
}

.lawyer-frame h3 {
  position: relative;
  z-index: 1;
  font-size: 1.12rem;
  margin-bottom: 0.45rem;
  color: #fff;
  line-height: 1.25;
}

.lawyer-role {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  line-height: 1.5;
  font-family: var(--font-body);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Responsive */
@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .card-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 4%;
    width: min(320px, 92vw);
    background: var(--color-tertiary);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.9rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .mission-vision {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-nav.open {
    display: flex;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-content {
    position: static;
    margin-top: 0.5rem;
    width: 100%;
  }

  .dropdown.mobile-open .dropdown-content {
    display: block;
  }

  .dropdown:hover .dropdown-content {
    display: none;
  }
}

@media (max-width: 720px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .section {
    padding: 4rem 0;
  }

  .card-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}
/* --- Estilos definitivos para el teléfono en blanco --- */

/* 1. Aplica a la clase y a cualquier enlace telefónico automático */
.phone-white, 
a[href^="tel"] {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* 2. Blindaje para todos los estados posibles del enlace (marcado, visitado, enfocado) */
.phone-white:link,
.phone-white:visited,
.phone-white:hover,
.phone-white:active,
.phone-white:focus {
  color: #ffffff !important;
  text-decoration: none !important;
}