@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --primary: #4A5D4E;
  --primary-dark: #3a4a3e;
  --secondary: #D4A373;
  --secondary-dark: #bc8a5f;
  --accent: #E9EDC9;
  --bg-color: #F5F1ED;
  --text-color: #2D2D2D;
  --text-light: #5A5E4F;
  /* Incrementado contraste para mejor accesibilidad */
  --white: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.7);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;

  font-family: var(--font-sans);
  line-height: 1.65;
  /* Incrementado ligeramente */
  font-weight: 400;

  color-scheme: light;
  background-color: var(--bg-color);
  color: var(--text-color);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--primary);
  text-wrap: balance;
  /* Mejor balance en títulos largos */
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 70ch;
  /* Limitar ancho para legibilidad */
}

strong {
  color: var(--primary);
  font-weight: 600;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--glass);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

header.scrolled {
  padding: 0.5rem 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 2px;
}

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

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  padding: 0.5rem 0;
}

/* Ocultar elementos en scrolled según wireframe */
header.scrolled .nav-hide-on-scroll {
  display: none;
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  cursor: pointer;
}

.nav-cta:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 163, 115, 0.2);
}

.mobile-cta-only {
  display: none;
}

/* Dropdown / Mega Menu */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 250px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 1rem;
  z-index: 1100;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-section {
  display: flex;
  flex-direction: column;
}

.dropdown-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.05);
  margin: 0.5rem 0;
}

.dropdown-section h5 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 0.3rem;
}

.dropdown-section a {
  display: block;
  font-size: 1rem;
  text-transform: none;
  color: var(--text-color);
  padding: 0.6rem 0.8rem;
  letter-spacing: 0;
  transition: all 0.2s;
  border-radius: 8px;
}

.dropdown-section a:hover {
  background: var(--bg-color);
  color: var(--primary);
  padding-left: 1.2rem;
}

/* Mobile Nav */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 2000;
  background: none;
  border: none;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--primary);
  margin: 5px 0;
  transition: 0.4s;
}

@media (max-width: 992px) {
  nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .nav-right {
    justify-self: end;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 2rem 2rem;
    transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    align-items: flex-start;
    overflow-y: auto;
    gap: 0.5rem;
    z-index: 1050;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  }

  .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
  }

  .dropdown-content {
    position: static;
    display: block;
    box-shadow: none;
    min-width: 100%;
    padding: 0 0 1rem 1rem;
    transform: none;
    border: none;
  }

  .dropdown-divider {
    display: none;
  }

  /* CTA dentro del menú móvil (al fondo) */
  .mobile-cta-only {
    display: block;
    margin-top: auto;
    width: 100%;
    padding-top: 2rem;
  }
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: 50px;
  font-size: 0.8rem !important;
  transition: all 0.3s ease !important;
}

.nav-cta:hover {
  background: var(--secondary) !important;
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #F5F1ED 0%, #E9EDC9 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.hero-content {
  max-width: 650px;
  z-index: 2;
  animation: fadeIn 1s ease-out;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: clamp(1rem, 4vw, 1.25rem);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.cta-group {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 1.1rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(74, 93, 78, 0.15);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(74, 93, 78, 0.25);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(74, 93, 78, 0.15);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1.5rem 0 0 0;
  font-size: 0.8rem;
  color: var(--text-light);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--text-light);
  transition: color 0.3s;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs span {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* Grids & Layout Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.mb-4 {
  margin-bottom: 4rem;
}

.mt-4 {
  margin-top: 4rem;
}

/* Benefits List */
.benefits-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.benefit-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 15px;
  border-left: 4px solid var(--secondary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.benefit-item h4 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Section Backgrounds */
.bg-white {
  background-color: var(--white);
}

.bg-alt {
  background-color: #EFEDE9;
}

.card {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
  border-color: var(--secondary) !important;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

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

  section {
    padding: 4rem 0;
  }

  .cta-group {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  header nav {
    justify-content: center;
    flex-direction: column;
    height: auto;
    padding: 1.5rem 0;
    gap: 1rem;
  }

  .hero {
    text-align: center;
    padding-top: 150px;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
}

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

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Blog Post Layout */
.post-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(rgba(245, 241, 237, 0.92), rgba(245, 241, 237, 0.92)), url('/assets/detail.png');
  background-size: cover;
  background-position: center;
  text-align: center;
}

.post-hero .container {
  max-width: 800px;
}

.post-category {
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 1.25rem;
}

.post-hero h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.post-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  font-style: italic;
  font-family: var(--font-serif);
  line-height: 1.5;
}

.post-body {
  padding: 5rem 0;
  background-color: var(--white);
}

.post-body .container {
  max-width: 750px;
}

.post-content p {
  margin-bottom: 1.75rem;
  line-height: 1.8;
  color: var(--text-color);
  font-size: 1.15rem;
}

.post-content h2 {
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 2rem;
}

.post-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.4rem;
}

.post-content ul,
.post-content ol {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.75rem;
  color: var(--text-color);
  font-size: 1.1rem;
}

.post-cta {
  margin-top: 5rem;
  padding: 4rem;
  border-radius: 40px;
  text-align: center;
  color: var(--white);
  background: var(--primary);
}

.post-cta.secondary {
  background: var(--secondary);
}

.post-cta h3 {
  color: var(--white);
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.post-cta .btn-white {
  background: var(--white);
  color: var(--primary);
  border: none;
  padding: 1.1rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.post-cta .btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.post-cta.secondary .btn-white {
  color: var(--secondary);
}

.highlight-box {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 20px;
  border-left: 5px solid var(--secondary);
  margin: 2.5rem 0;
}

.highlight-box p {
  margin-bottom: 0;
  font-style: italic;
}

@media (max-width: 768px) {
  .post-hero {
    padding: 7rem 0 3rem;
  }

  .post-body {
    padding: 3.5rem 0;
  }

  .post-cta {
    padding: 3rem 1.5rem;
    border-radius: 30px;
  }
}

/* Subpage Hero */
.subpage-hero {
  min-height: 60vh !important;
  padding: 120px 0 60px !important;
}

/* Additional Utilities */
.text-serif { font-family: var(--font-serif); }
.italic { font-style: italic; }
.font-large { font-size: 1.25rem; }
.primary-color { color: var(--primary); }
.secondary-color { color: var(--secondary); }

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
