/* =========================================================
   ROOT / TOKENS
========================================================= */
:root {
  /* Verde primario */
  --primary-50: hsl(104, 64%, 90%);
  --primary-100: hsl(104, 64%, 80%);
  --primary-200: hsl(104, 64%, 65%);
  --primary-300: hsl(104, 64%, 50%);
  --primary-400: hsl(104, 64%, 35%);
  --primary-500: hsl(104, 64%, 18%);
  --primary-600: hsl(104, 64%, 15%);
  --primary-700: hsl(104, 64%, 12%);
  --primary-800: hsl(104, 64%, 9%);
  --primary-900: hsl(104, 64%, 6%);

  /* Secundario tierra */
  --secondary-50: hsl(41, 20%, 92%);
  --secondary-100: hsl(41, 20%, 82%);
  --secondary-200: hsl(41, 20%, 70%);
  --secondary-300: hsl(41, 20%, 60%);
  --secondary-400: hsl(41, 20%, 55%);
  --secondary-500: hsl(41, 20%, 51%);
  --secondary-600: hsl(41, 20%, 45%);
  --secondary-700: hsl(41, 20%, 38%);
  --secondary-800: hsl(41, 20%, 30%);
  --secondary-900: hsl(41, 20%, 22%);

  /* Fondo */
  --bg-50: hsl(0, 0%, 100%);
  --bg-100: hsl(0, 0%, 97%);
  --bg-200: hsl(0, 0%, 95%);
  --bg-300: hsl(0, 0%, 90%);
  --bg-400: hsl(0, 0%, 85%);

  /* Texto */
  --text-50: hsl(0, 0%, 30%);
  --text-100: hsl(0, 0%, 20%);
  --text-200: hsl(0, 0%, 10%);
  --text-300: hsl(0, 0%, 7%);
  --text-400: hsl(0, 0%, 5%);
  --text-500: hsl(0, 0%, 2%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-50);
  color: var(--text-400);
  font-family: "Inter", sans-serif;
}

h1,
h2,
.logo-text {
  font-family: "Cinzel", serif;
}

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

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 0.9rem 1.25rem;
  animation: navFadeDown 0.7s ease;
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 68px;
  padding: 0 1rem;

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

  background: hsla(0, 0%, 100%, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid hsla(41, 20%, 70%, 0.45);
  border-radius: 16px;
  box-shadow: 0 10px 30px hsla(0, 0%, 5%, 0.06);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.logo:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--text-100);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 2px;
  background: var(--primary-500);
  border-radius: 999px;
  transition: width 0.28s ease;
}

.nav-links a:hover {
  color: var(--primary-500);
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  width: 100%;
}

.cta-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 46px;
  padding: 0 1.35rem;
  border-radius: 999px;

  background: var(--primary-500);
  color: var(--bg-50);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;

  box-shadow: 0 8px 20px hsla(104, 64%, 18%, 0.18);
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.cta-btn:hover {
  background: var(--primary-400);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px hsla(104, 64%, 18%, 0.24);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.lang-toggle {
  min-width: 68px;
  height: 42px;
  padding: 0 0.9rem;
  border: 1px solid var(--bg-300);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--bg-50);
}

.lang-toggle .fi {
  font-size: 1rem;
  line-height: 1;
  border-radius: 2px;
  overflow: hidden;
}

.lang-toggle-text {
  line-height: 1;
}

.mobile-language {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.35rem;
}

.mobile-lang-toggle {
  width: 100%;
  justify-content: center;
}

/* =========================================================
   MOBILE MENU
========================================================= */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-300);
}

.menu-toggle svg {
  width: 26px;
  height: 26px;
}

.mobile-menu {
  position: fixed;
  top: 90px;
  right: 1.5rem;
  width: 260px;

  display: flex;
  flex-direction: column;
  gap: 1rem;

  padding: 1.2rem;

  background: hsla(0, 0%, 100%, 0.92);
  backdrop-filter: blur(12px);

  border-radius: 16px;
  border: 1px solid hsla(41, 20%, 70%, 0.4);

  box-shadow: 0 15px 40px hsla(0, 0%, 5%, 0.12);

  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  pointer-events: none;

  transition: all 0.25s ease;
  z-index: 999;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--text-200);
  font-size: 0.95rem;
  font-weight: 500;
}

.mobile-menu a:hover {
  color: var(--primary-500);
}

.mobile-cta {
  margin-top: 0.5rem;
  text-align: center;
  background: var(--primary-500);
  color: white !important;
  padding: 0.7rem;
  border-radius: 999px;
  font-weight: 600;
}

.mobile-menu.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* =========================================================
   QUOTE HERO
========================================================= */
.quote-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 7rem 1.5rem 4rem;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      hsla(0, 0%, 5%, 0.7) 0%,
      hsla(0, 0%, 5%, 0.52) 32%,
      hsla(0, 0%, 5%, 0.26) 58%,
      hsla(0, 0%, 5%, 0.12) 100%
    ),
    url("../../images/pine-straw/2.jpeg") center/cover no-repeat;
}

.quote-hero-overlay {
  position: absolute;
  inset: 0;
}

.quote-hero-content {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--bg-50);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  animation: heroFadeUp 0.9s ease;
  z-index: 2;
}

.quote-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border: 1px solid hsla(0, 0%, 100%, 0.24);
  border-radius: 999px;
  background: hsla(0, 0%, 100%, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--secondary-100);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quote-hero h1 {
  max-width: 720px;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 0.97;
  letter-spacing: -0.02em;
  color: var(--bg-50);
  text-shadow: 0 4px 18px hsla(0, 0%, 0%, 0.22);
}

.quote-hero-description {
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.8;
  color: hsla(0, 0%, 100%, 0.9);
  text-shadow: 0 2px 10px hsla(0, 0%, 0%, 0.18);
}

/* =========================================================
   QUOTE FORM SECTION
========================================================= */
.quote-section {
  padding: 6rem 1.5rem;
  background: linear-gradient(180deg, var(--bg-50) 0%, var(--bg-100) 100%);
}

.quote-container {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.quote-info {
  max-width: 560px;
}

.quote-section-kicker {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--primary-500);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-info h2 {
  color: var(--text-400);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.quote-info > p {
  color: var(--text-100);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.quote-info-card {
  padding: 1.3rem 1.25rem;
  border-radius: 18px;
  background: var(--bg-50);
  border: 1px solid var(--secondary-200);
  box-shadow: 0 12px 30px hsla(0, 0%, 5%, 0.05);
  margin-bottom: 1.5rem;
}

.quote-info-card h3 {
  color: var(--text-300);
  font-size: 1.02rem;
  margin-bottom: 0.85rem;
}

.quote-info-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quote-info-card li {
  color: var(--text-100);
  font-size: 0.97rem;
  line-height: 1.65;
  padding-left: 1.25rem;
  position: relative;
}

.quote-info-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-500);
}

.quote-contact-box {
  padding: 1.2rem 1.2rem;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--bg-50) 0%, var(--bg-100) 100%);
  border: 1px solid var(--bg-300);
  box-shadow: 0 12px 30px hsla(0, 0%, 5%, 0.04);
}

.quote-contact-box p {
  color: var(--text-100);
  margin-bottom: 0.8rem;
}

.quote-phone {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: var(--primary-500);
  color: var(--bg-50);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 8px 20px hsla(104, 64%, 18%, 0.18);
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.quote-phone:hover {
  background: var(--primary-400);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px hsla(104, 64%, 18%, 0.24);
}

.quote-form-card {
  background: var(--bg-50);
  border: 1px solid var(--bg-300);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 18px 40px hsla(0, 0%, 5%, 0.08);
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.form-group label {
  color: var(--text-200);
  font-size: 0.95rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-50);
  border: 1px solid var(--bg-300);
  border-radius: 16px;
  color: var(--text-300);
  font: inherit;
  padding: 0.95rem 1rem;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-50);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-300);
  box-shadow: 0 0 0 4px hsla(104, 64%, 35%, 0.12);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.service-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--bg-300);
  background: var(--bg-100);
  color: var(--text-100);
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.service-option:hover {
  border-color: var(--secondary-200);
  background: var(--secondary-50);
  transform: translateY(-1px);
}

.service-option input {
  width: 17px;
  height: 17px;
  accent-color: var(--primary-500);
  flex-shrink: 0;
}

.quote-submit-btn {
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 50px;
  padding: 0 1.4rem;
  border-radius: 999px;

  background: var(--primary-500);
  color: var(--bg-50);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;

  box-shadow: 0 10px 24px hsla(104, 64%, 18%, 0.22);
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.quote-submit-btn:hover {
  background: var(--primary-400);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px hsla(104, 64%, 18%, 0.26);
}

/* =========================================================
   BOTTOM NOTE
========================================================= */
.quote-bottom-note {
  padding: 0 1.5rem 6rem;
  background: linear-gradient(180deg, var(--bg-100) 0%, var(--bg-50) 100%);
}

.quote-bottom-note-container {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--bg-50);
  border: 1px solid var(--bg-300);
  border-radius: 22px;
  box-shadow: 0 12px 30px hsla(0, 0%, 5%, 0.05);
  padding: 1.3rem 1.4rem;
}

.quote-bottom-note-container p {
  text-align: center;
  color: var(--text-100);
  line-height: 1.75;
  font-size: 0.97rem;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  background: var(--primary-700);
  color: white;
  padding: 4rem 1.5rem 1.5rem;
}

.footer-container {
  max-width: 1180px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.12);
}

.footer-brand {
  max-width: 420px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.footer-description {
  color: hsla(0, 0%, 100%, 0.72);
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-links-group h3,
.footer-contact h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: white;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a,
.footer-contact a,
.footer-contact p {
  color: hsla(0, 0%, 100%, 0.72);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: white;
}

.footer-phone {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.footer-bottom {
  padding: 1.5rem 1rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin: 0.25rem 0;
  color: hsla(0, 0%, 100%, 0.6);
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-bottom a {
  color: #9be15d;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.footer-bottom a:hover {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(155, 225, 93, 0.5);
}

.footer-bottom p:first-child {
  letter-spacing: 0.5px;
}

.form-alert {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 500;
  border: 1px solid transparent;
}

.form-alert-success {
  background: hsla(104, 64%, 90%, 0.7);
  border-color: hsla(104, 64%, 35%, 0.25);
  color: var(--primary-600);
}

.form-alert-error {
  background: hsla(0, 75%, 96%, 1);
  border-color: hsla(0, 65%, 70%, 0.35);
  color: hsl(0, 55%, 38%);
}

/* =========================================================
   RESPONSIVE - NAVBAR / MOBILE MENU
========================================================= */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .cta-btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-actions {
    display: none;
  }
}

/* =========================================================
   RESPONSIVE - QUOTE
========================================================= */
@media (max-width: 980px) {
  .quote-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .quote-info {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .quote-hero {
    min-height: 68vh;
    padding: 6.5rem 1.25rem 3.5rem;
  }

  .quote-section {
    padding: 4.5rem 1.25rem;
  }

  .quote-bottom-note {
    padding: 0 1.25rem 4.5rem;
  }

  .form-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .quote-form-card {
    padding: 1.4rem;
    border-radius: 20px;
  }
}

@media (max-width: 640px) {
  .quote-hero h1 {
    font-size: clamp(2.2rem, 9vw, 3.4rem);
  }

  .quote-hero-description,
  .quote-info > p,
  .quote-bottom-note-container p {
    font-size: 0.95rem;
  }

  .service-option {
    padding: 0.9rem 0.95rem;
  }
}

/* =========================================================
   RESPONSIVE - FOOTER
========================================================= */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 3rem 1.25rem 1.25rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-logo img {
    height: 52px;
  }
}

/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes navFadeDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}