/* ============================================================
   EVERLASTING UNIONS — Master Design System
   Updated with Lora & Merriweather Typography
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400&display=swap');

/* --- Design Tokens --- */
:root {
  /* User Palette */
  --color-gold: #c3a764;
  --color-green-light: #899c61;
  --color-green: #578b68;
  --color-teal: #33766e;
  --color-blue-dark: #295f69;
  --color-dark: #2f4858;

  --color-primary: var(--color-gold);
  --color-primary-hover: #9E8751;
  --color-secondary: var(--color-dark);
  --color-text: #333333;
  --color-text-muted: #555555;
  --color-text-light: #999999;
  --color-white: #FFFFFF;
  --color-off-white: #F8F7F4;
  --color-light-bg: #f9f9f9;
  --color-border: var(--color-gold);

  /* Typography */
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Merriweather', Georgia, serif;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* Misc */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.15);
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-white);
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6, .text-gold, .section-title, .story-title, .memory-author, .timeline-date, .quote-text {
  font-family: var(--font-heading);
  line-height: 1.2;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 1001;
}
.skip-link:focus { top: 0; }

/* --- Header & Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-dark);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 3px solid var(--color-gold);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.site-logo, .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo img, .footer-logo img {
  height: 40px;
  width: auto; /* Dejamos que tome su ancho natural */
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.site-nav .menu {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.site-nav .menu a {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xs) 0;
}

.site-nav .menu a:hover,
.site-nav .menu a.active {
  color: var(--color-gold);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-gold);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: var(--color-dark);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  padding-top: var(--space-xl);
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: all 0.3s ease-in-out;
}
.mobile-nav.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav .menu {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.mobile-nav a {
  color: white;
  font-size: 1.5rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
}

/* --- Sections & Layout --- */
.memorial-section {
  padding: var(--space-2xl) 0;
}

.section-title h2,
.memorial-section h2 {
  color: #333;
  text-align: center;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: bold;
  position: relative;
  margin: 30px 0 60px;
  font-size: 2rem;
}

.section-title h2::after,
.memorial-section h2::after {
  content: "";
  width: 100px;
  position: absolute;
  margin: 0 auto;
  height: 3px;
  background: var(--color-gold);
  left: 0;
  right: 0;
  bottom: -10px;
}

/* --- Shared Components --- */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-base);
}

.btn-primary {
  background: var(--color-gold);
  color: white;
  border-color: var(--color-gold);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.photo-item {
  border: 5px solid var(--color-gold);
  border-radius: var(--radius-sm);
  padding: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background: white;
}

.video-item {
  border: 5px solid var(--color-gold);
  border-radius: var(--radius-sm);
  padding: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background-color: #A1A5AA;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* --- Hero Layouts --- */
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-text h2 {
  text-align: left;
  margin-top: 0;
}
.hero-text h2::after { left: 0; right: auto; margin: 0; }

.hero-text p {
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
}

/* --- Intro Quote (Memorial Page) --- */
.intro-row {
  display: grid;
  grid-template-columns: 250px 1fr 250px;
  gap: var(--space-xl);
  align-items: center;
}
.intro-row .side-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.intro-quote h2 {
  font-size: 1.4rem;
  line-height: 1.6;
  text-transform: none;
  font-weight: 500;
  text-align: center;
}
.intro-quote h2::after { display: none; }

/* --- Pricing Grid --- */
.pricing-showcase {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  align-items: center;
  margin-top: var(--space-xl);
}
.pricing-showcase .pricing-image {
  max-width: 600px;
  width: 100%;
}
.pricing-showcase .pricing-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  width: 100%;
}

.pricing-card {
  background: white;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.pricing-card-header {
  background: var(--color-gold);
  color: white;
  padding: var(--space-md);
  text-align: center;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.pricing-card-body {
  padding: var(--space-lg);
  flex: 1;
  border-left: 2px solid var(--color-gold);
  border-right: 2px solid var(--color-gold);
}

.pricing-card-body ul {
  list-style: none;
}
.pricing-card-body li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}
.pricing-card-body li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--color-gold);
}

.pricing-card-footer {
  background: var(--color-gold);
  padding: var(--space-lg);
  text-align: center;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.pricing-card-footer .price { font-size: 2.2rem; font-weight: 700; color: white; margin-bottom: 10px; }
.pricing-card-footer .btn { background: white; color: var(--color-gold); width: 100%; }

/* --- Accordion --- */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}
.accordion-item {
  margin-bottom: var(--space-xs);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  background: var(--color-gold);
  color: white;
  padding: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}
.accordion-trigger::after {
  content: '+';
  font-size: 1.4rem;
}
.accordion-item.open .accordion-trigger::after { content: '−'; }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: white;
}
.accordion-item.open .accordion-content { max-height: 500px; }
.accordion-content-inner { padding: var(--space-md); }

/* --- Footer --- */
.site-footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: var(--space-2xl) 0;
  text-align: center;
  border-top: 3px solid var(--color-gold);
}
.footer-logo { display: flex; justify-content: center; margin-bottom: var(--space-lg); }
.footer-nav .menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  list-style: none;
  margin-bottom: var(--space-lg);
}
.footer-nav a { font-size: 0.9rem; font-weight: 500; }
.footer-copyright { color: var(--color-text-light); font-size: 0.8rem; }

/* --- Feature Highlights (Home) --- */
.feature-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}
.feature-item {
  text-align: center;
  padding: var(--space-lg);
  transition: var(--transition-base);
}
.feature-item:hover {
  transform: translateY(-5px);
}
.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--color-off-white);
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 2rem;
  color: var(--color-gold);
}
.feature-item h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.4rem;
}
.feature-item p {
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* --- Experience Page Specifics --- */
.experience-intro {
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}
.step-card {
  background: var(--color-off-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
}
.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--color-gold);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}

/* --- Animations --- */
.fade-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}
.fade-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile Adaptations --- */
@media (max-width: 968px) {
  .hero-content, .pricing-showcase, .pricing-grid, .intro-row {
    grid-template-columns: 1fr;
  }
  .intro-row { text-align: center; }
  .side-image { display: none; }
  .nav-toggle { display: flex; }
  .site-nav { display: none; }
  .mobile-nav { display: flex; }
}

