/* ============================================================
   RESET & BASE STYLES
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --burgundy: #5D1B1F;
  --burgundy-dark: #3E1013;
  --burgundy-light: #7E2A2E;
  --burgundy-tint: rgba(93, 27, 31, 0.06);
  --burgundy-tint-strong: rgba(93, 27, 31, 0.15);
  --cream: #F6EFE2;
  --cream-warm: #EFE4D0;
  --cream-deep: #E5DAC4;
  --cream-light: #FAF6EE;
  --ink: #1F1713;
  --ink-muted: #56473E;
  --gold: #B8924E;
  --gold-light: #D4B070;
  --gold-dark: #8F6D30;
  --border: rgba(93, 27, 31, 0.12);
  --border-strong: rgba(93, 27, 31, 0.28);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;

  --max-width: 1280px;
  --container-pad: clamp(1.5rem, 4vw, 3rem);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Paper Grain Texture (Premium feel) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  position: relative;
  z-index: 2;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-variation-settings: "opsz" 144;
  margin-top: 0.75rem;
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-variation-settings: "opsz" 36;
  font-weight: 500;
}

.italic-display {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}

p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--burgundy);
  color: var(--cream-light);
}

.btn-primary:hover {
  background: var(--burgundy-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(93, 27, 31, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* Submit button on WhatsApp style */
.btn-submit {
  background: #25D366;
  color: white;
  width: 100%;
  justify-content: center;
  padding: 1.1rem;
  border-radius: 6px;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-submit:hover {
  background: #1FB257;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.35);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  background: rgba(246, 239, 226, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s ease, background-color 0.3s ease;
}

.nav.scrolled {
  padding: 0.75rem 0;
  background: rgba(246, 239, 226, 0.94);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: transform 0.3s ease;
}

.logo-mark:hover {
  transform: scale(1.02);
}

.logo-circle {
  width: 42px;
  height: 42px;
  background: var(--burgundy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  box-shadow: 0 2px 8px rgba(93, 27, 31, 0.15);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--ink);
}

.logo-text .small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; width: 0; height: 1.5px;
  background: var(--burgundy);
  transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--burgundy);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.55rem 1.35rem;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .nav-link-item {
    display: none;
  }
}

/* ============================================================
   HERO SECTION (Rich burgundy background)
   ============================================================ */
.hero {
  padding: 11rem 0 7rem;
  background: var(--burgundy-dark);
  color: var(--cream-light);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(246, 239, 226, 0.1);
}

/* Elegant light glowing circles */
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(184, 146, 78, 0.12), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%; left: -10%;
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, rgba(126, 42, 46, 0.25), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 968px) {
  .hero-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 5rem;
  }
}

.hero .eyebrow {
  color: var(--gold-light);
}

.hero h1 {
  color: var(--cream-light);
  margin-top: 1rem;
}

.hero-subtitle {
  max-width: 560px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(246, 239, 226, 0.82);
  margin-top: 1.5rem;
}

.hero-cta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.hero .btn-primary {
  background: var(--gold);
  color: var(--burgundy-dark);
}

.hero .btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 10px 25px rgba(184, 146, 78, 0.3);
}

.hero .btn-secondary {
  color: var(--cream-light);
  border-color: rgba(246, 239, 226, 0.35);
}

.hero .btn-secondary:hover {
  background: var(--cream-light);
  color: var(--burgundy-dark);
  border-color: var(--cream-light);
}

.hero-meta {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(246, 239, 226, 0.15);
  max-width: 560px;
}

.hero-meta-item .label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.hero-meta-item .value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--cream-light);
  font-variation-settings: "opsz" 36;
}

/* Hero card (floating) */
.hero-visual {
  position: relative;
  aspect-ratio: 3 / 3.8;
  max-width: 360px;
  margin-left: auto;
  width: 100%;
}

.hero-card {
  position: absolute;
  inset: 0;
  background: var(--cream-light);
  border-radius: 8px;
  padding: 2.5rem;
  color: var(--burgundy);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.4);
  transform: rotate(-1.5deg);
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-card:hover {
  transform: rotate(0deg) scale(1.03);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 1.5rem; left: 1.5rem; right: 1.5rem; bottom: 1.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  pointer-events: none;
}

.hero-card-top {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy-light);
}

.hero-card-mark {
  font-family: var(--font-display);
  font-size: 6.5rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: var(--burgundy);
  font-variation-settings: "opsz" 144;
}

.hero-card-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.45;
  max-width: 240px;
  color: var(--ink);
}

.hero-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy-light);
}

@media (max-width: 967px) {
  .hero-visual {
    max-width: 320px;
    margin: 2rem auto 0;
  }
}

/* ============================================================
   SECTIONS GENERAL
   ============================================================ */
section {
  padding: 7.5rem 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  section {
    padding: 5rem 0;
  }
}

.section-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 4.5rem;
}

@media (min-width: 768px) {
  .section-header {
    grid-template-columns: 1.4fr 1fr;
  }
}

.section-header p {
  max-width: 440px;
  font-size: 1.1rem;
}

/* ============================================================
   SOBRE (About section - warm cream background)
   ============================================================ */
.about {
  background: var(--cream-warm);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 968px) {
  .about-grid {
    grid-template-columns: 1fr 1.25fr;
  }
}

.about-photo {
  aspect-ratio: 4 / 4.8;
  background: var(--cream-deep);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 15px 35px rgba(93, 27, 31, 0.08);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.about-photo:hover img {
  transform: scale(1.04);
}

.about-content > * + * {
  margin-top: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem !important;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-strong);
}

.about-stat .number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 500;
  color: var(--burgundy);
  line-height: 1;
}

.about-stat .label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.6rem;
  line-height: 1.3;
}

@media (max-width: 580px) {
  .about-stats {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.servicios {
  background: var(--cream-light);
  border-bottom: 1px solid var(--border);
}

.servicios-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

@media (min-width: 640px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 968px) {
  .servicios-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.servicio {
  padding: 3rem 2.5rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: var(--cream-light);
}

.servicio::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 0;
  background: var(--burgundy-tint);
  transition: height 0.4s ease;
  z-index: 1;
}

.servicio:hover::before {
  height: 100%;
}

.servicio:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(93, 27, 31, 0.04);
}

.servicio > * {
  position: relative;
  z-index: 2;
}

.servicio-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--burgundy);
  margin-bottom: 1.5rem;
  font-variation-settings: "opsz" 36, "SOFT" 100;
}

.servicio h3 {
  margin-bottom: 0.85rem;
}

.servicio p {
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ============================================================
   POR QUÉ (Burgundy Accent Block)
   ============================================================ */
.por-que {
  background: var(--burgundy);
  color: var(--cream-light);
}

.por-que h2 {
  color: var(--cream-light);
}

.por-que .eyebrow {
  color: var(--gold-light);
}

.por-que-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

@media (min-width: 768px) {
  .por-que-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.por-que-item .number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.por-que-item h3 {
  color: var(--cream-light);
  margin-bottom: 0.85rem;
  font-weight: 500;
}

.por-que-item p {
  color: rgba(246, 239, 226, 0.78);
  font-size: 1rem;
}

/* ============================================================
   CONTACTO & FORMULARIO
   ============================================================ */
.contacto {
  background: var(--cream-warm);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}

@media (min-width: 968px) {
  .contacto-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 5rem;
  }
}

.contacto-form-container {
  background: var(--cream-light);
  padding: 3.5rem 3rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 15px 45px rgba(93, 27, 31, 0.05);
}

.contacto-subtitle {
  margin-top: 1rem;
  margin-bottom: 2.5rem;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

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

.form-group label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: var(--cream-light);
  color: var(--ink);
  transition: all 0.3s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a4968c;
  font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--burgundy);
  background: white;
  box-shadow: 0 0 0 3px rgba(93, 27, 31, 0.12);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235D1B1F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Contact Info Column */
.contacto-info-column {
  position: sticky;
  top: 7rem;
}

.contacto-info-box {
  background: var(--burgundy-dark);
  color: var(--cream-light);
  padding: 3.5rem 3rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contacto-info-box::after {
  content: '';
  position: absolute;
  top: -20%; right: -20%;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(184, 146, 78, 0.15), transparent 70%);
  pointer-events: none;
}

.contacto-info-box h3 {
  color: var(--cream-light);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.contacto-info-box p {
  color: rgba(246, 239, 226, 0.75);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contacto-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contacto-info-item .label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.contacto-info-item .value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--cream-light);
  font-variation-settings: "opsz" 36;
}

.contacto-info-item .value a:hover {
  color: var(--gold-light);
}

@media (max-width: 968px) {
  .contacto-info-column {
    position: relative;
    top: 0;
  }
}

/* ============================================================
   FOOTER (Pie de página)
   ============================================================ */
footer {
  background: #150F0D;
  color: var(--cream-light);
  padding: 5rem 0 2.5rem;
  border-top: 1px solid rgba(246, 239, 226, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

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

.footer-brand p {
  color: rgba(246, 239, 226, 0.65);
  font-size: 0.95rem;
  margin-top: 1.5rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-col a {
  color: rgba(246, 239, 226, 0.8);
  font-size: 0.95rem;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(246, 239, 226, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(246, 239, 226, 0.5);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* ============================================================
   FADE IN ON SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), 
              transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

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