/* ============================================================
   TRUSTWORD LEGAL PREVENTION — style.css
   Réplica fiel al sitio original Wix
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Raleway:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #111111;
  --navy-dark: #0a0a0a;
  --navy-mid:  #161616;
  --gold:      #c9a84c;
  --gold-light:#e2c47a;
  --white:     #ffffff;
  --off-white: #f5f2ee;
  --gray:      #8a99aa;
  --text-light:#cdd5df;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Raleway', Helvetica, sans-serif;
  --transition:0.3s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
.container { width: 90%; max-width: 1100px; margin: 0 auto; }

/* ===================== HEADER ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201,168,76,0.18);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.5); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.logo-img { height: 46px; width: auto; }
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-main {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .02em;
}
.logo-sub {
  font-family: var(--font-body);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1px;
}

/* Nav */
nav ul { list-style: none; display: flex; gap: 40px; }
nav a {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-light);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
nav a:hover, nav a.active { color: var(--gold); border-color: var(--gold); }

/* Logo real */
.logo-link { display: flex; align-items: center; }
.logo-img  { height: 44px; width: auto; }

/* Lado derecho header: lang + burger */
.header-right { display: flex; align-items: center; gap: 18px; }

/* Switch de idioma */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-btn {
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gray);
  text-transform: uppercase;
  transition: color var(--transition);
  padding: 2px 4px;
}
.lang-btn:hover, .lang-btn.active { color: var(--gold); }
.lang-sep { color: rgba(255,255,255,.2); font-size: .7rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* Foto profesional: reunión de abogados/ejecutivos — Unsplash (libre de uso) */
  background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=1920&q=85&auto=format&fit=crop');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

/* Overlay oscuro denso a la izquierda para legibilidad del texto,
   se aclara hacia la derecha para mostrar la foto */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,0.93)  0%,
    rgba(0,0,0,0.78)  35%,
    rgba(0,0,0,0.45)  60%,
    rgba(0,0,0,0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 130px 0 100px;
  max-width: 620px;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  display: block;
}

.hero-desc {
  font-size: .95rem;
  font-weight: 400;
  color: rgba(205,213,223,0.88);
  max-width: 480px;
  line-height: 1.85;
  margin-bottom: 10px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.hero-btn {
  display: inline-block;
  margin-top: 32px;
  padding: 13px 38px;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.hero-btn:hover { background: var(--gold); color: var(--navy-dark); }

/* Separador dorado */
.gold-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto;
}
.gold-divider-left {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 16px 0 0;
}

/* ===================== QUIÉNES SOMOS ===================== */
.section-quienes {
  background: var(--navy-dark);
  padding: 90px 0;
}
.quienes-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.section-eyebrow {
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 22px;
}
.section-text {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 14px;
}
.btn-outline {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 34px;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
}
.btn-outline:hover { background: var(--gold); color: var(--navy-dark); }
.btn-solid {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-solid:hover { background: var(--gold-light); border-color: var(--gold-light); }

.quienes-img-wrap {
  position: relative;
}
.quienes-img-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

/* ===================== SERVICIOS PREVENTIVOS ===================== */
.section-servicios-prev {
  background: var(--navy-mid);
  padding: 90px 0;
}
.section-header-center {
  text-align: center;
  margin-bottom: 60px;
}
.section-header-center .section-title { margin-bottom: 8px; }

/* Grid de servicios: imagen cuadrada + texto debajo */
.servicios-prev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.serv-card {
  background: var(--navy-dark);
  padding: 0;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.serv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.serv-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
/* Placeholder si no hay imagen: cuadro dorado con ícono */
.serv-card-icon-wrap {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #111111 0%, #1e1e1e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid var(--gold);
}
.serv-card-icon-wrap svg {
  width: 52px;
  height: 52px;
  color: var(--gold);
}
.serv-card-body {
  padding: 22px 20px 26px;
}
.serv-card-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: .03em;
}
.serv-card-desc {
  font-size: .82rem;
  color: var(--gray);
  line-height: 1.7;
}

/* Fila de 2 centrada al final */
.servicios-prev-grid-last {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
}
.servicios-prev-grid-last .serv-card {
  width: calc(33.333% - 10px);
}

/* ===================== LITIGIO ===================== */
.section-litigio {
  background: var(--navy-dark);
  padding: 90px 0;
}

/* Banner con foto de fondo */
.litigio-banner {
  position: relative;
  height: 220px;
  margin-bottom: 60px;
  overflow: hidden;
}
.litigio-banner-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://static.wixstatic.com/media/eb1e1c5ab5cb4b289e110f234051208f.jpg/v1/fill/w_1920,h_500/eb1e1c5ab5cb4b289e110f234051208f.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(.4) sepia(.3);
}
.litigio-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.litigio-banner h2 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem,4vw,3.5rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: .04em;
  position: relative;
  z-index: 1;
}

/* Grid litigio: imagen vertical + texto al lado */
.litigio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.litigio-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--navy-mid);
  padding: 28px;
  transition: transform var(--transition);
}
.litigio-card:hover { transform: translateY(-4px); }
.litigio-card-img {
  width: 100px;
  height: 90px;
  object-fit: cover;
  flex-shrink: 0;
}
.litigio-card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #111111 0%, #1e1e1e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-left: 3px solid var(--gold);
}
.litigio-card-icon svg { width: 32px; height: 32px; color: var(--gold); }
.litigio-card-body {}
.litigio-card-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 7px;
}
.litigio-card-desc {
  font-size: .82rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ===================== SECTORES ===================== */
.section-sectores {
  background: var(--navy-mid);
  padding: 90px 0;
}
.sectores-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  margin-top: 48px;
}
.sector-item {
  background: var(--navy-dark);
  padding: 32px 16px;
  text-align: center;
  transition: background var(--transition);
  cursor: default;
}
.sector-item:hover { background: rgba(201,168,76,0.08); }
.sector-item svg { width: 32px; height: 32px; color: var(--gold); margin: 0 auto 12px; display: block; }
.sector-item span {
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color var(--transition);
}
.sector-item:hover span { color: var(--gold); }

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 60px 0 0;
}

/* Logo grande centrado */
.footer-logo-wrap {
  text-align: center;
  margin-bottom: 48px;
}
.footer-logo-wrap img {
  height: 70px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  align-items: start;
}

.footer-contact h4 {
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-contact p {
  font-size: .88rem;
  color: var(--gray);
  line-height: 1.9;
}
.footer-contact a { color: var(--gold); }

.footer-social-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}
.footer-social-wrap a {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
  transition: border-color var(--transition), color var(--transition);
}
.footer-social-wrap a:hover { border-color: var(--gold); color: var(--gold); }
.footer-social-wrap svg { width: 16px; height: 16px; }

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: .75rem;
  color: rgba(255,255,255,.25);
  letter-spacing: .05em;
}

/* Volver arriba */
.back-to-top-link {
  display: block;
  text-align: center;
  padding: 14px 0;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 20px;
  transition: opacity var(--transition);
}
.back-to-top-link:hover { opacity: .7; }

/* Back-to-top flotante */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 42px; height: 42px;
  background: var(--gold);
  color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 999; cursor: pointer; border: none;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top svg { width: 18px; height: 18px; }

/* ===================== CONTACTO PAGE ===================== */
.page-hero {
  padding: 150px 0 70px;
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(201,168,76,.12);
  text-align: center;
}
.page-hero .section-eyebrow { display: inline-block; margin-bottom: 12px; }
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}
.page-hero p { font-size: .92rem; color: var(--gray); max-width: 480px; margin: 0 auto; }

.section-contact-form {
  padding: 80px 0 100px;
  background: var(--navy-mid);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 72px;
}
.contact-info .section-title { font-size: clamp(1.5rem,2.5vw,2.1rem); margin-bottom: 16px; margin-top: 12px; }
.contact-info p { font-size: .88rem; color: var(--gray); margin-bottom: 30px; }
.contact-details { list-style: none; }
.contact-details li {
  display: flex; gap: 13px; align-items: flex-start;
  margin-bottom: 20px; font-size: .88rem; color: var(--gray);
}
.contact-details li svg { flex-shrink: 0; width: 17px; height: 17px; color: var(--gold); margin-top: 2px; }
.contact-details a { color: var(--gray); transition: color var(--transition); }
.contact-details a:hover { color: var(--gold); }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); font-weight: 700; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--navy-dark);
  border: 1px solid rgba(255,255,255,.09);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .88rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.22); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group select option { background: var(--navy-mid); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-notice { font-size: .73rem; color: rgba(255,255,255,.28); margin-top: 2px; }
.form-feedback { display: none; padding: 12px 16px; font-size: .85rem; margin-top: 6px; }
.form-feedback.success { background: rgba(50,180,80,.1); border:1px solid rgba(50,180,80,.3); color:#6ecf82; display:block; }
.form-feedback.error   { background: rgba(220,60,60,.1);  border:1px solid rgba(220,60,60,.3);  color:#e07070; display:block; }

/* Mapa */
.map-wrap { height: 300px; overflow: hidden; }
.map-wrap iframe { width:100%; height:100%; border:0; filter: invert(.9) hue-rotate(180deg) saturate(.5); }

/* ===================== NOSOTROS PAGE ===================== */
.seccion-mision-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2px;
  margin-top: 48px;
}
.mision-card {
  background: var(--navy-mid);
  padding: 40px 28px;
  text-align: center;
}
.mision-card h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 14px;
}
.mision-card p { font-size: .85rem; color: var(--gray); line-height: 1.8; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  nav { display:none; position:absolute; top:68px; left:0; right:0; background: var(--navy-dark); padding:12px 0; z-index:999; }
  nav.open { display:block; }
  nav ul { flex-direction:column; gap:0; }
  nav ul li a { display:block; padding:13px 28px; border-bottom:1px solid rgba(255,255,255,.04); }
  .hamburger { display:flex; }

  .quienes-inner { grid-template-columns:1fr; gap:40px; }
  .quienes-img-wrap { order:-1; }
  .servicios-prev-grid { grid-template-columns:repeat(2,1fr); }
  .servicios-prev-grid-last .serv-card { width:calc(50% - 14px); }
  .litigio-grid { grid-template-columns:1fr; }
  .sectores-grid { grid-template-columns:repeat(3,1fr); }
  .footer-grid { grid-template-columns:1fr; gap:32px; }
  .footer-social-wrap { justify-content:flex-start; }
  .contact-grid { grid-template-columns:1fr; gap:48px; }
  .seccion-mision-grid { grid-template-columns:1fr; }
}

@media (max-width: 600px) {
  .servicios-prev-grid { grid-template-columns:1fr; }
  .servicios-prev-grid-last { flex-direction:column; }
  .servicios-prev-grid-last .serv-card { width:100%; }
  .sectores-grid { grid-template-columns:repeat(2,1fr); }
  .form-row { grid-template-columns:1fr; }
  .litigio-card { flex-direction:column; }
}
