:root {
  --bg: #f7f3eb;
  --bg-soft: #fdfbf7;

  --text: #243126;
  --muted: #6f756c;

  --primary: #365c3b;
  --primary-hover: #28462c;

  --accent: #b58b47;

  --border: rgba(54, 92, 59, 0.12);

  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.06);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.1);

  --radius: 18px;

  --transition: 0.35s ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

::selection {
  background: rgba(181, 139, 71, 0.18);
}

body {
  background: linear-gradient(to bottom, #faf7f2, #f4efe6);

  color: var(--text);

  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;

  margin: 0;
  padding: 0;

  min-width: 960px;

  display: flex;
  flex-direction: column;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page-wrap {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.5px;
  margin-top: 0;
}

h1 {
  font-weight: 500;
}

h2 span {
  font-weight: 500;
}

p {
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
}

p a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(54, 92, 59, 0.3);
  transition: var(--transition);
}

p a:hover {
  color: var(--primary-hover);
  border-color: var(--primary-hover);
}

#header {
  width: 960px;

  margin: 0 auto;
  padding: 32px 0;

  text-align: center;
}

#header a.logo {
  display: block;
  width: 340px;

  margin: 0 auto;
}

#header a.logo img {
  display: block;
  width: 100%;
  border: 0;
}

#header ul {
  margin: 0;
  padding: 34px 0 0;
}

#header ul li {
  display: inline-block;
  list-style: none;
  padding: 0 18px;
}

#header ul li a {
  position: relative;

  color: var(--text);

  font-size: 13px;
  font-weight: 600;

  letter-spacing: 1px;

  text-decoration: none;

  transition: var(--transition);
}

#header ul li a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -8px;

  width: 0%;
  height: 2px;

  background: var(--primary);

  transition: var(--transition);
}

#header ul li a:hover,
#header ul li.selected a {
  color: var(--primary);
}

#header ul li a:hover::after,
#header ul li.selected a::after {
  width: 100%;
}

#body {
  flex: 1;
  text-align: center;

  padding-bottom: 40px;
}

#body > div {
  width: 960px;
  margin: 0 auto;
}

#body img {
  border-radius: var(--radius);

  box-shadow: var(--shadow-soft);

  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease;
}

#body img:hover {
  /* transform: scale(1.02); */
  box-shadow: var(--shadow);
}

#featured {
  position: relative;

  overflow: hidden;

  margin: 30px auto 70px;

  border-radius: 32px;

  box-shadow: var(--shadow);
}

#featured img {
  width: 100%;
  display: block;

  border-radius: 32px;

  filter: brightness(0.94);
}

#featured div {
  position: absolute;

  top: 50%;
  left: 70px;

  transform: translateY(-50%);

  max-width: 460px;

  text-align: left;
}

#featured div h2 {
  background: none;

  color: #183120;

  font-size: 74px;
  font-weight: 700;
  line-height: 0.95;

  margin-bottom: 18px;

  text-transform: none;

  box-shadow: none;
  padding: 0;
}

#featured div span {
  display: block;

  background: none;

  color: var(--accent);

  font-size: 64px;
  font-style: italic;
  font-weight: 500;

  padding: 0;
  margin: 0 0 24px;
}

#featured div p {
  font-size: 19px;
  color: #324336;

  margin-bottom: 32px;
}

a.more,
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--primary);

  color: #fff;

  border: none;
  border-radius: 999px;

  padding: 14px 30px;

  font-size: 14px;
  font-weight: 600;

  letter-spacing: 0.4px;

  text-decoration: none;

  cursor: pointer;

  transition: var(--transition);

  box-shadow: 0 8px 20px rgba(54, 92, 59, 0.18);
}

#body form #send {
  display: flex;

  align-items: center;
  justify-content: center;

  width: auto;
  min-width: 0;

  margin: 10px auto 0;

  padding: 14px 34px;

  background: var(--primary);

  color: #fff;

  border: none;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 600;

  letter-spacing: 0.4px;

  cursor: pointer;

  transition: var(--transition);

  box-shadow: 0 8px 20px rgba(54, 92, 59, 0.18);
}

a.more:hover,
.hero-btn:hover,
#body form #send:hover {
  background: var(--primary-hover);

  transform: translateY(-2px);

  box-shadow: 0 12px 24px rgba(54, 92, 59, 0.22);
}

#body > div .article {
  width: 900px;

  margin: 0 auto;
  padding: 30px 0;
  padding-bottom: 0;
}

#body > div .article h2 {
  font-size: 42px;
  font-weight: 700;

  margin-bottom: 24px;
}

#body > div .article h3 {
  color: var(--text);

  font-size: 22px;
  font-weight: 600;

  margin-bottom: 14px;
}

#body > div .article h4 {
  display: inline-block;

  background: rgba(54, 92, 59, 0.08);

  color: var(--primary);

  border-radius: 999px;

  font-size: 15px;
  font-weight: 600;

  padding: 10px 22px;

  margin-bottom: 30px;
}

#body > div .article P {
  margin-bottom: 20px;
}

#body > ul {
  width: 960px;

  margin: 0 auto;
  padding: 20px 0 0;

  overflow: hidden;
}

#body > ul li {
  width: 300px;

  float: left;

  margin: 0 10px 24px;

  list-style: none;
}

#body > ul li a {
  display: block;

  background: rgba(255, 255, 255, 0.78);

  border: 1px solid var(--border);

  border-radius: 24px;

  overflow: hidden;

  text-decoration: none;

  box-shadow: var(--shadow-soft);

  backdrop-filter: blur(12px);

  transition: var(--transition);
}

#body > ul li a:hover {
  transform: translateY(-6px);

  box-shadow: var(--shadow);
}

#body > ul li a img {
  width: 100%;
  display: block;

  border-radius: 0;
}

#body > ul li a span {
  display: block;

  color: var(--text);

  font-size: 26px;
  font-weight: 500;

  padding: 26px 20px 30px;
}

#body div ul {
  width: 940px;
  margin: 0 auto;

  padding: 20px 0 0 0;
  list-style: none;
}
#body div ul li {
  display: flex;

  overflow: hidden;

  margin-bottom: 24px;

  list-style: none;

  background: rgba(255, 255, 255, 0.72);

  border: 1px solid var(--border);

  border-radius: 26px;

  backdrop-filter: blur(10px);

  box-shadow: var(--shadow-soft);

  transition: var(--transition);
}

#body div ul li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

#body div ul li .figure {
  width: 40%;
  overflow: hidden;
}

#body div ul li .figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  border-radius: 0;
}

#body div ul li div {
  width: 60%;

  padding: 70px 50px;

  text-align: left;
}

#body div ul li div h3 {
  color: var(--text);

  font-size: 36px;
  font-weight: 700;

  margin-bottom: 20px;
}

#body div ul li div p {
  margin-bottom: 28px;
}

#body form {
  width: 620px;

  margin: 0 auto;
  padding-top: 20px;
}

#body form input,
#body form textarea {
  width: 100%;

  background: rgba(255, 255, 255, 0.75);

  border: 1px solid var(--border);

  border-radius: 16px;

  color: var(--text);

  font-family: "Montserrat", sans-serif;
  font-size: 15px;

  padding: 18px 20px;

  margin-bottom: 24px;

  text-align: left;

  transition: var(--transition);
}

#body form textarea {
  height: 180px;
  resize: none;
}

#body form input:focus,
#body form textarea:focus {
  outline: none;

  border-color: var(--primary);

  box-shadow: 0 0 0 4px rgba(54, 92, 59, 0.08);
}

.email-contact {
  text-align: center;

  margin: 0px auto 40px;

  padding: 0 20px;
  padding-top: 40px;
}

.email-contact p {
  color: var(--muted);

  font-size: 16px;

  letter-spacing: 0.3px;
}

.email-contact a {
  color: var(--primary);

  font-weight: 600;

  text-decoration: none;

  border-bottom: 1px solid rgba(54, 92, 59, 0.25);

  transition: var(--transition);
}

.email-contact a:hover {
  color: var(--primary-hover);

  border-color: var(--primary-hover);
}

#para-ultima {
  margin-bottom: 0 !important;
}

#footer {
  margin-top: 40px;

  background: linear-gradient(to right, #1f3522, #365c3b);

  padding: 60px 0 50px;
}

#footer div {
  width: 960px;

  margin: 0 auto;
}

#footer div p {
  color: rgba(255, 255, 255, 0.88);

  text-align: center;

  letter-spacing: 0.4px;
}

#footer div ul {
  display: flex;
  justify-content: center;

  gap: 16px;

  margin-top: 24px;

  padding: 0;
}

#footer div ul li {
  list-style: none;
}

#footer div ul li a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.08);

  transition: var(--transition);
}

#footer div ul li a:hover {
  background: rgba(255, 255, 255, 0.18);

  transform: translateY(-3px);
}

#footer.contact-footer {
  margin-top: 0;
}
#footer.prop-footer {
  margin-top: 0;
}

.whatsapp-float {
  position: fixed;

  right: 24px;
  bottom: 24px;

  width: 68px;
  height: 68px;

  background: #25d366;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 999;

  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);

  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);

  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
}

.whatsapp-float img {
  width: 60px;
  height: px;

  display: block;

  object-fit: contain;

  border-radius: 0 !important;

  box-shadow: none !important;

  filter: none !important;

  transform: none !important;

  margin: 0;
  padding: 0;
}

.whatsapp-float img:hover {
  transform: none;
  box-shadow: none;
}

.section-title {
  font-size: 52px;
  font-weight: 700;

  margin-bottom: 20px;
}

.section-subtitle {
  color: var(--muted);

  font-size: 18px;

  max-width: 680px;

  margin: 0 auto 60px;
}

#ultima-article {
  padding: 30px 0 0 0 !important;
}
#galeria-casas-ultima {
  margin-bottom: 20px !important;
}

#property-card-text {
  font-size: 16px !important;
  letter-spacing: 1px;
}

.input-error {
  border: 2px solid #d64545 !important;
}

.field-error {
  color: #d64545;
  font-size: 13px;
  margin-top: 6px;
  margin-bottom: 14px;
  line-height: 1.4;
}

.form-error-box {
  background: #fff1f1;
  border: 1px solid #d64545;
  color: #a12d2d;
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 14px;
}

.form-sending-box {
  background: #f4f4f4;
  border: 1px solid #cccccc;
  color: #333333;
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 14px;
}

#cortas {
  margin-top: 17.55px;
}

#contact-form {
  padding-bottom: 30px;
}

.section-featured {
  padding: 0.5rem 0.5rem 2rem 0.5rem;
}

.heading-featured-in {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 2.4rem;
  color: #888;
}

.logos {
  display: flex;
  justify-content: space-around;
  border-radius: none !important;
}

.logos img {
  height: 3rem;
  box-shadow: none !important;
  filter: brightness(0);
  opacity: 50%;
}

.container {
  /* 1140px */
  max-width: 900px;
  padding: 0 3rem;
  margin: 0 auto;
}

#bord-rad {
  border-radius: 0 !important;
}

.section-featured .logos a {
  transition: opacity 0.2s ease;
}

.section-featured .logos a:hover {
  opacity: 0.72;
}

body.services-page #body div ul li div h3 {
  font-weight: 500;
}

.expat-btn {
  background: transparent !important;
  padding: 0;
  margin-top: 16px;
  box-shadow: none !important;
}
.expat-btn img {
  display: block;
  max-width: 260px;
  width: 100%;
  height: auto;
}

#body img[alt="Migración legal y segura a México"] {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.gallery-email-contact {
  padding-top: 0;
}

#head-weight {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.45rem, 3vw, 1.5rem);
  font-weight: 500;
  color: #111;
  text-align: center;
  /* letter-spacing: 0.04em; */
  line-height: 1.25;
  /* margin: 46px auto 24px; */
}

#head-weight::after {
  content: "";
  display: block;
  width: 90px;
  height: 1px;
  background: #c29a3d;
  margin: 14px auto 0;
}
