/*
  Hoja de estilos principal para ÚNICA — Historias irrepetibles.
  Utiliza una paleta cálida inspirada en papel antiguo y tipografías elegantes.
*/

:root {
  --primary: #5D392B;
  --secondary: #A67C52;
  --background: #FBF7F1;
  --text: #333333;
  --accent: #CFA88A;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background-color: var(--background);
  scroll-behavior: smooth;
}

header {
  background-color: var(--background);
  width: 100%;
  top: 0;
  left: 0;
  position: fixed;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
}

.nav-logo img {
  height: 48px;
}

.nav-menu {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  padding: 0.5rem;
  transition: color 0.3s;
}

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

.mobile-menu-icon {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--primary);
}

/* Hero section */
#hero {
  background: linear-gradient(
      rgba(0, 0, 0, 0.4),
      rgba(0, 0, 0, 0.4)
    ),
    url('images/hero.png') center/cover no-repeat;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 0 1rem;
}

.hero-content h1 {
  font-family: 'Merriweather', serif;
  font-size: 3rem;
  margin: 0;
}

.hero-content p {
  max-width: 700px;
  margin: 1rem auto 2rem auto;
  font-size: 1.2rem;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
}

.btn-primary:hover {
  background-color: var(--secondary);
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-secondary:hover {
  background-color: #ffffff;
  color: var(--primary);
}

/* Generic section styling */
.section {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  text-align: center;
  font-family: 'Merriweather', serif;
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section p,
.section li {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Steps in Cómo funciona */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  flex: 1 1 250px;
  background-color: #ffffff;
  border-left: 4px solid var(--secondary);
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.step h3 {
  margin-top: 0;
  color: var(--primary);
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
}

/* Cards for formatos */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.card {
  flex: 1 1 280px;
  background-color: #ffffff;
  border: 1px solid #e0d7cf;
  border-radius: 6px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card img {
  width: 64px;
  margin-bottom: 1rem;
}

.card h3 {
  font-family: 'Merriweather', serif;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Muestras */
.samples {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.sample {
  background-color: #ffffff;
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sample h3 {
  margin-top: 0;
  font-family: 'Merriweather', serif;
  color: var(--primary);
}

.more-examples {
  text-align: center;
  margin-top: 1.5rem;
}

.more-examples a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

/* Reasons list */
.reasons {
  list-style: none;
  padding-left: 0;
  max-width: 800px;
  margin: 0 auto;
}

.reasons li {
  margin: 0.5rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.reasons li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-size: 1.2rem;
  line-height: 1;
  top: 0.2rem;
}

/* Testimonios */
.testimonials {
  display: grid;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.testimonials blockquote {
  background-color: #ffffff;
  border-left: 4px solid var(--secondary);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  font-style: italic;
  margin: 0;
}

.testimonials cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  color: var(--primary);
  font-weight: 600;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-list details {
  background-color: #ffffff;
  margin-bottom: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
}

.faq-list p {
  margin-top: 0.5rem;
}

/* Blog / Diario */
.blog-list {
  max-width: 800px;
  margin: 0 auto;
}

.blog-list details {
  background-color: #ffffff;
  margin-bottom: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  border-left: 4px solid var(--secondary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.blog-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
}

.blog-list p {
  margin-top: 0.5rem;
}

/* Contact section */
.contact-section form {
  max-width: 700px;
  margin: 2rem auto 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.contact-section .form-group {
  display: flex;
  flex-direction: column;
}

.contact-section label {
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: var(--primary);
}

.contact-section input,
.contact-section select,
.contact-section textarea {
  padding: 0.6rem;
  border: 1px solid #dcd6ce;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-section textarea {
  resize: vertical;
}

.contact-section button {
  grid-column: 1 / -1;
  width: fit-content;
  justify-self: center;
  margin-top: 1rem;
}

.direct-channel {
  max-width: 700px;
  margin: 2rem auto;
  text-align: center;
  color: var(--primary);
}

.direct-channel a {
  color: var(--primary);
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: #ffffff;
  padding: 2rem 1rem;
  text-align: center;
}

footer a {
  color: #ffffff;
  text-decoration: underline;
}

/* Responsive navigation */
@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 64px;
    right: 0;
    background-color: var(--background);
    flex-direction: column;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
    padding: 1rem;
  }
  .nav-menu.open {
    display: flex;
  }
  .mobile-menu-icon {
    display: block;
  }
}