/* =============================================
   ESTUDIO JURÍDICO - Global Styles
   ============================================= */

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

:root {
  --color-primary: #1a2744;
  --color-secondary: #c9a84c;
  --color-dark: #0f1a30;
  --color-text: #2c2c2c;
  --color-text-light: #5a5a5a;
  --color-bg: #ffffff;
  --color-bg-soft: #f7f6f3;
  --color-bg-section: #f0ede6;
  --color-border: #d8d3c8;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.25;
  font-weight: 400;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-secondary);
  font-weight: 600;
  display: block;
  margin-bottom: 0.6rem;
}

/* =============================================
   LAYOUT
   ============================================= */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 80px 0;
}

.section--soft {
  background: var(--color-bg-soft);
}

.section--dark {
  background: var(--color-primary);
}

.section--accent {
  background: var(--color-bg-section);
}

/* =============================================
   NAVIGATION
   ============================================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar__logo img {
  width: 42px;
  height: 42px;
}

.navbar__brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-primary);
  line-height: 1.2;
}

.navbar__brand span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.navbar__nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navbar__nav a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.navbar__nav a:hover,
.navbar__nav a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-secondary);
}

.navbar__cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius);
  border-bottom: none !important;
  transition: background 0.2s !important;
}

.navbar__cta:hover {
  background: var(--color-secondary) !important;
  color: #fff !important;
}

/* Mobile menu */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
}

/* =============================================
   HERO
   ============================================= */

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?w=1600&q=80');
  background-size: cover;
  background-position: center top;
  filter: brightness(0.35);
}

.hero__inner {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 680px;
}

.hero__inner .section-label {
  color: var(--color-secondary);
}

.hero__inner h1 {
  color: #fff;
  margin-bottom: 1.2rem;
}

.hero__inner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn--primary {
  background: var(--color-secondary);
  color: #fff;
}

.btn--primary:hover {
  background: #b8933a;
  box-shadow: 0 2px 10px rgba(201,168,76,0.3);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
}

.btn--dark {
  background: var(--color-primary);
  color: #fff;
}

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

/* =============================================
   STATS BAR
   ============================================= */

.stats {
  background: var(--color-primary);
  padding: 36px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stats__item h3 {
  font-size: 2rem;
  color: var(--color-secondary);
  margin-bottom: 0.25rem;
}

.stats__item p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =============================================
   SERVICES CARDS
   ============================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.2rem;
  color: var(--color-secondary);
}

.service-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.service-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* =============================================
   ABOUT STRIP
   ============================================= */

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-split__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-split__img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-split__text .section-label {
  margin-bottom: 0.75rem;
}

.about-split__text h2 {
  margin-bottom: 1.2rem;
}

.about-split__text ul {
  margin: 1.5rem 0;
}

.about-split__text ul li {
  font-size: 0.92rem;
  color: var(--color-text-light);
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.about-split__text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--color-secondary);
  border-radius: 50%;
}

/* =============================================
   TEAM
   ============================================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.team-card:hover {
  box-shadow: var(--shadow-md);
}

.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
}

.team-card__info {
  padding: 1.5rem;
}

.team-card__info h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.team-card__info span {
  font-size: 0.8rem;
  color: var(--color-secondary);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.team-card__info p {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* =============================================
   TESTIMONIALS
   ============================================= */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.testimonial-card blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.testimonial-card cite {
  font-size: 0.82rem;
  font-style: normal;
  color: var(--color-secondary);
  font-weight: 600;
  display: block;
}

.testimonial-card cite span {
  display: block;
  color: var(--color-text-light);
  font-weight: 400;
  margin-top: 0.15rem;
}

/* =============================================
   CTA BANNER
   ============================================= */

.cta-banner {
  background: var(--color-primary);
  padding: 64px 0;
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.7);
  max-width: 540px;
  margin: 0 auto 2rem;
}

/* =============================================
   CONTACT FORM
   ============================================= */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-info__item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-secondary);
}

.contact-info__item p {
  margin: 0;
  font-size: 0.92rem;
}

.contact-info__item strong {
  display: block;
  color: var(--color-primary);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.form {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.form__group {
  margin-bottom: 1.4rem;
}

.form__group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.45rem;
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.2s;
  outline: none;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--color-primary);
}

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

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

/* =============================================
   PAGE HEADER
   ============================================= */

.page-header {
  background: var(--color-primary);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40%;
  background: url('https://images.unsplash.com/photo-1568605117036-5fe5e7bab0b7?w=800&q=70') center/cover;
  opacity: 0.12;
}

.page-header h1 {
  color: #fff;
}

.page-header p {
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin-top: 0.6rem;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.breadcrumb a:hover { color: #fff; }

.breadcrumb span { color: var(--color-secondary); }

/* =============================================
   MAP PLACEHOLDER
   ============================================= */

.map-placeholder {
  width: 100%;
  height: 380px;
  background: var(--color-bg-section);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 3rem;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =============================================
   PRIVACY PAGE
   ============================================= */

.prose {
  max-width: 800px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.prose h2:first-child { margin-top: 0; }

.prose p, .prose li {
  font-size: 0.93rem;
  color: var(--color-text-light);
  line-height: 1.75;
}

.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose ul li {
  margin-bottom: 0.4rem;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand img {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer__brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
  line-height: 1.6;
}

.footer__col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.footer__col ul li {
  margin-bottom: 0.5rem;
}

.footer__col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer__col ul li a:hover {
  color: var(--color-secondary);
}

.footer__col p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.5rem;
}

.footer__bottom {
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer__bottom a {
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}

.footer__bottom a:hover {
  color: var(--color-secondary);
}

/* =============================================
   COOKIE BANNER
   ============================================= */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-dark);
  border-top: 3px solid var(--color-secondary);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
  transform: translateY(0);
  transition: transform 0.3s;
}

.cookie-banner.hidden {
  transform: translateY(110%);
}

.cookie-banner__text {
  flex: 1;
  min-width: 260px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}

.cookie-banner__text a {
  color: var(--color-secondary);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.55rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.cookie-btn--accept {
  background: var(--color-secondary);
  color: #fff;
}

.cookie-btn--accept:hover {
  background: #b8933a;
}

.cookie-btn--reject {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.25);
}

.cookie-btn--reject:hover {
  background: rgba(255,255,255,0.05);
}

/* =============================================
   SERVICES PAGE DETAILED
   ============================================= */

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--color-border);
}

.service-detail:last-child { border-bottom: none; }

.service-detail--reverse { direction: rtl; }
.service-detail--reverse > * { direction: ltr; }

.service-detail__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-detail__img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.service-detail__content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-detail__content ul {
  margin-top: 1rem;
}

.service-detail__content ul li {
  font-size: 0.88rem;
  color: var(--color-text-light);
  padding: 0.35rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.service-detail__content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--color-secondary);
  border-radius: 50%;
}

/* =============================================
   ABOUT PAGE
   ============================================= */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.value-card {
  padding: 2rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.value-card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.value-card p {
  font-size: 0.88rem;
  margin: 0;
}

.value-card__line {
  width: 36px;
  height: 3px;
  background: var(--color-secondary);
  margin-bottom: 1.2rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .services-grid,
  .testimonials-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

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

@media (max-width: 768px) {
  .navbar__nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    gap: 1.2rem;
  }

  .navbar__nav.open { display: flex; }

  .navbar__toggle { display: flex; }

  .about-split,
  .contact-layout,
  .service-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-detail--reverse { direction: ltr; }

  .services-grid,
  .team-grid,
  .testimonials-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .hero { min-height: 420px; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

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

  .form__row {
    grid-template-columns: 1fr;
  }

  .hero__actions { flex-direction: column; }

  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
