/* =========================================================
   CONTACTO - CSS (ESTÁNDAR INDEX)
   ✅ Variables completas (sin vacíos)
   ✅ Sin duplicados / sin reglas corruptas
   ✅ Font Awesome (sin SVG sprites)
========================================================= */

/* ===================== VARIABLES ===================== */
:root {
  --color-text-body: #373636;
  --color-secondary: #3f5e73;
  --color-background-light: #f2e8cf;
  --color-accent: #7d8f84;
  --color-primary: #c47a5a;
  --color-text-light: #ffffff;

  --box-shadow-dark: 3px 3px 5px 1.8px rgba(0, 0, 0, 0.3),
    inset -5px -5px 5px rgba(0, 0, 0, 0.3),
    inset 5px 5px 5px rgba(203, 213, 225, 0.3);

  --border-radius: 0.25rem;
  --height-navbar: 6rem;

  --font-size-h1: 3rem;
  --font-size-h2: 2.6rem;
  --font-size-h3: 1.8rem;
  --font-size-h4: 1.5rem;
  --font-size-paragraph: 1.3rem;

  --dur-fast: 220ms;
  --dur-med: 320ms;
  --ease-snap: cubic-bezier(0.2, 0.9, 0.2, 1);
  --ease-soft: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

* {
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: var(--color-text-body);
  background: #fff;
}

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

ul {
  list-style: none;
}

main.container {
  overflow: hidden;
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: min-content;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus-visible {
  outline: 3px solid rgba(196, 122, 90, 0.55);
  outline-offset: 3px;
}

/* ===================== WRAPPERS ===================== */
.navbar__wrapper,
.banner__wrapper,
.form__wrapper,
.footer__wrapper {
  max-width: 75rem;
  width: 90%;
  margin: 0 auto;
  text-align: center;
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: relative;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background: var(--color-primary);
}

.navbar__wrapper {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: var(--height-navbar);
}

.logo-brand {
  width: 8rem;
  height: 100%;
  text-decoration: none;
  display: grid;
  justify-self: start;
  align-items: center;
  grid-column: 1/2;
  grid-row: 1/2;
}

.logo-brand__image {
  width: 100%;
  height: auto;
  cursor: pointer;
}

.menu-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: grid;
  justify-self: end;
  align-items: center;
  padding: 0.5rem;
  grid-column: 2/3;
  grid-row: 1/2;
}

.menu-icon {
  font-size: 1.8rem;
  color: var(--color-background-light);
}

.menu-icon--close {
  display: none;
}

/* Menú móvil */
.menu-list {
  position: absolute;
  top: var(--height-navbar);
  left: 0;
  z-index: 110;
  width: 100%;
  height: calc(100vh - var(--height-navbar));
  background-color: #c47a5a;
  border-top: 0.5px solid rgba(242, 232, 207, 0.5);
  overflow: hidden;

  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(5, 3.5rem);

  transform: translateX(-100%);
  transition: transform var(--dur-med) var(--ease-snap);
  will-change: transform;
}

.menu-list__item {
  border-bottom: 0.5px solid rgba(242, 232, 207, 0.5);
}

.menu-list__link {
  text-decoration: none;
  display: block;
  color: var(--color-background-light);
  font-size: var(--font-size-paragraph);
  font-weight: 300;
  height: 3.5rem;
  line-height: 3.5rem;
  text-align: center;
  padding-left: 7.5%;

  transition: background-color var(--dur-fast) var(--ease-soft);
}

.menu-list__link:hover {
  background-color: rgba(242, 232, 207, 0.15);
}

.show {
  transform: translateX(0);
}

/* ===================== BANNER ===================== */
.banner {
  position: relative;
  height: calc(100vh - var(--height-navbar));
  display: grid;
  place-items: center;
  color: var(--color-background-light);
}

.banner picture,
.banner .banner-image__container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.banner .banner__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner .banner__overlay {
  position: absolute;
  inset: 0;
  background-color: #000;
  opacity: 0.5;
  z-index: 2;
}

.banner .banner__wrapper {
  position: relative;
  z-index: 3;
}

.banner__text {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.banner__title--h2 {
  font-size: var(--font-size-h1);
  font-weight: 900;
}

/* ===================== CONTACT SECTION ===================== */
.contact {
  background: var(--color-background-light);
  display: grid;
}

.form__wrapper {
  margin: 5rem auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
  text-align: left;
}

.form__text {
  text-align: left;
}

.form__title--h2 {
  font-size: var(--font-size-h2);
  font-weight: 900;
  color: var(--color-text-body);
  margin-bottom: 1rem;
}

.form__paragraph {
  font-size: var(--font-size-paragraph);
  font-weight: 400;
  color: var(--color-text-body);
  max-width: 80ch;
}

.form__contact--items {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.form__contact--link {
  text-decoration: none;
  color: var(--color-text-body);

  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;

  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(55, 54, 54, 0.08);

  transition: transform var(--dur-fast) var(--ease-snap),
    box-shadow var(--dur-fast) var(--ease-soft);
}

.form__contact--link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
}

.form__contact--icons {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15), 0 2px 5px rgba(0, 0, 0, 0.10);
}

.form__contact--icons i {
  font-size: 1.2rem;
  color: var(--color-text-light);
}

.form__contact--text {
  font-weight: 400;
  color: var(--color-text-body);
}

.form__contact--text span {
  font-weight: 700;
}

/* Form card */
.form__box {
  width: 100%;
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(55, 54, 54, 0.08);
}

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

.form__label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-body);
}

.form__input,
.form__textarea {
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.55rem;
  border: 1px solid #ced4da;
  background: #ffffff;
  color: #000;
  font-size: 1rem;

  transition: border-color var(--dur-fast) var(--ease-soft),
    box-shadow var(--dur-fast) var(--ease-soft);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: rgba(196, 122, 90, 0.8);
  box-shadow: 0 0 0 4px rgba(196, 122, 90, 0.18);
}

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

.form__error {
  color: #b00020;
  font-size: 0.9rem;
  margin-top: 0.25rem;
  display: block;
}

.form__submit {
  margin-top: 0.25rem;
}

.form__button {
  width: 100%;
  height: 4rem;
  border: none;
  cursor: pointer;
  border-radius: 0.6rem;

  background: var(--color-primary);
  color: var(--color-text-light);

  font-size: 1.15rem;
  font-weight: 700;

  transition: transform var(--dur-fast) var(--ease-snap),
    box-shadow var(--dur-fast) var(--ease-soft),
    background-color var(--dur-fast) var(--ease-soft);
}

.form__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  background: #b66f51; /* leve ajuste hover */
}

.form__button--text {
  display: inline-block;
}

/* ===================== SCROLL TO TOP + WHATSAPP ===================== */
#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 25px;
  z-index: 999;
  border: none;
  outline: none;
  background-color: var(--color-accent);
  color: var(--color-text-light);
  cursor: pointer;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);

  transition: transform var(--dur-fast) var(--ease-snap),
    background-color var(--dur-fast) var(--ease-soft);
}

#scrollToTopBtn:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
}

#scrollToTopBtn i {
  font-size: 24px;
  color: var(--color-text-light);
}

.whatsapp__button {
  position: fixed;
  display: grid;
  width: 50px;
  height: 50px;
  background-color: #25d366;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  bottom: 25px;
  right: 25px;
  box-shadow: var(--box-shadow-dark);

  transition: transform var(--dur-fast) var(--ease-snap);
}

.whatsapp__button:hover {
  transform: translateY(-2px);
}

.whatsapp__button--float i {
  font-size: 24px;
  color: #ffffff;
}

/* ===================== FOOTER (estándar) ===================== */
.footer {
  background-color: #24262b;
  padding: 70px 0;
  display: grid;
  justify-items: center;
}

.footer__wrapper {
  width: 90%;
  max-width: 75rem;
  margin: 0 auto;
  text-align: left;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

.footer-col {
  width: 25%;
  padding: 0 15px;
}

.footer-col h4 {
  font-size: 18px;
  color: #ffffff;
  text-transform: capitalize;
  margin-bottom: 35px;
  font-weight: 500;
  position: relative;
  display: inline-block;
}

.footer-col h4::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  background-color: var(--color-primary);
  height: 2px;
  width: 50px;
}

.footer-col ul li:not(:last-child) {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 16px;
  text-transform: capitalize;
  text-decoration: none;
  font-weight: 300;
  color: #bbbbbb;
  display: block;

  transition: color var(--dur-fast) var(--ease-soft),
    transform var(--dur-fast) var(--ease-snap);
}

.footer-col ul li a:hover {
  color: #ffffff;
  transform: translateX(8px);
}

.footer-col .social-links a {
  display: inline-block;
  height: 40px;
  width: 40px;
  background-color: rgba(242, 232, 207, 0.12);
  margin: 0 10px 10px 0;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  color: #ffffff;

  transition: transform var(--dur-fast) var(--ease-snap),
    background-color var(--dur-fast) var(--ease-soft),
    color var(--dur-fast) var(--ease-soft);
}

.footer-col .social-links a:hover {
  color: #24262b;
  background-color: var(--color-background-light);
  transform: translateY(-2px);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 767px) {
  .footer-col {
    width: 50%;
    margin-bottom: 30px;
  }
}

@media (max-width: 574px) {
  .footer-col {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .banner__title--h2 {
    font-size: 4rem;
    font-weight: 900;
  }

  .form__wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }

  /* ✅ igual a tu patrón anterior: form a la izquierda, info a la derecha */
  .form__box {
    grid-column: 1/2;
    grid-row: 1/-1;
  }

  .form__content {
    grid-column: 2/3;
    grid-row: 1/-1;
  }

  /* Inputs 2 columnas en desktop */
  .form {
    grid-template-columns: 1fr 1fr;
  }

  .form__fullname,
  .form__message,
  .form__submit {
    grid-column: 1/-1;
  }
}

@media (min-width: 910px) {
  .menu-btn {
    display: none;
  }

  .navbar__wrapper {
    grid-template-columns: 1fr auto;
    grid-column-gap: 0.5rem;
  }

  .menu-list {
    display: grid;
    grid-template-columns: repeat(5, auto);
    grid-template-rows: var(--height-navbar);
    align-items: center;
    grid-column: 2/3;
    grid-row: 1/2;
    grid-column-gap: 3rem;

    position: static;
    width: 100%;
    height: var(--height-navbar) !important;
    overflow: visible !important;
    border-top: none;
    background: transparent;
    transition: none;
    transform: none;
  }

  .menu-list__item {
    border-bottom: none;
  }

  .menu-list__link {
    padding: 0;
    position: relative;
    color: #ffffff;
  }

  .menu-list__link:hover {
    background: none;
  }

  .menu-list__link::before,
  .menu-list__link::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-background-light);
    transform: scaleX(0);
    transition: transform var(--dur-med) var(--ease-snap);
  }

  .menu-list__link::before {
    top: 5px;
    transform-origin: left;
  }

  .menu-list__link::after {
    bottom: 5px;
    transform-origin: right;
  }

  .menu-list__link:hover::before,
  .menu-list__link:hover::after {
    transform: scaleX(1);
  }
}

@media (min-width: 1080px) {
  .banner__title--h2 {
    font-size: 5rem;
    font-weight: 900;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
