/* ========================================
   Les Branques — Style Sheet
   ======================================== */

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

:root {
  --teal: #00A19A;
  --blue: #003A70;
  --blue-dark: #002A52;
  --teal-light: #D6F5F2;
  --blue-light: #D9E8F5;
  --text: #1a1a1a;
  --text-light: #555;
  --white: #ffffff;
  --bg: #ffffff;
  --section-alt: #f8fafb;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --transition: 0.3s ease;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hide non-active language spans */
[data-lang] {
  display: none;
}

[data-lang].active {
  display: inline;
}

/* For block-level language elements */
div[data-lang],
p[data-lang],
h1[data-lang],
h2[data-lang],
h3[data-lang],
li[data-lang],
span[data-lang] {
  display: none;
}

div[data-lang].active,
p[data-lang].active,
h1[data-lang].active,
h2[data-lang].active,
h3[data-lang].active,
li[data-lang].active,
span[data-lang].active {
  display: block;
}

span[data-lang].active {
  display: inline;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.navbar__logo-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.3px;
}

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

.navbar__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color var(--transition);
  letter-spacing: 0.01em;
}

.navbar__links a:hover {
  color: var(--blue);
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.lang-switcher button {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all var(--transition);
}

.lang-switcher button:hover {
  color: var(--blue);
}

.lang-switcher button.active {
  color: var(--white);
  background: var(--blue);
}

.lang-switcher .sep {
  color: #ccc;
  user-select: none;
}

/* 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(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--teal-light) 0%, var(--white) 40%, var(--blue-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero__content {
  max-width: 680px;
}

.hero__content h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}

.hero__content h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero__content p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero__cta {
  display: inline-block;
  padding: 14px 36px;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}

.hero__cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

/* GRID DEL HERO */
.hero__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
  gap: 48px;
  padding: 40px 0;
}

.hero__image {
  display: flex;
  align-items: stretch;
}

.hero__image img {
  width: auto;
  height: 100%;
  max-height: 340px;
  display: block;
}

/* ---------- Section Shared ---------- */
.section {
  padding: 100px 0;
}

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

.section__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 56px;
}

/* ---------- About ---------- */
.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about__text p {
  margin-bottom: 16px;
  color: var(--text-light);
}

.about__values {
  display: grid;
  gap: 20px;
}

.value-card {
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--teal);
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ---------- Practice Areas ---------- */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.practice-card {
  padding: 36px 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
  border-top: 3px solid transparent;
}

.practice-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-top-color: var(--teal);
}

.practice-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.practice-card:nth-child(1) .practice-card__icon { background: var(--teal-light); }
.practice-card:nth-child(2) .practice-card__icon { background: var(--blue-light); }
.practice-card:nth-child(3) .practice-card__icon { background: #fef4e6; }
.practice-card:nth-child(4) .practice-card__icon { background: #f0e8fa; }

.practice-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.practice-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.contact-map {
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
  background: var(--section-alt);
  border: 2px dashed #d0d5dd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.85rem;
  color: var(--text-light);
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__right {
  display: flex;
  gap: 24px;
}

.footer__right a {
  font-size: 0.85rem;
  color: var(--text-light);
  transition: color var(--transition);
}

.footer__right a:hover {
  color: var(--blue);
}


/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__content h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 770px) {
 .navbar__links {
    display: none; 
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transform: translateY(-110%);
    transition: transform var(--transition);
    z-index: 999;
  }

  .navbar__links.open {
    display: flex; /* Se muestra al abrir */
    transform: translateY(0);
  }


  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

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

  .hero__content h1 {
    font-size: 2rem;
  }

  .hero__content p {
    font-size: 1rem;
  }

  .hero__grid {
  grid-template-columns: 1fr;
  text-align: center;
}

  .hero__image {
    display: flex;
  justify-content: center;
  margin-bottom: 5px;
    
  }

  .hero__image img {
    width: 100%;
    max-width: 200px;
    height: auto;
   }

  .section {
    padding: 64px 0;
  }

  .section__title {
    font-size: 1.6rem;
  }

  .lang-switcher {
    font-size: 0.75rem;
  }

.footer__grid {
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

}

/* ---------- Pricing Table ---------- */
.pricing-table-wrapper {
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pricing-table th,
.pricing-table td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.pricing-table th:first-child,
.pricing-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text);
}

.pricing-table thead th {
  background: var(--blue-light);
  font-weight: 700;
  color: var(--blue-dark);
}

.price {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 4px;
  color: var(--blue);
}

.price .per {
  font-size: 0.85rem;
  color: var(--text-light);
}

.price-note {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 2px;
}

.pricing-table tbody tr:hover {
  background: #f9fbfc;
}

@media (max-width: 700px) {
  .pricing-table th,
  .pricing-table td {
    padding: 12px;
    font-size: 0.85rem;
  }
}

/* Desplegables de servicios */
.service-info summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.service-info summary::-webkit-details-marker {
  display: none;
}

.service-info summary::after {
  content: "▾";
  font-size: 0.7rem;
  margin-left: 6px;
  color: var(--text-light);
}

.service-info[open] summary::after {
  content: "▴";
}

.service-description {
  overflow: hidden;
  padding-top: 8px;
  animation: fadeIn 0.25s ease;
}

.service-description p {
  margin: 4px 0;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Evitar que la columna de servicios cambie de ancho */
.pricing-table td:first-child,
.pricing-table th:first-child {
  width: 320px; /* ajusta si quieres */
  max-width: 320px;
}

/* Banda lateral azul para filas 1–3 */
.pricing-table tbody tr:nth-child(-n+3) {
  border-left: 6px solid rgba(0, 102, 204, 0.4);
}

/* Banda lateral amarilla para filas 4–6 */
.pricing-table tbody tr:nth-child(n+4):nth-child(-n+6) {
  border-left: 6px solid rgba(255, 204, 0, 0.6);
}

/* Banda lateral roja para filas 7–9 */
.pricing-table tbody tr:nth-child(n+7) {
  border-left: 6px solid rgba(255, 102, 102, 0.6);
}
