/* Entre Limones — style.css */
:root {
  --primary:   #8f8b1d;  /* olive — header/main elements */
  --secondary: #8bb829;  /* bright lime green */
  --accent:    #467c45;  /* dark forest green — links/buttons */
  --amber:     #a86200;  /* amber highlights */
  --text:      #4d4d4e;
  --text-light:#6d6d6e;
  --bg:        #f5f3eb;  /* warm parchment */
  --bg-white:  #ffffff;
  --border:    #d8d4b8;
  --border-light: #e7e4d2;
}

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--amber); text-decoration: underline; }
p { margin-bottom: 1.1em; }
ul, ol { margin: 0.75em 0 1em 1.5em; }
h1, h2, h3, h4 { color: var(--primary); font-weight: 700; line-height: 1.3; }
h1 { font-size: 2rem; margin-bottom: 0.5em; }
h2 { font-size: 1.5rem; margin: 1.5em 0 0.5em; }
h3 { font-size: 1.2rem; margin: 1.2em 0 0.4em; }

/* ==================
   HEADER
   ================== */
.site-header {
  background: var(--primary);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.site-logo {
  font-size: 1.7rem;
  font-weight: 700;
  font-family: Georgia, serif;
  color: #fff;
  letter-spacing: 1px;
  text-decoration: none;
}
.site-logo:hover { color: #fff9d0; text-decoration: none; }

.site-logo span {
  color: var(--secondary);
}

/* ==================
   NAVIGATION
   ================== */
.site-nav {
  background: var(--accent);
  padding: 0 24px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.site-nav ul li a {
  display: block;
  padding: 12px 16px;
  color: #fff;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.2s;
}

.site-nav ul li a:hover,
.site-nav ul li a.active {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* ==================
   PAGE WRAPPER
   ================== */
.page-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px;
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.content-main { min-width: 0; }

/* ==================
   HERO / NOTICE BANNER
   ================== */
.site-notice {
  background: var(--secondary);
  color: #fff;
  text-align: center;
  padding: 18px 24px;
  font-size: 1.1rem;
  font-weight: 600;
}
.site-notice a { color: #fff; text-decoration: underline; }
.site-notice a:hover { color: #fff9d0; }

/* ==================
   INTRO SECTION (homepage)
   ================== */
.intro-section {
  margin: 24px 0;
}

.intro-section h2 {
  color: var(--primary);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.intro-photo-group {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  align-items: flex-start;
  flex-wrap: wrap;
}

.intro-photo-group img {
  border: 3px solid var(--border);
  max-width: 200px;
}

.intro-photo-group .photo-caption {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  margin-top: 4px;
  font-style: italic;
}

.intro-text-photo {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin: 16px 0;
}

.intro-text-photo img {
  border: 3px solid var(--border);
  flex-shrink: 0;
}

/* ==================
   SIDEBAR
   ================== */
.sidebar {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 20px;
}

.sidebar-book {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-book:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-book img {
  margin: 0 auto 12px;
  max-width: 140px;
  border: 2px solid var(--border);
}

.sidebar-book h4 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 6px;
}

.sidebar-book p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.btn-book {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 3px;
  text-decoration: none;
}
.btn-book:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* ==================
   LIBROS PAGE
   ================== */
.books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 24px;
}

.book-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.book-card img {
  flex-shrink: 0;
  max-width: 100px;
  border: 2px solid var(--border);
}

.book-card-info h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 0;
}

.book-card-info p {
  font-size: 14px;
  margin-bottom: 8px;
}

.book-card-info .book-quote {
  font-style: italic;
  color: var(--accent);
  font-size: 14px;
  border-left: 3px solid var(--secondary);
  padding-left: 10px;
  margin: 8px 0;
}

/* ==================
   BLOG / ARTICLES
   ================== */
.blog-post-listing {
  margin-top: 16px;
}

.blog-post-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 24px;
}

.blog-post-item h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.blog-post-item h2 a { color: var(--primary); }
.blog-post-item h2 a:hover { color: var(--amber); }

.blog-post-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
  font-family: Arial, sans-serif;
}

.blog-post-photo-row {
  display: flex;
  gap: 16px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.blog-post-photo-row img {
  max-width: 200px;
  border: 2px solid var(--border);
}

.read-more {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

/* ==================
   SINGLE BLOG POST
   ================== */
.single-post {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 32px;
}

.single-post h1 {
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.post-subtitle {
  font-size: 1.1rem;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 20px;
  font-weight: 600;
}

.post-images-row {
  display: flex;
  gap: 16px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.post-images-row figure {
  flex: 0 0 auto;
}

.post-images-row figcaption {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  margin-top: 4px;
  font-style: italic;
}

/* ==================
   GALLERY
   ================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid var(--border);
  transition: border-color 0.2s;
}

.gallery-grid img:hover {
  border-color: var(--accent);
}

/* ==================
   CONTACT FORM
   ================== */
.contact-form {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 32px;
  max-width: 600px;
}

.contact-form h2 {
  margin-top: 0;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
  color: var(--text);
  font-family: Arial, sans-serif;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: #fafaf5;
  font-size: 15px;
  font-family: Georgia, serif;
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--secondary);
  border-color: var(--accent);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: Arial, sans-serif;
  letter-spacing: 0.5px;
}
.form-submit:hover { background: var(--accent); }

/* ==================
   BIOGRAPHY
   ================== */
.bio-section {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: start;
}

.bio-photo img {
  border: 3px solid var(--border);
  width: 100%;
}

/* ==================
   BOOK SINGLE PAGE
   ================== */
.book-single {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-top: 20px;
}

.book-single .book-cover img {
  max-width: 180px;
  border: 3px solid var(--border);
}

.book-single .book-content blockquote {
  font-style: italic;
  color: var(--accent);
  border-left: 4px solid var(--secondary);
  padding: 12px 16px;
  margin: 20px 0;
  background: var(--bg-white);
}

.book-single .book-content cite {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
}

/* ==================
   DOCX ARTICLE
   ================== */
.article-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; font-family: Arial, sans-serif; }
.article-table th { background: var(--primary); color: #fff; padding: 12px; text-align: left; }
.article-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.article-table tr:nth-child(even) td { background: #f8f9f0; }

.faq-section h3 { background: #f0f4ea; padding: 12px 16px; border-left: 4px solid var(--accent); margin: 0 0 2px; color: var(--primary); font-size: 1rem; }
.faq-section p { padding: 12px 16px; background: #fafaf7; border-left: 4px solid var(--border); margin-bottom: 16px; }

.article-content h1 { border-bottom: 2px solid var(--secondary); padding-bottom: 10px; margin-bottom: 16px; }
.article-content h2 { color: var(--primary); border-left: 4px solid var(--secondary); padding-left: 12px; }
.article-content h3 { color: var(--accent); }
.article-content ul { list-style: disc; }
.article-content li { margin-bottom: 4px; }

/* ==================
   404
   ================== */
.error-404 {
  text-align: center;
  padding: 80px 20px;
}
.error-404 .big-404 {
  font-size: 120px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-family: Georgia, serif;
}
.error-404 h2 { font-size: 28px; margin: 16px 0; }
.error-404 p { color: var(--text-light); margin-bottom: 24px; }
.btn-back {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-family: Arial, sans-serif;
  text-decoration: none;
}
.btn-back:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ==================
   FOOTER
   ================== */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 20px 24px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  margin-top: 48px;
}
.site-footer a { color: rgba(255,255,255,0.9); }
.site-footer a:hover { color: #fff; }

/* ==================
   PAGE TITLE BAR
   ================== */
.page-title-bar {
  background: var(--bg-white);
  border-bottom: 3px solid var(--secondary);
  padding: 20px 24px;
}
.page-title-bar h1 {
  max-width: 960px;
  margin: 0 auto;
  font-size: 1.6rem;
}

/* ==================
   RESPONSIVE
   ================== */
@media (max-width: 768px) {
  .site-header { padding: 12px 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-nav { padding: 0 12px; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul li a { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .page-wrap { padding: 20px 16px; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .bio-section { grid-template-columns: 1fr; }
  .bio-photo { order: -1; max-width: 260px; margin: 0 auto; }
  .book-single { flex-direction: column; }
  .intro-text-photo { flex-direction: column; }
  .blog-post-photo-row { flex-direction: column; }
}
