@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap");

:root {
  --wine: #930526;
  --wine-dark: #76031e;
  --blue: #123879;
  --text: #232326;
  --muted: #5d5d66;
  --light: #f7f7f8;
  --border: #e5e0e2;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(40, 35, 38, 0.08);
  --radius: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   HEADER
========================= */

.site-header {
  width: 100%;
  min-height: 92px;
  padding: 18px 60px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 28px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.logo-main {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
}

.logo-main span {
  color: var(--wine);
}

.logo-sub {
  margin-top: 5px;
  font-size: 13px;
  color: #333;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

.main-nav a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: #222;
  padding: 10px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--wine);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 38px;
}

.header-btn {
  padding: 17px 32px;
  border: 1px solid var(--wine);
  color: var(--wine);
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  transition: 0.25s ease;
}

.header-btn:hover {
  background: var(--wine);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text);
  display: block;
  margin: 6px auto;
  transition: 0.25s ease;
}

/* =========================
   CONTACTO
========================= */

.contact-page {
  min-height: calc(100vh - 92px);
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.contact-page::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 58%;
  height: 72%;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.50) 42%,
      rgba(255, 255, 255, 0.88) 100%
    ),
    linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.10) 0%,
      rgba(255, 255, 255, 0.22) 30%,
      rgba(255, 255, 255, 0.58) 100%
    ),
    url("../assets/img/contact-bg.webp");
  background-size: cover;
  background-position: left bottom;
  background-repeat: no-repeat;
  opacity: 0.92;
  z-index: 0;
  pointer-events: none;
}

.contact-layout {
  width: 100%;
  max-width: 1780px;
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: 34px 76px 58px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 90px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.contact-info {
  max-width: 850px;
  position: relative;
}

.contact-info::before {
  content: "";
  position: absolute;
  top: 92px;
  left: -32px;
  width: 820px;
  height: 300px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.52) 56%,
    rgba(255, 255, 255, 0.18) 100%
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 28px;
  z-index: 0;
  pointer-events: none;
}

.contact-info > * {
  position: relative;
  z-index: 1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--wine);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 42px;
  transition: 0.25s ease;
}

.back-link:hover {
  transform: translateX(-4px);
}

.contact-info h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(58px, 5.6vw, 92px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -2.4px;
  margin-bottom: 36px;
}

.contact-info h1 span {
  color: var(--wine);
}

.contact-intro {
  max-width: 670px;
  font-size: 22px;
  line-height: 1.65;
  color: #42424a;
  margin-bottom: 78px;
}

.contact-benefits {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.benefit-item {
  text-align: center;
  padding: 0 36px;
  position: relative;
}

.benefit-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 0;
  width: 1px;
  height: 172px;
  background: #dedee4;
}

.benefit-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 22px;
  border: 1.5px solid rgba(147, 5, 38, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wine);
  font-size: 31px;
}

.benefit-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
}

.benefit-item p {
  font-size: 15px;
  line-height: 1.7;
  color: #33333b;
}

.contact-card {
  width: 100%;
  max-width: 760px;
  justify-self: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(232, 232, 236, 0.85);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(35, 35, 38, 0.11);
  padding: 52px 58px 36px;
}

.form-group {
  margin-bottom: 29px;
}

.form-group label {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 11px;
  color: #25252b;
}

.form-group label span {
  color: var(--wine);
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #dadce2;
  border-radius: 7px;
  background: #ffffff;
  color: #24242a;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  outline: none;
  transition: 0.25s ease;
}

.form-group input {
  height: 50px;
  padding: 0 18px;
}

.form-group textarea {
  height: 104px;
  padding: 15px 18px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #8d8f98;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(147, 5, 38, 0.72);
  box-shadow: 0 0 0 4px rgba(147, 5, 38, 0.08);
}

.submit-btn {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, #af001e 0%, #930526 100%);
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 16px 28px rgba(147, 5, 38, 0.17);
}

.submit-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #bd0024 0%, #7f031f 100%);
}

.safe-message {
  margin-top: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-size: 14px;
  color: #8b8d96;
}

.safe-message span {
  color: #8b8d96;
  font-size: 16px;
}

.form-response {
  display: none;
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 8px;
  background: rgba(147, 5, 38, 0.08);
  color: var(--wine);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.form-response.show {
  display: block;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1400px) {
  .contact-layout {
    gap: 56px;
    padding-left: 58px;
    padding-right: 58px;
  }

  .contact-card {
    padding: 44px 46px 34px;
  }

  .benefit-item {
    padding: 0 22px;
  }
}

@media (max-width: 1200px) {
  .site-header {
    padding: 18px 28px;
    grid-template-columns: 190px 1fr auto;
  }

  .main-nav {
    gap: 24px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 52px;
    padding-top: 34px;
  }

  .contact-info {
    max-width: 100%;
  }

  .back-link {
    margin-bottom: 42px;
  }

  .contact-intro {
    margin-bottom: 54px;
  }

  .contact-card {
    max-width: 820px;
  }

  .contact-page::before {
    width: 100%;
    height: 52%;
    opacity: 0.82;
    background-position: left bottom;
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 78px;
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: block;
  }

  .header-btn {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 78px;
    left: 0;
    width: 100%;
    padding: 22px;
    background: var(--white);
    border-bottom: 1px solid #eee;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 10px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    text-align: center;
    padding: 14px;
  }

  .contact-layout {
    padding: 30px 28px 50px;
  }

  .contact-info::before {
    top: 58px;
    left: -16px;
    width: calc(100% + 32px);
    height: 300px;
    border-radius: 20px;
  }

  .contact-info h1 {
    font-size: 56px;
    letter-spacing: -1.5px;
  }

  .contact-intro {
    font-size: 18px;
    margin-bottom: 44px;
  }

  .contact-benefits {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .benefit-item {
    padding: 0;
  }

  .benefit-item:not(:last-child)::after {
    display: none;
  }

  .benefit-item p {
    max-width: 360px;
    margin: 0 auto;
  }

  .contact-card {
    padding: 34px 28px 30px;
    border-radius: 14px;
  }
}

@media (max-width: 520px) {
  .logo-main {
    font-size: 27px;
  }

  .contact-layout {
    padding-left: 20px;
    padding-right: 20px;
  }

  .contact-info h1 {
    font-size: 44px;
  }

  .contact-info::before {
    top: 54px;
    left: -12px;
    width: calc(100% + 24px);
    height: 270px;
  }

  .contact-card {
    padding: 28px 20px;
  }

  .form-group {
    margin-bottom: 23px;
  }
}