/* ============================================
   ADOLFO CONTRERAS & ING. MIGUEL A. CAMPUZANO Z.
   DISEÑO LEGAL PROFESIONAL & RESPONSIVE MÓVIL
   ============================================ */

:root {
  --navy-dark: #0d1b2a;
  --navy: #1b263b;
  --navy-light: #2d3e54;
  --gold: #c5a059;
  --gold-dark: #a9843e;
  --gold-light: #dfc282;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --cream: #faf8f5;
  --text-primary: #0d1b2a;
  --text-secondary: #415a77;
  --text-muted: #778da9;
  --border: #e0e1dd;
  
  --shadow-sm: 0 1px 3px rgba(13, 27, 42, 0.08);
  --shadow: 0 4px 12px rgba(13, 27, 42, 0.1);
  --shadow-lg: 0 12px 24px rgba(13, 27, 42, 0.15);
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--off-white);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   Navegación
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

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

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo__seal {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--navy-dark);
  font-size: 18px;
  flex-shrink: 0;
}

.logo__seal--small {
  width: 38px;
  height: 38px;
  font-size: 15px;
}

.logo__name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.2;
}

.nav-menu {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav-menu__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-menu__link:hover,
.nav-menu__link--active {
  color: var(--navy-dark);
}

.nav-menu__link--cta {
  background: var(--gold);
  color: var(--navy-dark);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
}

.lang-toggle {
  background: var(--gold);
  border: none;
  color: var(--navy-dark);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--navy-dark);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* ============================================
   Heroes
   ============================================ */

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 7rem 1.5rem 4rem;
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  position: relative;
}

.page-hero {
  padding: 7rem 1.5rem 3rem;
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  text-align: center;
}

.page-hero--small {
  padding: 6rem 1.5rem 2.5rem;
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   Secciones y Títulos
   ============================================ */

.section {
  padding: 4.5rem 1.5rem;
}

.section--alt {
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header__label {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header__title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  color: var(--navy-dark);
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.25;
}

.section-header__text {
  max-width: 700px;
  margin: 0.75rem auto 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ============================================
   Cuadrículas y Tarjetas Universales
   ============================================ */

.services-grid,
.practice-grid,
.profile-side-by-side {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.service-card,
.practice-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover,
.practice-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.service-card__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.service-card__icon {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(197, 160, 89, 0.1);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card__title,
.practice-card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 0;
}

.service-card__desc,
.practice-card__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0.5rem 0 1.25rem 0;
  text-align: justify;
}

.service-list,
.practice-card__list {
  list-style: none;
  margin: 1rem 0;
}

.service-list li,
.practice-card__list li {
  padding: 0.6rem 0 0.6rem 1.4rem;
  color: var(--text-primary);
  position: relative;
  border-bottom: 1px solid var(--cream);
  font-size: 0.92rem;
}

.service-list li::before,
.practice-card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}

.service-refs {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cream);
}

.service-refs__title {
  font-weight: 700;
  color: var(--navy-dark);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.service-ref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  color: var(--gold-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.service-ref:hover {
  color: var(--navy-dark);
}

.practice-card__link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

.practice-card__link:hover {
  color: var(--navy-dark);
}

/* ============================================
   Proceso / Features Grid
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature {
  padding: 1.5rem;
  background: var(--cream);
  border-radius: 8px;
  border: 1px solid transparent;
}

.feature:hover {
  background: var(--white);
  border-color: var(--gold);
}

.feature__icon {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.feature__title {
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.feature__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ============================================
   Formulario y Contacto
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--navy-dark);
  margin-bottom: 1.5rem;
}

.contact-info__item {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-info__label {
  color: var(--gold-dark);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.contact-info__value {
  color: var(--navy-dark);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  color: var(--navy-dark);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--off-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.disclaimer-box {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.disclaimer-box__title {
  font-weight: 700;
  color: var(--navy-dark);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.disclaimer-box p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   Botones y CTA
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

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

.btn--large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.cta-section {
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 4.5rem 1.5rem;
  text-align: center;
}

.cta-box__title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  color: var(--white);
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.cta-box__text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.75rem;
}

/* ============================================
   Footer y WhatsApp
   ============================================ */

.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3.5rem 1.5rem 1.5rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1200px;
  margin: 0 auto;
}

.footer__col-title {
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer__col a,
.footer__col span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin: 0.4rem 0;
  font-size: 0.9rem;
}

.footer__col a:hover {
  color: var(--gold);
}

.footer__bottom {
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  background-color: #25d366;
  color: white;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  text-decoration: none;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 0.5rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

/* =========================================================
   MEDIA QUERIES MÓVILES (OPTIMIZACIÓN CELULARES Y TABLETS)
   ========================================================= */

@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .nav-menu.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1.25rem 1.5rem;
    z-index: 999;
  }
  .nav-menu.is-open .nav-menu__link--cta {
    width: 100%;
    text-align: center;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  .section {
    padding: 3rem 1rem;
  }
  .page-hero,
  .page-hero--small {
    padding: 5.5rem 1rem 2.25rem;
  }
  .page-hero__title {
    font-size: 1.85rem;
  }
  .section-header__title {
    font-size: 1.65rem;
  }
  .services-grid,
  .practice-grid,
  .profile-side-by-side,
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-form {
    padding: 1.25rem;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .btn,
  .btn--large {
    width: 100%;
  }
  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 48px;
    height: 48px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}