:root {
  --background: #f9f7f4;
  --foreground: #2f2a27;
  --muted-foreground: #6f6762;
  --primary: #a66a52;
  --primary-foreground: #fffaf6;
  --secondary: #efe7e2;
  --border: #ddd2ca;
  --terracotta-dark: #87513d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}

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

.container {
  width: 100%;
  max-width: 1160px;
}

.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1\.5 { padding-top: .375rem; padding-bottom: .375rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-35 { padding-top: 35px; padding-bottom: 35px; }
.pt-24 { padding-top: 6rem; }
.p-3 { padding: .75rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }

.fixed { position: fixed; }
.relative { position: relative; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-50 { z-index: 50; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.flex-wrap { flex-wrap: wrap; }

.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

.min-h-screen { min-height: 100vh; }
.w-full { width: 89%; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-auto { height: auto; }
.h-0\.5 { height: 2px; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-xl { border-radius: .75rem; }
.rounded-full { border-radius: 999px; }

.border { border: 1px solid var(--border); }
.border-b { border-bottom: 1px solid; }
.border-border { border-color: var(--border); }
.border-border\/50 { border-color: rgba(221, 210, 202, 0.5); }
.border-primary\/30 { border-color: rgba(166, 106, 82, 0.3); }

.bg-background { background: var(--background); }
.bg-background\/90 { background: rgba(249, 247, 244, 0.9); }
.bg-secondary { background: var(--secondary); }
.bg-secondary\/50 { background: rgba(239, 231, 226, 0.5); }
.bg-card { background: #f6ece7; }
.bg-primary { background: var(--primary); }
.bg-primary\/10 { background: rgba(166, 106, 82, 0.1); }
.bg-primary-foreground { background: var(--primary-foreground); }
.bg-foreground { background: var(--foreground); }

.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-primary-foreground\/70 { color: rgba(255, 250, 246, .7); }
.text-primary-foreground\/80 { color: rgba(255, 250, 246, .8); }
.text-background\/40 { color: rgba(249, 247, 244, .4); }
.text-background\/50 { color: rgba(249, 247, 244, .5); }
.text-background\/60 { color: rgba(249, 247, 244, .6); }
.text-background\/80 { color: rgba(249, 247, 244, .8); }
.text-white { color: #ffffff; }

.font-display { font-family: "Georgia", "Times New Roman", serif; }
.font-body { font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif; }
.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

.text-xs { font-size: .75rem; }
.text-sm { font-size: .875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.leading-relaxed { line-height: 1.7; }
.leading-\[1\.1\] { line-height: 1.1; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.tracking-wide { letter-spacing: .03em; }
.tracking-widest { letter-spacing: .1em; }
.tracking-\[0\.2em\] { letter-spacing: .2em; }

.object-cover { object-fit: cover; }
.aspect-\[3\/4\] { aspect-ratio: 3 / 4; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }

.shadow-lg { box-shadow: 0 20px 40px rgba(47, 42, 39, 0.12); }
.shadow-md { box-shadow: 0 12px 24px rgba(47, 42, 39, 0.1); }

.backdrop-blur-md { backdrop-filter: blur(8px); }
.transition-colors { transition: color .25s ease, background-color .25s ease, border-color .25s ease; }
.transition-opacity { transition: opacity .25s ease; }

.hover\:text-primary:hover { color: var(--primary); }
.hover\:bg-secondary:hover { background: #e5dbd4; }
.hover\:bg-terracotta-dark:hover { background: var(--terracotta-dark); }
.hover\:opacity-90:hover { opacity: .9; }

.cursor-pointer { cursor: pointer; }
.space-y-4 > * + * { margin-top: 1rem; }

header nav {
  flex-wrap: wrap;
}

.site-header .container {
  position: relative;
}

.nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  color: var(--muted-foreground);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .5px;
  transition: opacity .3s;
  position: relative;
}

.nav-link:hover {
  opacity: .8;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .3s;
}

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

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  border-radius: .75rem;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.icon-box {
  color: var(--primary);
}

.icon-box svg {
  width: 1.75rem;
  height: 1.75rem;
}

.mini-icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--primary);
  flex-shrink: 0;
}

.map-container {
  max-width: 780px;
  margin: 0 auto;
}

.map-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.contact-icon {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 250, 246, 0.14);
  color: var(--primary-foreground);
}

.gold-text {
  color: #814300;
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.map-card {
  background: rgba(255, 250, 246, 0.08);
  border: 1px solid rgba(255, 250, 246, 0.2);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
}

.map-frame {
  overflow: hidden;
  border-radius: .8rem;
  border: 1px solid rgba(255, 250, 246, 0.18);
}

.map-address {
  margin: 1rem 0;
  color: rgba(255, 250, 246, 0.92);
  line-height: 1.6;
  font-size: 1rem;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid #f4dcc2;
  color: #f4dcc2;
  font-weight: 600;
  transition: all .25s ease;
}

.btn-gold:hover {
  background: #f4dcc2;
  color: var(--primary);
}

.map-btn {
  margin-top: .25rem;
}

/* Contact Section Styles */
.section-line-top {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin-bottom: 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 2.8rem;
  font-weight: 400;
  margin: 1rem 0;
  color: var(--foreground);
}

.gold-line {
  height: 2px;
  background: #f4dcc2;
  border-radius: 1px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.contact-card {
  background: #f6ece7;
  border: 1px solid var(--primary);
  border-radius: 0.75rem;
  padding: 1.75rem;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-card:hover {
  box-shadow: 0 4px 12px rgba(166, 106, 82, 0.15);
  transform: translateY(-2px);
}

.contact-card .contact-icon {
  margin: 0 auto 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(166, 106, 82, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card .contact-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.contact-card h3 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.5rem 0;
  color: var(--foreground);
}

.contact-card p {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  margin: 0.5rem 0;
}

.contact-card a {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.75rem;
  text-decoration: none;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
  transition: all 0.2s ease;
}

.contact-card a:hover {
  color: var(--terracotta-dark);
  border-bottom-color: var(--terracotta-dark);
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.25s ease;
  margin-top: 1rem;
}

.btn-sm:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
}

.small-map {
  background: white;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.small-map p {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--foreground);
  margin: 0;
  border-top: 1px solid var(--border);
}

.small-map p strong {
  font-weight: 600;
  color: var(--primary);
}

main {
  overflow-x: hidden;
}

.hero-bg {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f9f7f4 0%, #efe7e2 50%, #f9f7f4 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-blur {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
}

.hero-blur-1 {
  top: 7rem;
  right: 2rem;
  width: 16rem;
  height: 16rem;
  background: rgba(166, 106, 82, 0.12);
}

.hero-blur-2 {
  bottom: 4rem;
  left: 1.5rem;
  width: 20rem;
  height: 20rem;
  background: rgba(111, 103, 98, 0.1);
}

.hero-line-top {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 96px;
  background: linear-gradient(to bottom, transparent, rgba(166, 106, 82, 0.35), transparent);
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-frame {
  position: absolute;
  border: 1px solid rgba(166, 106, 82, 0.22);
  border-radius: 2rem;
}

.hero-frame-1 {
  inset: -0.9rem;
  transform: rotate(3deg);
}

.hero-frame-2 {
  inset: -1.6rem;
  border-radius: 2.4rem;
  transform: rotate(-2deg);
  border-color: rgba(166, 106, 82, 0.14);
}

.hero-image {
  position: relative;
  width: 22rem;
  height: 31rem;
  border-radius: 1.8rem;
  overflow: hidden;
  box-shadow: 0 24px 45px rgba(47, 42, 39, 0.18);
}

.hero-image img {
  width: 100%;
  height: 100%;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(47, 42, 39, 0.35), rgba(47, 42, 39, 0.08), transparent);
}

.hero-image-badge {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(249, 247, 244, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(221, 210, 202, 0.8);
  border-radius: .8rem;
  padding: .75rem .9rem;
}

.hero-image-badge-text {
  margin: 0;
  font-size: .72rem;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted-foreground);
}

.hero-image-badge-name {
  margin: 0;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--foreground);
}

.hero-image-badge-role {
  margin: 0.25rem 0 0 0;
  font-size: .7rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted-foreground);
}

section {
  scroll-margin-top: 90px;
}

details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details[open] {
  background: #fff;
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.float-anim {
  animation: float-soft 6s ease-in-out infinite;
}

.hero-photo-motion {
  transition: transform .3s ease;
}

.hero-photo-motion:hover {
  animation-play-state: paused;
  transform: translateY(-4px) scale(1.01);
}

.card-motion {
  position: relative;
  overflow: hidden;
  background: rgba(245, 240, 235, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(221, 210, 202, 0.7);
  box-shadow: 0 1px 3px rgba(47, 42, 39, 0.08);
  transition: transform .45s ease, box-shadow .45s ease, border-color .45s ease, background-color .45s ease;
}

.card-motion::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--terracotta-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s ease;
}

.card-motion:hover {
  transform: translateY(-8px);
  border-color: rgba(166, 106, 82, 0.45);
  background: rgba(245, 240, 235, 0.95);
  box-shadow: 0 20px 45px -14px rgba(166, 106, 82, 0.32);
}

.card-motion:hover::before {
  transform: scaleX(1);
}

.contact-motion {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 246, 0.35);
  box-shadow: 0 12px 26px rgba(47, 42, 39, 0.18);
  transition: transform .45s ease, box-shadow .45s ease, border-color .45s ease;
}

.contact-motion:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 250, 246, 0.65);
  box-shadow: 0 22px 40px rgba(47, 42, 39, 0.24);
}

.floating-social {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  z-index: 60;
}

.floating-social-link {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(47, 42, 39, 0.2);
  transition: transform .2s ease, background-color .2s ease;
}

.floating-social-link:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
}

.floating-social-link svg {
  width: 1.35rem;
  height: 1.35rem;
}

@media (min-width: 768px) {
  .md\:gap-8 { gap: 2rem; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:text-lg { font-size: 1.125rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-6xl { font-size: 3.75rem; }
  .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .md\:py-35 { padding-top: 35px; padding-bottom: 35px; }
  .md\:p-4 { padding: 1rem; }
}

@media (min-width: 1024px) {
  .lg\:text-7xl { font-size: 4.5rem; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .text-5xl { font-size: 2.4rem; }
  .brand-logo {
    font-size: 1.45rem;
    line-height: 1.05;
  }

  .container { max-width: 100%; }
  .hero-badge {
    font-size: .62rem;
    letter-spacing: .12em;
    padding: .32rem .75rem;
  }

  .hero-blur-1 {
    top: 6rem;
    right: -2rem;
    width: 12rem;
    height: 12rem;
  }

  .hero-blur-2 {
    bottom: 2rem;
    left: -2rem;
    width: 14rem;
    height: 14rem;
  }

  .hero-image {
    width: 17.5rem;
    height: 24rem;
  }

  .hero-frame-1 {
    inset: -0.65rem;
  }

  .hero-frame-2 {
    inset: -1.1rem;
  }

  .hero-image-badge {
    left: .75rem;
    right: .75rem;
    bottom: .75rem;
    padding: .6rem .75rem;
  }

  .hero-image-badge-text {
    font-size: .64rem;
  }

  .hero-image-badge-name {
    font-size: .75rem;
  }

  .hero-image-badge-role {
    font-size: .62rem;
  }

  header .container {
    gap: .75rem;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 1.25rem 1rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all .3s;
    border-bottom: 1px solid var(--border);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  header nav,
  .nav {
    width: 100%;
    flex-wrap: nowrap;
  }

  .nav-link,
  header nav a {
    white-space: nowrap;
    font-size: .85rem;
    letter-spacing: .08em;
    color: var(--primary-foreground);
  }

  .nav-link::after {
    background: var(--primary-foreground);
  }

  section {
    scroll-margin-top: 130px;
  }

  .gold-text {
    font-size: 1.1rem;
  }

  .map-card {
    padding: .8rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 1.25rem;
  }

  .small-map {
    order: -1;
  }

  .floating-social {
    right: .75rem;
    bottom: .75rem;
  }

  .floating-social-link {
    width: 2.75rem;
    height: 2.75rem;
  }
}

/* Image on the left, text on the right on mobile */
@media (max-width: 768px) {
  #inicio .container > .grid {
    grid-template-columns: 1fr 1fr;
  }
  
  #inicio .grid > div:first-child {
    order: 2;
  }
  
  #inicio .grid > div:last-child {
    order: 1;
  }
}
