@import url('/css/fonts.css');

/* ==========================================================================
   Variables & Tokens
   ========================================================================== */
:root {
  --cream: #f5f0e7;
  --paper: #eee8dd;
  --paper-card: #eae2d5;
  --paper-card-hover: #e2d9cb;
  --ink: #171614;
  --ink-light: #2b2824;
  --muted: #666158;
  --line: #d4ccbd;
  --line-light: #e6dfd3;
  --sage: #586052;
  --sage-dark: #3f463a;
  --sage-soft: #e2e9df;
  --white: #fffdf9;
  --shadow-sm: 0 2px 8px rgba(23, 22, 20, 0.04);
  --shadow-md: 0 8px 24px rgba(23, 22, 20, 0.07);
  --shadow-lg: 0 16px 36px rgba(23, 22, 20, 0.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.hero {
  background-color: var(--cream);
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
}

.wrap {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--sage);
  display: inline-block;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* ==========================================================================
   Buttons & Common Actions
   ========================================================================== */
.actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dark-btn {
  background-color: var(--ink);
  color: var(--white);
  padding: 13px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.dark-btn:hover:not(:disabled) {
  background-color: var(--sage-dark);
  border-color: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

.dark-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #8c877e;
  border-color: #8c877e;
  box-shadow: none;
}

.outline-btn {
  background-color: transparent;
  color: var(--ink);
  padding: 13px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(23, 22, 20, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.outline-btn:hover {
  background-color: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(245, 240, 231, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.header.scrolled {
  background-color: rgba(245, 240, 231, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-bottom-color: var(--line);
}

.nav-container {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.brand {
  font-family: var(--font-serif);
  font-size: 29px;
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex-shrink: 0;
}

.brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--sage);
  margin-top: 6px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.nav-menu a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--sage);
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--ink);
}

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

.nav-menu a.active {
  color: var(--ink);
  font-weight: 700;
}

.nav-menu a.active::after {
  width: 100%;
}

.menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.menu-btn svg {
  display: block;
  width: 26px;
  height: 26px;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInMenu {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ==========================================================================
   Zen Quote Strip (Global)
   ========================================================================== */
.zen-strip {
  position: relative;
  overflow: hidden;
  padding: 45px 20px;
  background-color: #201f1c;
  color: #f7f3ec;
  border-top: 1px solid #33302b;
  border-bottom: 1px solid #33302b;
  text-align: center;
}

.zen-strip-bg {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  filter: grayscale(1) contrast(1.2);
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zen-strip-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.zen-strip strong {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: #fffdfa;
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.zen-strip p {
  font-family: var(--font-sans);
  font-size: 15px;
  color: #c9c3b8;
  line-height: 1.6;
}

/* ==========================================================================
   Sección Final CTA / Contacto (Global)
   ========================================================================== */
.final-cta,
.contact-section {
  padding: 85px 20px 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  border-top: 1px solid var(--line);
  position: relative;
}

.final-cta .rocks,
.contact-section .rocks {
  font-size: 18px;
  letter-spacing: 5px;
  margin-bottom: 12px;
  color: var(--sage);
  line-height: 1;
}

.final-cta .eyebrow,
.contact-section .eyebrow {
  margin-bottom: 12px;
  display: inline-block;
}

.final-cta h2,
.contact-section h2 {
  font-family: var(--font-serif);
  font-size: 50px;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 16px;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.final-cta p,
.final-cta p.lead-cta,
.contact-section p.contact-lead,
.contact-section p {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 30px;
}

.final-cta .cta-action-wrap,
.contact-section .contact-action-box {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.contact-btn-main,
.final-cta .dark-btn,
.contact-section .dark-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  padding: 16px 42px;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: var(--radius-sm);
  background-color: var(--ink);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(23, 22, 20, 0.22);
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid var(--ink);
}

.contact-btn-main:hover,
.final-cta .dark-btn:hover,
.contact-section .dark-btn:hover {
  background-color: #2c2925;
  border-color: #2c2925;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(23, 22, 20, 0.32);
  color: var(--white);
}

.contact-btn-main svg,
.final-cta .dark-btn svg {
  transition: transform 0.2s ease;
}

.contact-btn-main:hover svg,
.final-cta .dark-btn:hover svg {
  transform: translateX(4px);
}

.final-cta .cta-note,
.contact-section .contact-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--sage-dark);
  line-height: 1.4;
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}

.final-cta .cta-note svg,
.contact-section .contact-note svg {
  color: var(--sage);
  flex-shrink: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background-color: var(--ink);
  color: var(--paper);
  padding: 50px 0 24px;
  border-top: 1px solid #282522;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

.footer-brand strong {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--white);
  display: block;
  line-height: 1;
}

.footer-brand small {
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--sage-soft);
  display: block;
  margin-top: 6px;
}

.footer-brand p {
  font-size: 13px;
  color: #9f998f;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: #a8a297;
  font-size: 13px;
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: var(--white);
}

.copyright {
  border-top: 1px solid #2d2a26;
  margin-top: 36px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #888277;
  font-size: 12px;
}

/* ==========================================================================
   Responsive Global Elements
   ========================================================================== */
@media (max-width: 768px) {
  .wrap {
    width: min(100% - 32px, 1120px);
  }

  .nav-container {
    height: 66px;
  }

  .desktop-cta {
    display: none;
  }

  .menu-btn {
    display: block;
    margin-left: auto;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 66px;
    left: 14px;
    right: 14px;
    background-color: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    gap: 16px;
    z-index: 1001;
  }

  .nav-menu.nav-open {
    display: flex !important;
    animation: fadeInMenu 0.22s ease forwards;
  }

  .nav-menu a {
    font-size: 13px;
    font-weight: 700;
    width: 100%;
    padding: 6px 0;
    border-bottom: 1px solid var(--line-light);
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .copyright {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .zen-strip {
    padding: 35px 16px;
  }

  .zen-strip strong {
    font-size: 22px;
  }

  .zen-strip p {
    font-size: 13.5px;
  }

  .final-cta,
  .contact-section {
    padding: 60px 16px;
  }

  .final-cta h2,
  .contact-section h2 {
    font-size: 34px !important;
  }

  .final-cta p,
  .final-cta p.lead-cta,
  .contact-section p.contact-lead,
  .contact-section p {
    font-size: 17px !important;
  }

  .contact-btn-main,
  .final-cta .dark-btn,
  .contact-section .dark-btn {
    padding: 14px 28px !important;
    font-size: 12px !important;
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .actions {
    flex-direction: column;
  }

  .actions a {
    width: 100%;
  }
}
