/* =============================================
   Troncoso Parra Abogados & Cía – Iquique, Tarapacá
   styles.css
   ============================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  color: #1a2332;
  background: #fff;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Tokens ---- */
:root {
  --navy:  #1a2332;
  --slate: #3d5068;
  --gray:  #f0f0f0;
  --gold:  #c9a96e;
  --wa:    #25d366;
  --white: #ffffff;
  --text-muted: #666;
  --radius: 3px;
  --transition: .25s ease;
  --shadow: 0 4px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.15);
}

/* ---- Utilities ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-dark:hover {
  background: var(--slate);
  border-color: var(--slate);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-nav {
  background: var(--slate);
  color: var(--white);
  border-color: var(--slate);
  padding: 10px 22px;
}
.btn-nav:hover { background: var(--navy); border-color: var(--navy); }

.btn-wa-cta {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  white-space: nowrap;
}
.btn-wa-cta:hover { background: #0f1924; }

.btn-full { width: 100%; text-align: center; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: var(--navy);
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}
.logo-subtitle {
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  letter-spacing: .04em;
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

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

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--navy);
  overflow: hidden;
  padding-top: 84px;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Slides reservadas para las fotos del cliente (ver HERO_SLIDES en main.js) */
.hero-slide--slot {
  background-image: linear-gradient(135deg, #26324a 0%, #151d2b 100%);
}

.hero-photo-slot {
  position: absolute;
  /* deja libre la navbar arriba y la barra de contacto abajo */
  inset: 96px 32px 64px;
  z-index: 2;
  border: 2px dashed rgba(201, 169, 110, .45);
  border-radius: 4px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo-slot span {
  background: rgba(201, 169, 110, .12);
  border: 1px solid rgba(201, 169, 110, .45);
  color: var(--gold);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius);
}

@media (max-width: 900px) {
  .hero-photo-slot { inset: 92px 16px 56px; }
  .hero-photo-slot span { font-size: .78rem; letter-spacing: .08em; padding: 8px 14px; }
}

/* El hero es solo fotografía: el velo ya no tiene que hacer legible un texto encima,
   solo oscurecer arriba para que la navbar blanca se lea sobre cualquier foto. */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 35, 50, 0.72) 0%,
    rgba(26, 35, 50, 0.22) 26%,
    rgba(26, 35, 50, 0.12) 70%,
    rgba(26, 35, 50, 0.38) 100%
  );
  z-index: 1;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 48px;
  height: 64px;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background var(--transition), border-color var(--transition);
  backdrop-filter: blur(4px);
}
.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--gold);
}
.hero-arrow.prev { left: 0; border-left: none; border-radius: 0 4px 4px 0; }
.hero-arrow.next { right: 0; border-right: none; border-radius: 4px 0 0 4px; }

.hero-dots {
  position: absolute;
  /* por encima de la barra de contacto fija */
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 36px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), width var(--transition);
}
.hero-dot.active {
  background: var(--gold);
  width: 52px;
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.7); }

@media (max-width: 900px) {
  .hero-arrow { width: 38px; height: 54px; }
  .hero-dots { bottom: 62px; }
  .hero-dot { width: 28px; }
  .hero-dot.active { width: 40px; }
}

/* =============================================
   SOBRE MÍ
   ============================================= */
.about {
  background: var(--white);
  padding: 90px 0;
  text-align: center;
}

.about-text {
  max-width: 800px;
  margin: 0 auto 20px;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.85;
}

/* =============================================
   PERFIL — Fabricio Troncoso Parra
   ============================================= */
.profile {
  background: var(--gray);
  padding: 90px 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: center;
}

.profile-photo {
  aspect-ratio: 6/7;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.profile-photo svg,
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Espacio reservado para la foto, mismo lenguaje que el hero pero sobre fondo claro.
   Conserva el aspect-ratio 6/7 heredado de .profile-photo. */
.profile-photo--slot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #e3e7ec;
  border: 2px dashed rgba(184, 148, 82, .6);
  box-shadow: none;
}
.profile-photo--slot span {
  background: var(--white);
  border: 1px solid rgba(184, 148, 82, .55);
  border-radius: var(--radius);
  color: #a1803f;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.5;
  padding: 10px 18px;
}

.profile-eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.profile-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 22px;
}
.profile-content h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  background: var(--gold);
  margin-top: 18px;
}

.profile-content p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.85;
  margin-bottom: 16px;
}

/* =============================================
   ÁREAS DE ESPECIALIZACIÓN
   ============================================= */
/* Fondo azul de marca: las tarjetas blancas contrastan y la sección se despega del resto */
.areas {
  background: var(--navy);
  padding: 90px 0;
}

.areas .section-header h2 { color: var(--white); }
.areas .section-header p  { color: rgba(255,255,255,.6); }

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.area-card {
  position: relative;
  background: var(--white);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.area-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.area-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #dfe3e8;
  line-height: 1;
  margin-bottom: 14px;
}

.area-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.area-card p {
  font-size: .93rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   EQUIPO
   ============================================= */
.team {
  background: var(--white);
  padding: 90px 0;
  border-top: 1px solid #e8e8e8;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-card {
  background: var(--gray);
  border-radius: 4px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-card--lead {
  background: var(--navy);
}
.team-card--lead .team-info h3,
.team-card--lead .team-info p {
  color: rgba(255,255,255,.9);
}
.team-card--lead .team-role {
  color: var(--gold);
}

.team-photo {
  width: 100%;
  aspect-ratio: 6/7;
  overflow: hidden;
}
.team-photo svg,
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-info {
  padding: 20px;
}
.team-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 5px;
}
.team-role {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.team-info p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   NOTICIAS
   ============================================= */
.news {
  background: var(--gray);
  padding: 90px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.section-header p {
  color: var(--text-muted);
  font-size: .95rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.news-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.news-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: #c8cdd6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  color: #888;
}
.news-card-body {
  padding: 20px;
}
.news-card-date {
  font-size: .8rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.news-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.4;
}
.news-card-excerpt {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   BANNER CTA
   ============================================= */
.cta-banner {
  background: var(--slate);
  padding: 56px 0;
  min-height: 160px;
}

.cta-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--white);
}
.cta-icon { font-size: 2.4rem; }
.cta-info p { font-size: .95rem; opacity: .9; }
.cta-info strong { font-size: 1.2rem; }

/* =============================================
   CONTACTO
   ============================================= */
.contact {
  background: var(--white);
  padding: 90px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form-wrap h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 28px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { margin-bottom: 16px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .95rem;
  color: var(--navy);
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--slate);
  background: #fff;
}
.field select { cursor: pointer; appearance: none; }

.form-success {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: var(--radius);
  font-size: .9rem;
}
.form-success.visible { display: block; }

.contact-details h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.detail-item {
  margin-bottom: 20px;
}
.detail-label {
  display: block;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.detail-item span:last-child {
  font-size: .95rem;
  color: #555;
  line-height: 1.6;
}
.detail-item a {
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.detail-item a:hover {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.btn-agenda { margin-top: 8px; }

/* ---- Cómo llegar ---- */
.map-block {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid #e8e8e8;
}

.map-embed {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #dfe3e8;
  aspect-ratio: 16 / 9;
  max-height: 380px;
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.map-info p {
  font-size: .98rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 22px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 60px 0 0;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--white);
}
.footer-brand span {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .6;
}

.footer-col h4 {
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col p {
  font-size: .9rem;
  line-height: 1.8;
  margin-bottom: 10px;
}
.footer-col strong { color: rgba(255,255,255,.9); }
.footer-col a { transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: .8rem;
  opacity: .5;
}

/* ---- Social icons ---- */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: background var(--transition), color var(--transition);
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover { background: var(--gold); color: var(--white); }

/* ---- Share button on news cards ---- */
.news-card-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0 20px 16px;
}
.share-btn {
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: .75rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: border-color var(--transition), color var(--transition);
}
.share-btn:hover { border-color: var(--gold); color: var(--gold); }
.share-btn svg { width: 13px; height: 13px; }

/* =============================================
   FLOATING BUTTONS
   ============================================= */
.fab-wrap {
  position: fixed;
  /* deja aire sobre la barra de contacto fija */
  bottom: 74px;
  right: 28px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.fab {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.fab:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.fab svg { width: 28px; height: 28px; }

.fab-wa { background: var(--wa); }

.wa-tooltip {
  background: rgba(0,0,0,.75);
  color: var(--white);
  font-size: .78rem;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}
.fab-wrap:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* =============================================
   BARRA DE CONTACTO FIJA
   Pedido del cliente: datos de contacto en una sola línea,
   abajo, visibles desde el inicio y en todas las secciones.
   ============================================= */
.contact-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 950;
  background: var(--navy);
  border-top: 2px solid var(--gold);
  color: rgba(255,255,255,.85);
}

.contact-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 11px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: .85rem;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.contact-bar-inner::-webkit-scrollbar { display: none; }

.contact-bar-label {
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-bar-inner a {
  transition: color var(--transition);
}
.contact-bar-inner a:hover { color: var(--white); }
.contact-bar-inner strong { color: var(--white); font-weight: 600; }
.contact-bar-sep { opacity: .35; }
.contact-bar-addr { opacity: .8; }

/* El body cede el alto de la barra para que nada quede tapado */
body { padding-bottom: 46px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .profile-grid   { grid-template-columns: 1fr; gap: 36px; }
  .profile-photo  { max-width: 320px; margin: 0 auto; }
  .profile-content { text-align: center; }
  .profile-content h2::after { margin-left: auto; margin-right: auto; }
  .areas-grid     { grid-template-columns: repeat(2, 1fr); }
  .news-grid      { grid-template-columns: repeat(2, 1fr); }
  .contact-grid   { grid-template-columns: 1fr; }
  .map-block      { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  /* Navbar mobile */
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav-menu.open { max-height: 400px; }
  .nav-link {
    display: block;
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    font-size: 1rem;
  }
  .nav-link::after { display: none; }
  .btn-nav { margin: 16px 24px; width: auto; }

  /* Áreas */
  .areas-grid { grid-template-columns: 1fr; }

  /* News */
  .news-grid { grid-template-columns: 1fr; }

  /* Team mobile */
  .team-grid { grid-template-columns: 1fr; }

  /* CTA banner */
  .cta-banner .container { flex-direction: column; align-items: flex-start; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Field row */
  .field-row { grid-template-columns: 1fr; }

  .fab-wrap   { right: 14px; bottom: 66px; }

  /* 16/9 deja el mapa muy bajo en pantallas angostas */
  .map-embed { aspect-ratio: 4 / 3; max-height: 320px; }

  /* Barra de contacto: sigue siendo una sola línea, con scroll horizontal */
  .contact-bar-inner {
    justify-content: flex-start;
    padding: 10px 16px;
    font-size: .8rem;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .btn { padding: 12px 20px; font-size: .8rem; }
  .profile-content h2 { font-size: 1.7rem; }
  .area-card { padding: 26px 22px; }
}
