/* ----- Estilos generales ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
  background-color: #f7f7f7;
  line-height: 1.6;
}

/* ----- Encabezado ----- */
.topbar {
  background-color: #111;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: #d4af37; /* dorado */
}

.nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 1.2rem;
  transition: color 0.3s;
}

.nav a:hover {
  color: #d4af37;
}

/* ----- Sección Hero ----- */
.hero {
  background: url('https://images.unsplash.com/photo-1555375771-14b2a63968b6?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 8rem 2rem;
  background-attachment: fixed;
}

.hero-content {
  background-color: rgba(0, 0, 0, 0.5);
  display: inline-block;
  padding: 2rem 3rem;
  border-radius: 10px;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.btn-primario {
  background-color: #d4af37;
  color: #000;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-primario:hover {
  background-color: #b08d2b;
  color: #fff;
}

/* ----- Secciones ----- */
.section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: auto;
}

.section-light {
  background-color: #fff;
  border-top: 1px solid #ddd;
}

.section h2 {
  text-align: center;
  color: #111;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

/* ----- Tarjetas de servicios ----- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: #fff;
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: #d4af37;
  transform: translateY(-5px);
}

/* ----- Contacto ----- */
.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  background-color: #111;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 0.9rem;
  font-weight: bold;
}

.contact-form button:hover {
  background-color: #d4af37;
  color: #000;
}

/* ----- Footer ----- */
.footer {
  background-color: #111;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
}
/* --------- ENCABEZADO --------- */
.topbar {
  background: #0f2f34; /* verde petróleo oscuro */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 5vw;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 90px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 1.4rem;
}

.nav a {
  color: #f8f2e4; /* beige claro del logo */
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: #d6bf7f;
}

/* --------- HERO --------- */
.hero {
  padding: 5rem 5vw 4rem;
}

.hero-textured {
  background: radial-gradient(circle at top, #21484e 0%, #0f2f34 45%, #0a1c1f 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* textura suave */
.hero-textured::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 40%),
    linear-gradient(60deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0) 35%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 560px;
  z-index: 1;
}

.hero-tag {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: #d6bf7f;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-sub {
  max-width: 480px;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.btn-primario {
  background: #d6bf7f;
  color: #0a1c1f;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-primario:hover {
  filter: brightness(1.02);
}

/* --------- RESPONSIVE --------- */
@media (max-width: 820px) {
  .nav {
    gap: 0.9rem;
  }
  .hero {
    padding-top: 4.5rem;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none; /* después si querés hacemos menú hamburguesa */
  }
  .brand-logo {
    height: 46px;
  }
  .hero-content {
    max-width: 100%;
  }
}

/* ---------- CONTACTO CON FOTO ---------- */
.contacto-section {
  background-color: #fff;
  border-top: 1px solid #ddd;
  padding: 4rem 2rem;
}

.contact-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1100px;
  margin: auto;
  flex-wrap: wrap;
}

.contact-form-wrapper {
  flex: 1 1 60%;
}

.contact-photo {
  flex: 1 1 35%;
  text-align: center;
}

.contact-photo img {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.15);
  border: 4px solid #d6bf7f; /* borde dorado */
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column-reverse;
    text-align: center;
  }
  .contact-photo img {
    margin-bottom: 2rem;
  }
}
.whatsapp-float {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 54px;
  height: 54px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  z-index: 999;
}

.whatsapp-float:hover {
  filter: brightness(1.03);
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 14px;
    right: 14px;
  }
}
/* ---------- BLOQUE DESTACADO ---------- */
.highlight-box {
  background-color: #f8f8f8;
  border-left: 6px solid #d6bf7f; /* dorado */
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  font-style: italic;
  line-height: 1.6;
  color: #333;
}

.highlight-box p {
  margin: 0;
}
/* ---------- SUBTÍTULO DORADO ---------- */
.subtitulo-dorado {
  font-size: 1.4rem;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 3px solid #d6bf7f;
  display: inline-block;
  margin-bottom: 1rem;
  padding-bottom: 0.3rem;
}
/* ---------- SUBTÍTULO DORADO ---------- */
.subtitulo-dorado {
  font-size: 1.3rem;
  color: #222;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-bottom: 3px solid #d6bf7f;
  display: inline-block;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
}

/* ---------- BLOQUE DESTACADO ---------- */
.highlight-box {
  background-color: #f9f9f9;
  border-left: 6px solid #d6bf7f;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0 2rem 0;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  font-style: italic;
  color: #333;
  line-height: 1.6;
}
.highlight-box {
  background-color: #f8f8f8;
  border-left: 5px solid #d6bf7f;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.highlight-box strong {
  color: #1c2b2e;
  font-weight: 600;
}

.subtitulo-dorado {
  color: #bfa760;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
p {
  text-align: justify;
  text-justify: inter-word;
}
/* Contenido de secciones: que no se haga tan ancho en escritorio */
.section,
.section-light {
  max-width: 1050px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Texto del bloque sobre el estudio */
#nosotros p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Subtítulos dorados más separados */
.subtitulo-dorado {
  display: inline-block;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

/* Que los bloques destacados no peguen uno con otro */
.highlight-box {
  margin-bottom: 1.5rem;
}

/* Versión móvil */
@media (max-width: 768px) {
  .section,
  .section-light {
    padding: 2.2rem 1rem;
  }

  #nosotros p,
  .highlight-box p {
    text-align: justify;
  }
}
/* ===== Mejoras visuales para la sección “Sobre el estudio” ===== */

.section,
.section-light {
  max-width: 1050px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

#nosotros p {
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.subtitulo-dorado {
  display: inline-block;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  border-bottom: 2px solid #d6bf7f; /* línea dorada elegante */
  padding-bottom: 0.3rem;
}

.highlight-box {
  background-color: #fdfdfd;
  border-left: 5px solid #d6bf7f;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  color: #333;
}

/* Mejor visualización en celulares */
@media (max-width: 768px) {
  .section,
  .section-light {
    padding: 2rem 1rem;
  }

  #nosotros p,
  .highlight-box p {
    text-align: justify;
  }
}
/* ---------- FONDO HERO JURÍDICO ---------- */
.hero {
  background-image: url('fondo-hero.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* hace que quede anclado al fondo */
  color: #fff;
  padding: 10rem 2rem;
  text-align: center;
}

/* Versión móvil (usa la imagen vertical que hicimos) */
@media (max-width: 768px) {
  .hero {
    background-image: url('fondo-hero-movil.jpg');
    background-attachment: scroll; /* mejora rendimiento en móviles */
  }
}
/* ===== Nosotros con foto ===== */
.nosotros-wrapper {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.nosotros-texto {
  flex: 1 1 60%;
}

.nosotros-foto {
  flex: 0 0 230px;
  text-align: center;
}

.nosotros-foto img {
  width: 100%;
  max-width: 230px;
  border-radius: 12px;
  border: 4px solid #d6bf7f;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.caption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #333;
}

.caption span {
  color: #666;
  font-style: italic;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .nosotros-wrapper {
    flex-direction: column;
  }
  .nosotros-foto {
    margin-top: 1.5rem;
  }
}
.contact-photo img {
  width: 100%;
  max-width: 250px;
  border: none;
  box-shadow: none;
  border-radius: 0;
}
