:root {
  --bg: #ffffff;
  --fg: #1d1d1d;
  --accent: #f5dd5f;
  --border: #1d1d1d;
  --header-h: 92px;
}

body.dark-mode {
  --bg: #1d1d1b;
  --fg: #e9e9e9;
  --border: #e9e9e9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Montserrat", Arial, sans-serif;
  padding-top: var(--header-h);
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

/* MENÚ */

.site-header {
  min-height: var(--header-h);
  background: var(--fg);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.logo {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
  display: inline-block;
  transition: transform 0.25s ease;
  transform-origin: left center;
}

.logo:hover {
  transform: scale(1.06);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.6rem);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav a:hover,
.footer-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.theme-toggle {
  width: 34px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  position: relative;
}

.theme-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
  transition: left 0.25s ease;
}

body.dark-mode .theme-toggle::after {
  left: 23px;
}

.burger {
  display: none;
  width: 34px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
}

.burger span {
  height: 2px;
  width: 100%;
  background: currentColor;
}

/* CONTACTO */

.contact-page {
  min-height: calc(100vh - var(--header-h));
  padding: 90px 5vw 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-intro h1 {
  margin: 0;
  font-size: clamp(52px, 6vw, 110px);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.contact-intro h1 span {
  display: inline-block;
}

.intro-text {
  max-width: 560px;
  margin-top: 90px;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.intro-text strong {
  display: block;
  margin-top: 28px;
  font-size: 18px;
}

.contact-form {
  width: 100%;
}

.field {
  margin-bottom: 42px;
}

input,
textarea {
  font: inherit;
}

.field input,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--border);
  padding: 0 0 14px;
  background: transparent;
  outline: none;
  color: var(--fg);
  font-size: 18px;
  letter-spacing: 0.02em;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8a8a8a;
  opacity: 1;
}

textarea {
  min-height: 46px;
  resize: vertical;
}

.form-group {
  margin-bottom: 46px;
}

.form-group p {
  margin: 0 0 22px;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.options label {
  cursor: pointer;
}

.options input {
  display: none;
}

.options span {
  color: #8a8a8a;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.options input:checked + span {
  color: var(--fg);
  font-weight: 700;
}

.form-bottom {
  margin-top: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.submit-btn{
  background:none;
  border:none;
  font-size:70px;
  line-height:1;
  cursor:pointer;
  color:var(--fg);
  padding:0;
  display:inline-flex;
  align-items:center;
  gap:0;
  transition:transform .3s ease, opacity .3s ease;
}

.submit-btn:hover{
  transform:translate(6px, -6px);
  opacity:.7;
}

.submit-btn span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  height:auto;
  border:none;
  font-size:70px;
  line-height:1;
}

.flecha-pequena{
  width:43px;
  display:inline-block;
  vertical-align:middle;

  transform: translateY(4px);
}

.privacy {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8a8a8a;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.privacy input {
  width: 24px;
  height: 24px;
  accent-color: var(--fg);
}

.toast {
  position: fixed;
  left: 5vw;
  bottom: 40px;
  display: none;
  align-items: center;
  gap: 14px;
  max-width: 420px;
  padding: 18px 22px;
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  z-index: 200;
}

.toast.show {
  display: flex;
}

.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast p {
  margin: 0;
  font-size: 16px;
}

.toast button {
  margin-left: auto;
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

/* FOOTER */

.site-footer {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 620px;
  background: var(--accent);
  color: #1d1d1b;
  padding: clamp(1.5rem, 3vw, 3rem);
  overflow: hidden;
}

.footer-bg-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.28;
  pointer-events: none;
}

.footer-cookies-button {
  position: absolute;
  top: clamp(1.5rem, 3vw, 3rem);
  right: clamp(1.5rem, 3vw, 3rem);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: transform 0.25s ease;
}

.footer-cookies-button:hover {
  transform: scale(1.12);
}

.footer-cookies-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-phrase {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(1.9rem, 3.2vw, 4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.footer-nav {
  position: absolute;
  z-index: 2;
  left: clamp(1.5rem, 3vw, 3rem);
  top: 29%;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.45rem;
  font-size: clamp(1rem, 1.35vw, 1.55rem);
  font-weight: 400;
  text-transform: uppercase;
}

.footer-contact {
  position: absolute;
  z-index: 2;
  left: clamp(1.5rem, 3vw, 3rem);
  right: clamp(1.5rem, 3vw, 3rem);
  top: 52%;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  font-style: normal;
  font-size: clamp(1.35rem, 2.1vw, 2.6rem);
  font-weight: 900;
}

.footer-legal {
  position: absolute;
  z-index: 2;
  left: clamp(1.5rem, 3vw, 3rem);
  right: clamp(1.5rem, 3vw, 3rem);
  top: 64%;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  font-size: clamp(0.9rem, 1.25vw, 1.45rem);
  font-weight: 400;
}

.footer-legal a {
  transition: font-weight 0.2s ease;
}

.footer-legal a:hover {
  font-weight: 900;
}

.footer-mega-brand {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: 100%;
  font-size: clamp(4.5rem, 12.7vw, 16rem);
  font-weight: 900;
  line-height: 0.72;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  white-space: nowrap;
}

.flecha-pequena {
  width: 43px;
  display: inline-block;
}

.privacy:hover span{
  color: #f0d229;
}

.privacy a:hover{
  color:#f0d229;
}

.submit-btn span {
  border: 6px solid var(--border);
}


/* RESPONSIVE */

@media (max-width: 900px) {
  .site-header {
    padding: 1.3rem 1.4rem;
  }

  .burger {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--fg);
    color: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 1.4rem 1.4rem;
    display: none;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a,
  .main-nav .theme-toggle {
    padding: 1rem 0;
    border-top: 1px solid currentColor;
  }

  .contact-page {
    grid-template-columns: 1fr;
    padding: 50px 6vw 80px;
  }

  .intro-text {
    margin-top: 50px;
  }

  .options {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-contact,
  .footer-legal {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 74px;
  }

  .site-header,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}