/* Fuente global Inter y resets */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #f7f7f7;
  color: #222;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  margin-top: 0;
  overflow-x: hidden;
  /* evita scroll horizontal por padding + max-width en móviles */
}

/* Aplica border-box globalmente para que padding/border no sumen al ancho */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --footer-height: 140px;
  /* altura por defecto del footer fijo */
}

/* Asegurar que el contenido no quede debajo del footer fijo */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  padding-top: 70px;
  padding-bottom: 0;
}

/* Header */
.header {
  background-color: #f0e7e7;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
  box-sizing: border-box;
}

.header-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  color: #232a3b;
  font-size: 1.5rem;
  font-weight: 900;
}

.header-title {
  flex: 1;
  text-align: center;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1.5rem;
  font-style: oblique;
  color: #232a3b;
  font-weight: 700;
}

.header-right {
  display: flex;
  align-items: center;
  color: #232a3b;
  justify-content: flex-end;
  position: relative;
}

.menu-icon {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #232a3b;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: background 0.3s, color 0.3s;
}

.menu-icon:hover {
  background-color: hsl(221, 92%, 35%);
  color: #fffffffa;
  transform: translateY(-2px);
  transition: transform 0.3s ease-in-out;
}

/* Hero principal */
/* HERO: ocupa todo el ancho, fondo degradado azul y gris, sin imagen bloqueada */
.main-bg {
  width: 100vw;
  min-height: 600px;
  padding: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%), url("/images/gogi.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center top;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-left: calc(-50vw + 50%);
  margin-top: 0;
}

.main-content {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  max-width: 540px;
  margin: 0 auto;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  text-align: center;
}

/* Ajustar bloques para mayor ancho y separación */
.about-section,
.practice-section,
.contact-section {
  background: #fff;
  padding: 2rem 2rem 1.5rem 2rem;
  max-width: 1000px;
  margin: 2rem auto;
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.10);
}

.practice-section {
  background: #f3f6fa;
}

.contact-section {
  background: #f8f7f6;
}

/* Footer más ancho y centrado */
.footer {
  background: #f3f4f6;
  color: #374151;
  padding: 2rem 0 1rem 0;
  text-align: center;
  border-top: 1px solid #e5e7eb;
  margin-top: 3rem;
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -2px 8px rgba(31, 38, 135, 0.06);
  font-size: 0.9rem;
  font-style: italic;
}

.copy-rights {
  margin-bottom: 0.5rem;
  text-align: center;
}

.footer-disclaimer {
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Responsive footer base */
@media (max-width: 768px) {
  .footer {
    padding: 1.25rem 0 0.75rem 0;
  }

  .footer p,
  .footer-disclaimer {
    font-size: clamp(0.85rem, 2.4vw, 0.95rem);
    line-height: 1.5;
  }
}

/* Responsive mejorado */
@media (max-width: 1024px) {

  .about-section,
  .practice-section,
  .contact-section,
  .footer {
    max-width: 98vw;
    padding: 1.5rem 0.5rem;
  }

  .main-content {
    max-width: 98vw;
    padding: 2rem 0.5rem;
  }
}

@media (max-width: 768px) {

  /* Evitar desbordes horizontales por 100vw */
  .main-bg {
    min-height: 320px;
    width: 100%;
    margin-left: 0;
    background-position: center;
  }

  /* Mantener el header en una sola fila en móviles medianos */
  .header,
  .header-container {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .header-container {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0;
  }

  .header-title {
    font-size: clamp(1.2rem, 4.2vw, 1.5rem);
    min-width: 0;
  }

  .menu-icon {
    font-size: 2.1rem;
    min-width: 36px;
    min-height: 36px;
  }

  .main-bg {
    min-height: clamp(360px, 60vh, 520px);
  }

  .main-content {
    padding: 1.75rem 1rem;
    margin: 1.5rem auto 1rem auto;
    max-width: clamp(320px, 90vw, 520px);
  }

  .main-title {
    font-size: clamp(1.9rem, 4.6vw, 2.1rem);
  }

  .main-desc {
    font-size: clamp(1rem, 2.6vw, 1.08rem);
    line-height: 1.55;
  }

  .main-btn {
    font-size: clamp(0.95rem, 2.6vw, 1rem);
    padding: 0.8rem 1.1rem;
  }

  .about-section,
  .practice-section,
  .contact-section {
    padding: 1.25rem 0.5rem;
    margin-bottom: 1rem;
    max-width: 96vw;
  }

  .practice-list {
    gap: 0.9rem;
  }

  .footer-disclaimer,
  .footer p {
    font-size: clamp(0.9rem, 2.4vw, 0.98rem);
  }
}

@media (max-width: 480px) {
  .main-bg {
    min-height: 320px;
  }

  .main-content {
    max-width: 90vw;
    padding: 1.25rem;
  }

  .about-section,
  .practice-section,
  .contact-section,
  .footer {
    padding: 0.5rem 0.1rem;
    margin: 0.5rem auto;
  }
}

.main-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #232a3b;
  margin-bottom: 1rem;
}

.main-desc {
  font-size: 1.125rem;
  color: #374151;
  margin-bottom: 2rem;
}

.main-btn {
  background: hwb(231 22% 21% / 0.874);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(31, 38, 135, 0.18);
  transition: background 0.3s;
}

.main-btn:hover {
  background: #000000;
  color: #fff;
  transform: translateY(-2px);
  transition: transform 0.3s ease-in-out;
}

/* About Section */
.about-section {
  background: #fff;
  padding: 2rem 1rem 1.5rem 1rem;
  max-width: 900px;
  margin: 1rem auto 2rem auto;
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.10);
}

.about-title {
  padding: 20px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #232a3b;
  margin-bottom: 0.5rem;
}

.about-text {
  color: #374151;
  font-size: 1rem;
}

/* Practice Areas */
.practice-section {
  background: #f3f6fa;
  padding: 2rem 1rem 1.5rem 1rem;
  max-width: 900px;
  margin: 0 auto 2rem auto;
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.10);
}

.practice-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #232a3b;
  margin-bottom: 0.5rem;
}

.card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.10);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
}

.practice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.practice-item {
  background: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  color: #232a3b;
  font-weight: 500;
  font-size: 1rem;
  min-width: 120px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(31, 38, 135, 0.08);
}

.practice-item.card {
  flex: 1 1 220px;
  max-width: 320px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  margin: 0;
  box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.10);
}

.practice-item.card svg {
  margin-bottom: 1rem;
  color: #3b82f6;
}

.practice-item.card span {
  font-size: 1.1rem;
  font-weight: 600;
  color: #232a3b;
}

/* Contact Section */
.contact-section {
  background: #f8f7f6;
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.10);
  max-width: 900px;
  margin: 0 auto 2rem auto;
  padding: 2rem 1.5rem;
}

.contact-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #232a3b;
  margin-bottom: 1rem;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.form-label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: #232a3b;
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  margin-top: 0.25rem;
  background: #fff;
  color: #232a3b;
  box-shadow: 0 2px 8px rgba(31, 38, 135, 0.06);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-btn {
  background: hwb(231 16% 17% / 0.874);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(31, 38, 135, 0.10);
  margin-top: 1rem;
}

.contact-btn:hover {
  background: #000000;
  color: #fff;
  transform: translateY(-2px);
  transition: transform 0.3s ease-in-out;
}

/* Footer */
.footer {
  background: #f3f4f6;
  color: #374151;
  padding: 2rem 0 1rem 0;
  text-align: center;
  border-top: 1px solid #e5e7eb;
  margin-top: 3rem;
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -2px 8px rgba(31, 38, 135, 0.06);
  font-size: 0.95rem;
  font-style: italic;
}

/* Utilidades para layout y footer pegado al fondo */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.min-h-screen {
  min-height: 100vh;
}

.flex-grow {
  flex: 1 1 auto;
}

/* Footer en flujo normal: aparece al final del documento */
footer {
  position: static;
  left: auto;
  bottom: auto;
  width: 100%;
  margin-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  z-index: auto;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.footer-disclaimer {
  color: #6b7280;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  font-style: italic;
}

.copy-rights {
  margin-bottom: 0.5rem;
  text-align: center;
}

.footer p {
  margin-bottom: 0.5rem;
}

/* Links */
a {
  color: #000204;
  text-decoration: underline;
  font-weight: 600;
}

a:hover {
  color: #000000;
  transform: translateY(-2px);
  transition: transform 0.3s ease-in-out;
}

/* Dropdown menu custom styles */
.header {
  background-color: #e5e7eb !important;
  color: rgb(51, 51, 51) !important;
}

.header-title,
.header-logo,
.header-right,
.menu-icon {
  color: rgb(51, 51, 51) !important;
}

.menu-icon {
  background: #e5e7eb !important;
}

/* Header logo sizing (reduce 30%) */
.header-left .header-logo {
  height: 49px;
  max-height: 49px;
  width: auto;
}

.header-logo {
  display: inline-block;
  object-fit: contain;
}

/* Ajuste de color y fondo del dropdown para que coincida con el header */
.header .dropdown-menu {
  background: #f0e7e7 !important;
  /* coincide con el background del header */
}

.header .dropdown-menu a {
  color: #232a3b !important;
  /* mismo color de texto que el header */
}

/* Reglas generales del dropdown (sin !important) */
.dropdown-menu {
  background: #f0e7e7;
  /* fondo consistente con el header */
  border: 1px solid #e5e7eb;
}

.dropdown-menu a {
  color: #232a3b;
  /* color de texto unificado para todos los ítems */
}

.dropdown-menu a:hover {
  background: #d1d5db;
  /* hover suave en gris */
  color: #111827;
  transform: translateY(-2px);
  transition: transform 0.3s ease-in-out;
}

/* Utilidades y resets */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700;
  color: #232a3b;
  margin: 0 0 0.5rem 0;
}

p {
  margin: 0 0 1rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .header-container {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0;
  }

  .header-title {
    font-size: 1.35rem;
  }

  .menu-icon {
    font-size: 2.1rem;
    min-width: 36px;
    min-height: 36px;
  }

  .main-content {
    padding: 2rem 1rem;
    margin: 2rem auto 1rem auto;
  }

  .about-section,
  .practice-section,
  .contact-section {
    padding: 1.5rem 0.5rem;
    margin-bottom: 1rem;
  }

  .practice-list {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 17px;
    line-height: 1.6;
  }

  html,
  body {
    overflow-x: hidden;
  }

  /* Header respetando safe-area sin afectar centrado */
  .header {
    padding: 0.75rem;
    padding-top: calc(0.75rem + env(safe-area-inset-top));
    height: 56px;
    flex-direction: row;
  }

  .header-container {
    max-width: 100vw;
    padding: 0 0.5rem;
    gap: 0.35rem;
  }

  .header-left,
  .header-right {
    flex: 0 0 auto;
  }

  .header-left .header-logo {
    height: 42px;
    max-height: 42px;
  }

  .header-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(1.1rem, 4.5vw, 1.35rem);
  }

  .lang-selector-form {
    margin-left: 0.35rem;
  }

  .lang-selector {
    font-size: clamp(0.85rem, 3.4vw, 0.95rem);
    padding: 0.3rem 0.5rem;
    padding-right: 1.35rem;
    min-width: auto;
  }

  .menu-icon {
    font-size: clamp(1.2rem, 5.6vw, 1.6rem);
    padding: 0.35rem 0.6rem;
  }

  .dropdown-menu {
    width: min(88vw, 220px);
    max-height: 70vh;
    overflow-y: auto;
  }

  main {
    padding-top: calc(56px + env(safe-area-inset-top));
    padding-left: 0;
    padding-right: 0;
    max-width: 100vw;
  }

  /* Hero adaptado al viewport, contenido centrado */
  .main-bg {
    position: relative;
    width: 100%;
    margin-left: 0;
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 420px;
  }

  .main-content {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: auto;
    max-width: clamp(280px, 86vw, 520px);
    padding: 0.9rem 0.75rem;
    margin: 0.9rem auto;
    border-radius: 1rem;
  }

  .main-title {
    font-size: clamp(1.35rem, 4.8vw, 1.75rem);
    color: #232a3b;
    text-shadow: none;
    margin-bottom: 0.6rem;
  }

  .main-desc {
    font-size: clamp(0.9rem, 3.2vw, 1rem);
    line-height: 1.5;
    color: #374151;
    margin-bottom: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .main-btn {
    display: block;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    font-size: clamp(0.9rem, 3vw, 1rem);
    padding: 0.7rem 1rem;
  }

  /* Tarjetas de áreas en una columna a ancho completo */
  .practice-list {
    flex-direction: column;
    gap: 0.8rem;
    padding: 0 0.5rem;
  }

  .practice-item.card {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: auto;
    width: 100%;
  }

  .practice-item.card span {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }

  /* Bloques ajustados al viewport */
  .about-section,
  .practice-section,
  .contact-section,
  .footer {
    box-sizing: border-box;
    width: auto;
    max-width: clamp(300px, 88vw, 900px);
    margin: 0.7rem auto;
    padding: 0.85rem;
  }

  .about-section.card {
    max-width: clamp(300px, 88vw, 900px);
  }

  /* Footer compacto y legible en móviles */
  :root {
    --footer-height: 140px;
  }

  footer {
    padding: 0.6rem 0;
  }

  .copy-rights {
    max-width: calc(100vw - 2rem);
    padding: 0 0.75rem;
    margin: 0 auto;
  }

  .copy-rights p,
  .footer-disclaimer {
    font-size: clamp(0.88rem, 3.2vw, 0.98rem);
    line-height: 1.5;
    word-break: break-word;
    hyphens: auto;
  }

  /* Texto y formularios con más aire */
  .about-text {
    font-size: clamp(0.98rem, 3.2vw, 1.05rem);
    line-height: 1.5;
    margin-bottom: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .contact-form {
    gap: 0.7rem;
  }

  .footer-disclaimer {
    font-size: clamp(0.98rem, 3.2vw, 1.05rem);
    line-height: 1.6;
  }
}

/* Micro-breakpoints móviles para tamaños de celular más pequeños */
@media (max-width: 400px) {

  /* Header aún más compacto */
  .header-left .header-logo {
    height: 38px;
    max-height: 38px;
  }

  .header-title {
    font-size: clamp(1rem, 4.8vw, 1.2rem);
  }

  .menu-icon {
    font-size: clamp(1.15rem, 6vw, 1.45rem);
    padding: 0.3rem 0.5rem;
  }

  .lang-selector {
    font-size: clamp(0.82rem, 3.2vw, 0.9rem);
    padding-right: 1.1rem;
  }

  .dropdown-menu {
    width: min(92vw, 200px);
  }

  .main-content {
    max-width: calc(100vw - 1.5rem);
    padding: 1rem 0.75rem;
  }

  .main-title {
    font-size: clamp(1.55rem, 6.5vw, 1.9rem);
    margin-bottom: 0.6rem;
  }

  .main-desc {
    font-size: clamp(0.95rem, 3.8vw, 1.05rem);
    line-height: 1.5;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 360px) {

  /* Header ultracompacto */
  .header-left .header-logo {
    height: 36px;
    max-height: 36px;
  }

  .header-title {
    font-size: clamp(0.95rem, 5.2vw, 1.1rem);
  }

  .lang-selector {
    font-size: clamp(0.78rem, 3.4vw, 0.88rem);
    padding-right: 1rem;
  }

  .menu-icon {
    font-size: clamp(1.1rem, 6.5vw, 1.35rem);
  }

  .dropdown-menu {
    width: min(94vw, 190px);
  }

  .main-content {
    max-width: calc(100vw - 1rem);
    padding: 0.85rem 0.6rem;
  }

  .main-title {
    font-size: clamp(1.45rem, 6.8vw, 1.75rem);
    margin-bottom: 0.6rem;
  }

  .main-desc {
    font-size: clamp(0.9rem, 3.6vw, 1rem);
    line-height: 1.5;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.social-media-list {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.social-media-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #3b82f6;
  margin-bottom: 0;
}

.social-media-item {
  margin-bottom: 0.5rem;
}

.social-media-item svg:hover {
  color: #4c5393;
  transform: translateY(-2px);
  transition: transform 0.3s ease-in-out;
}

/* Login card styles */
.login-card {
  border: 1px solid #e5e7eb;
  /* gris claro para borde de card */
  border-radius: 1rem;
  /* esquinas redondeadas consistentes con el diseño */
  box-shadow: 0 8px 24px rgba(31, 38, 135, 0.15);
  /* sombra suave tipo card */
  background: #fff;
  /* fondo blanco para contraste */
}

/* Ajuste de espaciado interno para el contenido del card */
.login-card h2 {
  margin-top: 0.5rem;
}

.login-card form {
  margin-top: 0.5rem;
}

/* Responsive: login wrapper and card adjustments */
.login-wrapper {
  padding: 0 1rem;
  /* margen lateral para pantallas pequeñas */
}

@media (max-width: 768px) {
  .login-card {
    padding: 1.25rem 1rem;
    /* reducir padding en móviles */
    border-radius: 0.75rem;
    /* esquinas ligeramente menos redondeadas para móviles */
    box-shadow: 0 6px 18px rgba(31, 38, 135, 0.12);
  }

  .login-card .form_group {
    margin-bottom: 0.75rem !important;
    /* compactar separación */
  }

  .login-card .btn {
    width: 100%;
    /* botón full width en móviles */
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 1rem 0.75rem;
    /* aún más compacto */
    border-radius: 0.5rem;
  }

  .login-card h2 {
    font-size: 1.25rem;
    /* título más pequeño para ajuste */
  }
}

.dropdown-menu {
  display: none;
  /* oculto por defecto */
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 220px;
  z-index: 1100;
}

.dropdown-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: #f3f4f6;
  color: #111827;
  transform: translateY(-2px);
  transition: transform 0.3s ease-in-out;
}

@media (max-width: 480px) {
  .dropdown-menu {
    min-width: 180px;
  }
}

.lang-selector-form {
  margin-left: 1rem;
}

.lang-selector {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: inherit;
  /* hereda el fondo del contenedor (header) */
  border: 1px solid #d1d5db;
  color: inherit;
  /* hereda el color del contenedor */
  font-size: 0.95rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(31, 38, 135, 0.06);
  cursor: pointer;
}

.lang-selector:focus {
  outline: none;
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.lang-selector option {
  background-color: inherit;
  color: inherit;
}

.header .lang-selector option {
  background-color: #f0e7e7;
  color: #232a3b;
}

/* icono de flecha custom opcional */
.lang-selector {
  background-image: linear-gradient(45deg, transparent 50%, #9ca3af 50%),
    linear-gradient(135deg, #9ca3af 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  /* no forzar blanco */
  background-position: calc(100% - 18px) calc(50% - 3px),
    calc(100% - 13px) calc(50% - 3px),
    100% 0;
  background-size: 5px 5px, 5px 5px, 2.5rem 2.5rem;
  background-repeat: no-repeat;
  padding-right: 2rem;
  /* espacio para la flecha */
}

/* responsivo: reducir tamaño en móviles */
@media (max-width: 480px) {
  .lang-selector {
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
  }
}


/* About Us page — non-carousel responsive adjustments */
@media (max-width: 768px) {
  .about-section.card {
    max-width: clamp(320px, 92vw, 900px);
    padding: 1.25rem 0.75rem;
  }

  .about-section .about-title {
    font-size: clamp(1.2rem, 4.8vw, 1.5rem);
    margin-bottom: 0.5rem;
  }

  .about-section .main-desc,
  .about-section .about-text {
    font-size: clamp(0.98rem, 3.2vw, 1.06rem);
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .about-section.card {
    max-width: calc(100vw - 1rem);
    padding: 0.85rem 0.6rem;
  }

  .about-section .about-title {
    font-size: clamp(1.1rem, 5vw, 1.35rem);
  }

  .about-section .main-desc,
  .about-section .about-text {
    font-size: clamp(0.92rem, 3.6vw, 1.02rem);
  }
}

.main-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #232a3b;
  margin-bottom: 1rem;
}

.main-desc {
  font-size: 1.125rem;
  color: #374151;
  margin-bottom: 2rem;
}

.main-btn {
  background: hwb(231 22% 21% / 0.874);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(31, 38, 135, 0.18);
  transition: background 0.3s;
}

.main-btn:hover {
  background: #000000;
  color: #fff;
  transform: translateY(-2px);
  transition: transform 0.3s ease-in-out;
}

/* Footer */
.footer {
  background: #f3f4f6;
  color: #374151;
  padding: 2rem 0 1rem 0;
  text-align: center;
  border-top: 1px solid #e5e7eb;
  margin-top: 3rem;
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -2px 8px rgba(31, 38, 135, 0.06);
  font-size: 0.95rem;
  font-style: italic;
}

/* Utilidades para layout y footer pegado al fondo */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.min-h-screen {
  min-height: 100vh;
}

.flex-grow {
  flex: 1 1 auto;
}

/* Footer en flujo normal: aparece al final del documento */
footer {
  position: static;
  left: auto;
  bottom: auto;
  width: 100%;
  margin-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  z-index: auto;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.footer-disclaimer {
  color: #6b7280;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  font-style: italic;
}

.copy-rights {
  margin-bottom: 0.5rem;
  text-align: center;
}

.footer p {
  margin-bottom: 0.5rem;
}

/* Links */
a {
  color: #000204;
  text-decoration: underline;
  font-weight: 600;
}

a:hover {
  color: #000000;
  transform: translateY(-2px);
  transition: transform 0.3s ease-in-out;
}

/* Dropdown menu custom styles */
.header {
  background-color: #e5e7eb !important;
  color: rgb(51, 51, 51) !important;
}

.header-title,
.header-logo,
.header-right,
.menu-icon {
  color: rgb(51, 51, 51) !important;
}

.menu-icon {
  background: #e5e7eb !important;
}

/* Header logo sizing (reduce 30%) */
.header-left .header-logo {
  height: 49px;
  max-height: 49px;
  width: auto;
}

.header-logo {
  display: inline-block;
  object-fit: contain;
}

/* Ajuste de color y fondo del dropdown para que coincida con el header */
.header .dropdown-menu {
  background: #f0e7e7 !important;
  /* coincide con el background del header */
}

.header .dropdown-menu a {
  color: #232a3b !important;
  /* mismo color de texto que el header */
}

/* Reglas generales del dropdown (sin !important) */
.dropdown-menu {
  background: #f0e7e7;
  /* fondo consistente con el header */
  border: 1px solid #e5e7eb;
}

.dropdown-menu a {
  color: #232a3b;
  /* color de texto unificado para todos los ítems */
}

.dropdown-menu a:hover {
  background: #d1d5db;
  /* hover suave en gris */
  color: #111827;
  transform: translateY(-2px);
  transition: transform 0.3s ease-in-out;
}

/* Utilidades y resets */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700;
  color: #232a3b;
  margin: 0 0 0.5rem 0;
}

p {
  margin: 0 0 1rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .header-container {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0;
  }

  .header-title {
    font-size: 1.35rem;
  }

  .menu-icon {
    font-size: 2.1rem;
    min-width: 36px;
    min-height: 36px;
  }

  .main-content {
    padding: 2rem 1rem;
    margin: 2rem auto 1rem auto;
  }

  .about-section,
  .practice-section,
  .contact-section {
    padding: 1.5rem 0.5rem;
    margin-bottom: 1rem;
  }

  .practice-list {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 17px;
    line-height: 1.6;
  }

  html,
  body {
    overflow-x: hidden;
  }

  /* Header respetando safe-area sin afectar centrado */
  .header {
    padding: 0.75rem;
    padding-top: calc(0.75rem + env(safe-area-inset-top));
    height: 56px;
    flex-direction: row;
  }

  .header-container {
    max-width: 100vw;
    padding: 0 0.5rem;
    gap: 0.35rem;
  }

  .header-left,
  .header-right {
    flex: 0 0 auto;
  }

  .header-left .header-logo {
    height: 42px;
    max-height: 42px;
  }

  .header-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(1.1rem, 4.5vw, 1.35rem);
  }

  .lang-selector-form {
    margin-left: 0.35rem;
  }

  .lang-selector {
    font-size: clamp(0.85rem, 3.4vw, 0.95rem);
    padding: 0.3rem 0.5rem;
    padding-right: 1.35rem;
    min-width: auto;
  }

  .menu-icon {
    font-size: clamp(1.2rem, 5.6vw, 1.6rem);
    padding: 0.35rem 0.6rem;
  }

  .dropdown-menu {
    width: min(88vw, 220px);
    max-height: 70vh;
    overflow-y: auto;
  }

  main {
    padding-top: calc(56px + env(safe-area-inset-top));
    padding-left: 0;
    padding-right: 0;
    max-width: 100vw;
  }

  /* Hero adaptado al viewport, contenido centrado */
  .main-bg {
    position: relative;
    width: 100%;
    margin-left: 0;
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 420px;
  }

  .main-content {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: auto;
    max-width: clamp(280px, 86vw, 520px);
    padding: 0.9rem 0.75rem;
    margin: 0.9rem auto;
    border-radius: 1rem;
  }

  .main-title {
    font-size: clamp(1.35rem, 4.8vw, 1.75rem);
    color: #232a3b;
    text-shadow: none;
    margin-bottom: 0.6rem;
  }

  .main-desc {
    font-size: clamp(0.9rem, 3.2vw, 1rem);
    line-height: 1.5;
    color: #374151;
    margin-bottom: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .main-btn {
    display: block;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    font-size: clamp(0.9rem, 3vw, 1rem);
    padding: 0.7rem 1rem;
  }

  /* Tarjetas de áreas en una columna a ancho completo */
  .practice-list {
    flex-direction: column;
    gap: 0.8rem;
    padding: 0 0.5rem;
  }

  .practice-item.card {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: auto;
    width: 100%;
  }

  .practice-item.card span {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }

  /* Bloques ajustados al viewport */
  .about-section,
  .practice-section,
  .contact-section,
  .footer {
    box-sizing: border-box;
    width: auto;
    max-width: clamp(300px, 88vw, 900px);
    margin: 0.7rem auto;
    padding: 0.85rem;
  }

  .about-section.card {
    max-width: clamp(300px, 88vw, 900px);
  }

  /* Footer compacto y legible en móviles */
  :root {
    --footer-height: 140px;
  }

  footer {
    padding: 0.6rem 0;
  }

  .copy-rights {
    max-width: calc(100vw - 2rem);
    padding: 0 0.75rem;
    margin: 0 auto;
  }

  .copy-rights p,
  .footer-disclaimer {
    font-size: clamp(0.88rem, 3.2vw, 0.98rem);
    line-height: 1.5;
    word-break: break-word;
    hyphens: auto;
  }

  /* Texto y formularios con más aire */
  .about-text {
    font-size: clamp(0.98rem, 3.2vw, 1.05rem);
    line-height: 1.5;
    margin-bottom: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .contact-form {
    gap: 0.7rem;
  }

  .footer-disclaimer {
    font-size: clamp(0.98rem, 3.2vw, 1.05rem);
    line-height: 1.6;
  }
}

/* Micro-breakpoints móviles para tamaños de celular más pequeños */
@media (max-width: 400px) {

  /* Header aún más compacto */
  .header-left .header-logo {
    height: 38px;
    max-height: 38px;
  }

  .header-title {
    font-size: clamp(1rem, 4.8vw, 1.2rem);
  }

  .menu-icon {
    font-size: clamp(1.15rem, 6vw, 1.45rem);
    padding: 0.3rem 0.5rem;
  }

  .lang-selector {
    font-size: clamp(0.82rem, 3.2vw, 0.9rem);
    padding-right: 1.1rem;
  }

  .dropdown-menu {
    width: min(92vw, 200px);
  }

  .main-content {
    max-width: calc(100vw - 1.5rem);
    padding: 1rem 0.75rem;
  }

  .main-title {
    font-size: clamp(1.55rem, 6.5vw, 1.9rem);
    margin-bottom: 0.6rem;
  }

  .main-desc {
    font-size: clamp(0.95rem, 3.8vw, 1.05rem);
    line-height: 1.5;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 360px) {

  /* Header ultracompacto */
  .header-left .header-logo {
    height: 36px;
    max-height: 36px;
  }

  .header-title {
    font-size: clamp(0.95rem, 5.2vw, 1.1rem);
  }

  .lang-selector {
    font-size: clamp(0.78rem, 3.4vw, 0.88rem);
    padding-right: 1rem;
  }

  .menu-icon {
    font-size: clamp(1.1rem, 6.5vw, 1.35rem);
  }

  .dropdown-menu {
    width: min(94vw, 190px);
  }

  .main-content {
    max-width: calc(100vw - 1rem);
    padding: 0.85rem 0.6rem;
  }

  .main-title {
    font-size: clamp(1.45rem, 6.8vw, 1.75rem);
    margin-bottom: 0.6rem;
  }

  .main-desc {
    font-size: clamp(0.9rem, 3.6vw, 1rem);
    line-height: 1.5;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.social-media-list {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.social-media-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #3b82f6;
  margin-bottom: 0;
}

.social-media-item {
  margin-bottom: 0.5rem;
}

.social-media-item svg:hover {
  color: #4c5393;
  transform: translateY(-2px);
  transition: transform 0.3s ease-in-out;
}

/* Login card styles */
.login-card {
  border: 1px solid #e5e7eb;
  /* gris claro para borde de card */
  border-radius: 1rem;
  /* esquinas redondeadas consistentes con el diseño */
  box-shadow: 0 8px 24px rgba(31, 38, 135, 0.15);
  /* sombra suave tipo card */
  background: #fff;
  /* fondo blanco para contraste */
}

/* Ajuste de espaciado interno para el contenido del card */
.login-card h2 {
  margin-top: 0.5rem;
}

.login-card form {
  margin-top: 0.5rem;
}

/* Responsive: login wrapper and card adjustments */
.login-wrapper {
  padding: 0 1rem;
  /* margen lateral para pantallas pequeñas */
}

@media (max-width: 768px) {
  .login-card {
    padding: 1.25rem 1rem;
    /* reducir padding en móviles */
    border-radius: 0.75rem;
    /* esquinas ligeramente menos redondeadas para móviles */
    box-shadow: 0 6px 18px rgba(31, 38, 135, 0.12);
  }

  .login-card .form_group {
    margin-bottom: 0.75rem !important;
    /* compactar separación */
  }

  .login-card .btn {
    width: 100%;
    /* botón full width en móviles */
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 1rem 0.75rem;
    /* aún más compacto */
    border-radius: 0.5rem;
  }

  .login-card h2 {
    font-size: 1.25rem;
    /* título más pequeño para ajuste */
  }
}

.dropdown-menu {
  display: none;
  /* oculto por defecto */
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 220px;
  z-index: 1100;
}

.dropdown-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: #f3f4f6;
  color: #111827;
  transform: translateY(-2px);
  transition: transform 0.3s ease-in-out;
}

@media (max-width: 480px) {
  .dropdown-menu {
    min-width: 180px;
  }
}

.lang-selector-form {
  margin-left: 1rem;
}

.lang-selector {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: inherit;
  /* hereda el fondo del contenedor (header) */
  border: 1px solid #d1d5db;
  color: inherit;
  /* hereda el color del contenedor */
  font-size: 0.95rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(31, 38, 135, 0.06);
  cursor: pointer;
}

.lang-selector:focus {
  outline: none;
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.lang-selector option {
  background-color: inherit;
  color: inherit;
}

.header .lang-selector option {
  background-color: #f0e7e7;
  color: #232a3b;
}

/* icono de flecha custom opcional */
.lang-selector {
  background-image: linear-gradient(45deg, transparent 50%, #9ca3af 50%),
    linear-gradient(135deg, #9ca3af 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  /* no forzar blanco */
  background-position: calc(100% - 18px) calc(50% - 3px),
    calc(100% - 13px) calc(50% - 3px),
    100% 0;
  background-size: 5px 5px, 5px 5px, 2.5rem 2.5rem;
  background-repeat: no-repeat;
  padding-right: 2rem;
  /* espacio para la flecha */
}

/* responsivo: reducir tamaño en móviles */
@media (max-width: 480px) {
  .lang-selector {
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
  }
}


/* Override móvil: evitar recorte horizontal de la imagen del héroe */
@media (max-width: 480px) {
  .main-bg {
    background-position: center center;
    background-size: 100% auto;
  }
}

@media (max-width: 400px) {
  .main-bg {
    background-position: center center;
    background-size: 100% auto;
  }
}

@media (max-width: 360px) {
  .main-bg {
    background-position: center center;
    background-size: 100% auto;
  }
}

/* Móvil: gradiente en cover y foto en contain para evitar recorte y alargar */
@media (max-width: 480px) {
  .main-bg {
    background-size: cover, cover;
    background-position: center top, center top;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed;
    min-height: clamp(420px, 68vh, 560px);
  }
}

@media (max-width: 400px) {
  .main-bg {
    background-size: cover, cover;
    background-position: center top, center top;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed;
    min-height: clamp(420px, 68vh, 560px);
  }
}

@media (max-width: 360px) {
  .main-bg {
    background-size: cover, cover;
    background-position: center top, center top;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed;
    min-height: clamp(420px, 68vh, 560px);
  }
}