:root {
  --primary: #1a2a40;
  --accent: #1a2a40;
  --bg: #ffff;
  --bg-light: #f0f2f5;
  --card-bg: #faf9f8;
  --text: #2c3e50;
  --muted: #6b7280;
  --border: #dcdfe4;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* Reset / base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3, h4, .logo { font-family: "Playfair Display", serif; }

/* NAVEGACIÓN */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.96);
  padding: 0.8rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.logo-boutique {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  cursor: default;
  user-select: none;
}

.logo-boutique .main-name {
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--primary);
  letter-spacing: 0.15rem;
  text-transform: uppercase;
}

.logo-boutique .sub-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.65rem;
  color: var(--primary);
  letter-spacing: 0.55rem;
  text-transform: uppercase;
  margin-top: 4px;
  padding-left: 0.55rem;
}

.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--accent); }

/* Menú Toggle para Móvil (Oculto en Escritorio) */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001; /* Queda sobre el menú desplegado */
}

/* HERO */
.hero {
  padding: 12rem 5% 5rem;
  text-align: center;
  background: var(--bg-light);
}
.hero h1 { font-size: 3rem; color: var(--primary); margin-bottom: 1rem; }
.hero p { color: var(--muted); max-width: 720px; margin: 0 auto 1.8rem; font-size: 1.05rem; }
.cta-button { display: inline-block; padding: 0.9rem 1.8rem; background: var(--primary); color: #fff; border-radius: 6px; text-decoration: none; font-weight: 600; }

/* SECCIONES COMUNES */
section { padding: 6rem 5%; }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 3.5rem; color: var(--primary); }

/* SERVICIOS */
#servicios { max-width: 1200px; margin: 0 auto; }
.services-grid { display: flex; gap: 1.5rem; align-items: stretch; width: 100%; }
.group-abogacia { flex: 3 1 0%; display: flex; flex-direction: column; }
.group-gestoria { flex: 1 1 0%; min-width: 220px; display: flex; flex-direction: column; }
.group-header { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 20px; margin: 0 0 18px; color: var(--primary); border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.subcards { display: flex; gap: 16px; flex-wrap: wrap; flex: 1; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform .18s ease, box-shadow .18s;
  flex: 1 1 0%;
  min-width: 180px;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 10px 20px rgba(0,0,0,0.06); border-color: var(--accent); }
.card h4 { margin-bottom: 12px; color: var(--primary); font-size: 18px; }
.card ul { list-style: none; padding-left: 0; }
.card li { margin-bottom: 8px; position: relative; padding-left: 18px; font-size: 0.95rem; }
.card li::before { content: "•"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* SOBRE MÍ */
.about-wrap {
  background: var(--bg-light); 
  padding: 6rem 5%;
  width: 100%;
}
.about-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 310px 1fr;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  overflow: hidden;
}
.name-col {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 3rem;
  background: #ffffff;
  border-right: 1px solid var(--border);
}
.accent {
  width: 6px;
  height: 65px;
  background: var(--primary);
  border-radius: 4px;
}
.name-text {
  display: flex;
  flex-direction: column;
}
.name-main {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.1;
}
.name-sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
}
.about-bio {
  padding: 3.5rem;
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-bio p { margin-bottom: 15px; }
.about-bio p:last-child { margin-bottom: 0; }

/* CONTACTO BOUTIQUE */
#contacto { max-width: 1200px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-msg-col h2 { font-size: 2.2rem; color: var(--primary); margin-bottom: 1.5rem; text-align: left; }
.contact-msg-col p { font-size: 1.05rem; color: var(--muted); margin-bottom: 1.2rem; line-height: 1.7; }
.contact-msg-col .highlight { color: var(--primary); font-weight: 600; }

.contact-form-card {
  background: #ffff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
.form-group { margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form-card label {
  display: block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted); margin-bottom: 6px;
}
.req { color: #d9534f; margin-left: 2px; }
.contact-form-card input, .contact-form-card select, .contact-form-card textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 0.95rem; background: #fcfcfc; transition: all 0.2s;
}
.contact-form-card input:focus, .contact-form-card select:focus, .contact-form-card textarea:focus {
  outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(26, 42, 64, 0.04);
}
.consent-box { display: flex; gap: 10px; margin: 1.5rem 0; align-items: flex-start; }
.consent-box input { width: auto; margin-top: 4px; }
.consent-box label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.85rem; cursor: pointer; }
.link-legal { color: var(--primary); font-weight: 600; text-decoration: underline; cursor: pointer; }
.btn-submit {
  background: var(--primary); color: #fff; width: 100%; padding: 14px; border: none;
  border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.2s;
}
.btn-submit:hover { background: #142131; transform: translateY(-2px); }
.form-legend { margin-top: 1.2rem; font-size: 0.75rem; color: var(--muted); border-top: 1px solid #f0f0f0; padding-top: 1rem; }

/* FOOTER */
footer { background: var(--primary); color: #fff; padding: 4rem 5%; text-align: center; }
.footer-logo { font-weight: 800; font-size: 1.5rem; letter-spacing: 0.15rem; text-transform: uppercase; margin-bottom: 0.5rem; }
.legal-links { margin-top: 12px; display: flex; justify-content: center; gap: 20px; font-size: 0.95rem; }
.legal-links a { color: #f3e9d6; text-decoration: none; cursor: pointer; }

/* PÁGINA LEGAL */
.legal-page-content {
  padding: 10rem 5% 6rem;
  max-width: 1050px;
  margin: 0 auto;
  background: var(--bg);
}
.legal-header {
  text-align: center;
  margin-bottom: 4rem;
}
.legal-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.legal-header p.subtitle { font-size: 1.1rem; color: var(--text); margin-bottom: 1rem; }
.legal-header p.last-updated { font-size: 0.85rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.legal-section {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.legal-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--bg-light);
  padding-bottom: 0.5rem;
}
.legal-section h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--text); margin: 2rem 0 1rem; }
.legal-section p, .legal-section ul { margin-bottom: 1.2rem; color: var(--text); line-height: 1.7; }
.legal-section ul { padding-left: 2rem; }
.legal-section li { margin-bottom: 0.5rem; }
.legal-section a { color: var(--primary); font-weight: 600; text-decoration: underline; }

/* =========================================================================
   RESPONSIVE (MÓVILES Y TABLETS)
   ========================================================================= */

@media (max-width: 1050px) {
  .services-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-card { grid-template-columns: 1fr; }
  .name-col { padding: 2rem; border-right: none; border-bottom: 1px solid var(--border); }
  .about-bio { padding: 2rem; }
  .contact-msg-col h2 { text-align: center; }
  .legal-section { padding: 2rem; }
}

@media (max-width: 720px) {
  /* Textos más ajustados */
  .hero h1 { font-size: 2rem; }
  .logo-boutique .main-name { font-size: 1.4rem; }
  .legal-header h1 { font-size: 2.2rem; }
  .legal-section h2 { font-size: 1.6rem; }
  
  /* Menú Móvil Desplegable */
  .menu-toggle { display: block; }
  .nav-links {
    display: none; /* Oculto por defecto */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
  }
  .nav-links.active {
    display: flex; /* Muestra el menú al activar */
  }
  .nav-links a {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    width: 100%;
    text-align: center;
  }
  
  /* Colapsamos la grilla de las secciones */
  nav { padding: 0.6rem 4%; }
  .services-grid { flex-direction: column; gap: 20px; }
  .subcards { gap: 12px; }
  
  /* FORMULARIO: Apilar Email y Teléfono en 1 columna */
  .form-row { grid-template-columns: 1fr; }
}