.domine {
  font-family: "Domine", serif;
  font-optical-sizing: auto;
  font-weight: 400 700;
  font-style: normal;
}

.roboto-serif {
  font-family: "Roboto Serif", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100, "GRAD" 0;
}

:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #444f5c;
  /* gris del logo */
  --muted: #6b7280;
  --primary: #7f0d18;
  /* bordó del logo */
  --ring: rgba(127, 13, 24, 0.18);
  --radius: 14px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 12px 24px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  /* font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; */
  /*font-family: "Domine", serif;*/
  font-family: "Roboto Serif", serif;
  font-optical-sizing: auto;
  font-weight: 400 700;
  font-style: normal;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1120px;
  margin: auto;
  padding: 0 1rem;
}

h1,
h2,
h3 {
  margin: 0;
}

h2 {
  font-size: 1.15rem;
  margin: 0 0 0.8rem;
}

h3 {
  font-size: 1rem;
  margin: 1.2rem 0 0.6rem;
  color: var(--muted);
  font-weight: 600;
}

/* HERO / BRAND */
.hero {
  position: relative;
  height: 280px; /* antes ~220px → +25 % */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

/* Fondo del Lanín */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("banner_ok.jpg") center/cover no-repeat;
  filter: brightness(0.55);
  z-index: 0;
}

/* Logo transparente institucional */
.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 3%;
  transform: translateY(-45%); /* lo sube levemente */
  width: 420px; /* ajustá si querés que ocupe más o menos */
  aspect-ratio: 2 / 1; /* mantiene proporción del logo */
  background: url("logo_colegio_abogaods_CIV.png") no-repeat center right;
  background-size: contain;
  opacity: 0.22; /* más visible para que se lea el texto del logo */
  z-index: 1;
}

/* Texto del banner */
.hero h1,
.hero .subtitle {
  position: relative;
  z-index: 2;
}
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.brand-hero {
  display: block;
  height: auto;
  padding: 1.2rem 0 2rem;
}

.brand-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(127, 13, 24, 0.75),
      rgba(127, 13, 24, 0.55)
    ),
    url("banner_ok.jpg") top/cover no-repeat;
  filter: none;
}

.brand-hero::after {
  content: "";
  position: absolute;
  right: 6%;
  bottom: -20px;
  width: 360px;
  height: 720px;
  background: url("logo_colegio_abogados_CIV.png") top/contain no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

@media (max-width: 900px) {
  .brand-hero::after {
    right: -40px;
    width: 240px;
    height: 480px;
    opacity: 0.07;
  }
}

.brandbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  width: 70px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  background: #fff;
}

.brand-text {
  line-height: 1.1;
}

.brand-top {
  font-size: 0.95rem;
  opacity: 0.95;
}

.brand-name {
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-sub {
  font-size: 0.95rem;
  opacity: 0.95;
}

.mini {
  background: #ffffff1a;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #ffffff33;
}

.mini:hover {
  background: #ffffff26;
}

/* GENERAL SECTIONS */
section {
  padding: 2rem 0;
}

.grid {
  display: grid;
  gap: 0.75rem;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.85rem 0.9rem;
  border: 1px solid #eef0f4;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(127, 13, 24, 0.08),
    0 18px 32px rgba(0, 0, 0, 0.05);
}

.card a.title {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

/* TWO COLUMN BLOCKS */
.split {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.badge {
  display: inline-block;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: #fff4f5;
  color: #7f0d18;
  border: 1px solid #f5d6d9;
  font-size: 0.78rem;
}

.btn-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  font-size: 0.9rem;
}

.btn:hover {
  background: #f8eff0;
}

.list {
  margin: 0.4rem 0 0;
  padding-left: 1rem;
}

.list li {
  margin: 0.2rem 0;
}

.map {
  width: 100%;
  height: 240px;
  border: 0;
  border-radius: 12px;
}

.hr {
  height: 1px;
  background: #eceff3;
  margin: 1.25rem 0;
}

/* FOOTER */
footer {
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Botones de redes */
.btn-social {
  display: inline-flex; /* centra icono+texto en altura */
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f6f7fb;
  color: #7a0e12; /* color del texto */
  line-height: 1; /* evita salto vertical raro */
  text-decoration: none;
}

/* Que el SVG herede el color y escale con el texto */
.btn-social svg {
  width: 1.1em; /* relativo al font-size */
  height: 1.1em;
  flex: none; /* que no se deforme */
}

/* MUY IMPORTANTE: los trazos/rellenos del SVG deben usar currentColor */
.btn-social svg [fill] {
  fill: currentColor;
}
.btn-social svg [stroke] {
  stroke: currentColor;
}
