/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --teal:             #1a5f6a;
  --teal-dark:        #1a4f58;
  --teal-hover:       #2a7a87;
  --white:            #ffffff;
  --gray-text:        #333333;
  --gray-light:       #f5f5f5;
  --gray-border:      #e0e0e0;
  --max-width:        1200px;
  --font-title:       'Raleway', sans-serif;
  --font-body:        'Open Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-text);
  line-height: 1.7;
}

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

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

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

.section-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  text-align: center;
  margin-bottom: 3rem;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--teal);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

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

.navbar__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--white);
}
.navbar__logo img {
  width: 86px;
}

.logo-dhoz {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo-abogados {
  font-family: var(--font-title);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 4px;
  margin-top: -2px;
}

.navbar__links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.navbar__links a {
  color: var(--white);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.navbar__links a:hover { opacity: 0.75; }

.navbar__lang { font-size: 0.8rem; }
.lang-active { font-weight: 700; border-bottom: 2px solid var(--white); }

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile */
@media (max-width: 768px) {
  .navbar__burger { display: flex; }

  .navbar__links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--teal);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  .navbar__links.is-open { display: flex; }

  .navbar__links li {
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .navbar__links a { font-size: 1rem; }
}

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  background-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 0h40v40H0z' fill='none'/%3E%3Cpath d='M0 0h40M0 10h40M0 20h40M0 30h40M0 40h40M0 0v40M10 0v40M20 0v40M30 0v40M40 0v40' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  display: flex;
  flex-direction: column;
  padding-top: 70px; /* altura navbar */
}

.hero__content {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 5rem 2rem;
}

.hero__text {
  max-width: 780px;
}

.hero__title {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 2rem;
}

.hero__body {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero__body strong { color: var(--white); }

.hero__cta {
  display: inline-block;
  background: var(--white);
  color: var(--teal);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border: 2px solid var(--white);
  transition: background 0.2s, color 0.2s;
}

.hero__cta:hover {
  background: transparent;
  color: var(--white);
}

/* Badges strip */
.hero__badges {
  background: rgba(0,0,0,0.2);
  padding: 1.5rem 0;
}

.hero__badges-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
}

.badge__icon {
  font-size: 1.4rem;
  opacity: 0.8;
}

.badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.badge__label {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.badge__sub {
  font-size: 0.6rem;
  letter-spacing: 0.5px;
  opacity: 0.7;
  text-transform: uppercase;
}

.badge__main {
  font-size: 0.72rem;
  font-weight: 600;
}

.badge__year {
  font-size: 0.65rem;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .hero__content { padding: 3rem 2rem; }
  .hero__badges-inner { gap: 1rem; justify-content: flex-start; }
}

/* =========================================
   SOLUCIONES
   ========================================= */
.soluciones {
  padding: 5rem 0;
  background: var(--white);
}

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

.card {
  border: 1px solid var(--gray-border);
  padding: 2rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(26, 95, 106, 0.12);
  border-color: var(--teal);
}

.card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card__title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.card__body {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--gray-text);
  flex: 1;
  margin-bottom: 1.5rem;
}

.card__link {
  color: var(--teal);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  transition: color 0.2s;
  align-self: flex-start;
}

.card__link:hover { color: var(--teal-hover); }
.card__link:focus { outline: 2px solid var(--teal); outline-offset: 2px; }

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

@media (max-width: 768px) {
  .soluciones__grid { grid-template-columns: 1fr; }
  .soluciones { padding: 3rem 0; }
}

/* =========================================
   MEMBRESÍAS
   ========================================= */
.membresias {
  padding: 5rem 0;
  background: var(--gray-light);
}

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

.membresia-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 4px;
  border-left: 4px solid var(--teal);
}

.membresia-card__title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.membresia-card__body {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--gray-text);
  margin-bottom: 0.8rem;
}

.membresia-card__link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.membresia-card__link:hover { color: var(--teal-hover); }

@media (max-width: 768px) {
  .membresias__grid { grid-template-columns: 1fr; }
  .membresias { padding: 3rem 0; }
}

/* =========================================
   CONTACTO
   ========================================= */
.contacto {
  padding: 5rem 0;
  background: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 0h40v40H0z' fill='none'/%3E%3Cpath d='M0 0h40M0 10h40M0 20h40M0 30h40M0 40h40M0 0v40M10 0v40M20 0v40M30 0v40M40 0v40' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
}

.contacto__titulo { color: var(--white); }

.contacto__intro {
  color: rgba(255,255,255,0.85);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
}

.contacto__form {
  max-width: 680px;
  margin: 0 auto;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}

.form-group label {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}

.form-group--check {
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.form-group--check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0;
}

.form-group--check label {
  margin-bottom: 0;
  cursor: pointer;
}

.form-group--check input[type="checkbox"]:focus {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.form-submit {
  display: block;
  width: 100%;
  background: var(--white);
  color: var(--teal);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 1rem;
  border: 2px solid var(--white);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.form-submit:hover {
  background: transparent;
  color: var(--white);
}

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .contacto { padding: 3rem 0; }
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.8);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding: 4rem 2rem 3rem;
}

.footer__heading {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(255,255,255,0.2);
}

.footer__address {
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.9;
}

.footer__address a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer__address a:hover { color: var(--white); }

.footer__links {
  list-style: none;
  margin-bottom: 1.5rem;
}

.footer__links li { margin-bottom: 0.5rem; }

.footer__links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--white); }

.footer__social a {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-style: italic;
  transition: color 0.2s;
}

.footer__social a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.2rem 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.footer__legal a:hover { color: var(--white); }

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 2rem 2rem;
  }

  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}
