/* =========================================================
   MEEJORESOPCIONESONLINE.COM — Opciones Online Revista
   Warm Magazine Palette
   ========================================================= */

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', Times, serif;
  background: #fff8ed;
  color: #2e241c;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #b56a50;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

a:hover {
  color: #743a3a;
}

ul { list-style: none; }

/* --- CONTAINER --- */
.mee-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   HEADER — Centered Brand (HeaderFooter CenteredBrand)
   ========================================================= */
.mee-header {
  background: #fff8ed;
  border-bottom: 1px solid #f6ead8;
}

.mee-header-top {
  background: #f6ead8;
  text-align: center;
  padding: 6px 16px;
}

.mee-header-top-text {
  font-size: 0.65rem;
  color: #743a3a;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mee-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.mee-logo-link {
  text-decoration: none;
  display: block;
}

.mee-logo {
  max-width: 280px;
  height: auto;
}

/* --- Burger --- */
.mee-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
}

.mee-burger-line {
  display: block;
  width: 26px;
  height: 2px;
  background: #2e241c;
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 1px;
}

.mee-burger.active .mee-burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mee-burger.active .mee-burger-line:nth-child(2) {
  opacity: 0;
}
.mee-burger.active .mee-burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Navigation --- */
.mee-nav-list {
  display: flex;
  gap: 32px;
  justify-content: center;
  padding: 12px 0 4px;
}

.mee-nav-link {
  font-size: 0.85rem;
  color: #2e241c;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.mee-nav-link:hover {
  color: #b56a50;
  border-bottom-color: #d6b06d;
}

/* =========================================================
   HERO — Editorial Magazine
   ========================================================= */
.mee-hero {
  background: linear-gradient(180deg, #fff8ed 0%, #f6ead8 100%);
  padding: 60px 0 40px;
  border-bottom: 1px solid #e0d0b8;
}

.mee-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.mee-hero h1 {
  font-size: 2.4rem;
  font-weight: normal;
  color: #2e241c;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 900px;
}

.mee-hero-intro {
  font-size: 1.05rem;
  color: #5a4a3a;
  line-height: 1.8;
  max-width: 800px;
  margin-bottom: 40px;
}

.mee-hero-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mee-hero-panel-featured {
  background: #fff8ed;
  border: 1px solid #e0d0b8;
  border-radius: 8px;
  padding: 28px;
}

.mee-hero-panel-featured h3 {
  font-size: 1.1rem;
  color: #743a3a;
  margin-bottom: 10px;
  font-weight: normal;
}

.mee-hero-panel-featured p {
  font-size: 0.9rem;
  color: #5a4a3a;
  line-height: 1.7;
}

.mee-hero-panels-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mee-hero-panel-small {
  background: #fff8ed;
  border: 1px solid #f1d7c5;
  border-radius: 8px;
  padding: 20px;
  flex: 1;
}

.mee-hero-panel-small h4 {
  font-size: 0.9rem;
  color: #b56a50;
  margin-bottom: 6px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mee-hero-panel-small p {
  font-size: 0.85rem;
  color: #5a4a3a;
  line-height: 1.6;
}

/* =========================================================
   CARDS SECTION
   ========================================================= */
.mee-cards {
  padding: 48px 0;
  background: #fff8ed;
}

.mee-cards-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.mee-cards-title {
  font-size: 1.5rem;
  font-weight: normal;
  color: #2e241c;
  text-align: center;
  margin-bottom: 8px;
}

.mee-cards-subtitle {
  text-align: center;
  color: #5a4a3a;
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.mee-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  background: #fff8ed;
  border: 1px solid #f1d7c5;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.3s;
}

.mee-card:hover {
  box-shadow: 0 4px 20px rgba(181, 106, 80, 0.1);
}

.mee-card.featured {
  border-color: #d6b06d;
  background: linear-gradient(135deg, #fff8ed 0%, #f6ead8 100%);
}

.mee-card-image {
  width: 200px;
  height: 120px;
  border-radius: 6px;
  overflow: hidden;
}

.mee-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f6ead8;
}

.mee-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mee-card-title {
  font-size: 1.05rem;
  color: #2e241c;
  font-weight: normal;
  margin-bottom: 4px;
}

.mee-card-meta {
  font-size: 0.75rem;
  color: #b56a50;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.mee-card-text {
  font-size: 0.85rem;
  color: #5a4a3a;
  line-height: 1.7;
  margin-bottom: 12px;
}

.mee-card-criteria {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.mee-card-criteria span {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: #f6ead8;
  color: #743a3a;
  border: 1px solid #f1d7c5;
}

.mee-card-btn {
  display: inline-block;
  font-size: 0.8rem;
  color: #fff8ed;
  background: #b56a50;
  padding: 8px 20px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: Georgia, 'Times New Roman', Times, serif;
  align-self: flex-start;
  transition: background 0.2s;
}

.mee-card-btn:hover {
  background: #743a3a;
  color: #fff8ed;
}

/* =========================================================
   EDITORIAL SECTIONS
   ========================================================= */
.mee-section {
  padding: 48px 0;
  border-bottom: 1px solid #f6ead8;
}

.mee-section:nth-child(even) {
  background: #f6ead8;
}

.mee-section-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.mee-section h2 {
  font-size: 1.6rem;
  font-weight: normal;
  color: #2e241c;
  margin-bottom: 16px;
  line-height: 1.3;
}

.mee-section h3 {
  font-size: 1.15rem;
  font-weight: normal;
  color: #743a3a;
  margin-top: 24px;
  margin-bottom: 10px;
}

.mee-section p {
  font-size: 0.95rem;
  color: #5a4a3a;
  line-height: 1.8;
  margin-bottom: 14px;
}

.mee-section ul {
  margin: 12px 0 16px 24px;
  list-style: disc;
}

.mee-section ul li {
  font-size: 0.92rem;
  color: #5a4a3a;
  line-height: 1.7;
  margin-bottom: 6px;
}

/* --- FAQ Section --- */
.mee-faq-item {
  border-bottom: 1px solid #f1d7c5;
  padding: 16px 0;
}

.mee-faq-question {
  font-size: 1rem;
  color: #2e241c;
  font-weight: normal;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 4px 0;
  font-family: Georgia, serif;
}

.mee-faq-question::after {
  content: '+';
  font-size: 1.2rem;
  color: #b56a50;
  transition: transform 0.3s;
}

.mee-faq-question.open::after {
  content: '−';
}

.mee-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.mee-faq-answer.open {
  max-height: 500px;
  padding-top: 10px;
}

.mee-faq-answer p {
  font-size: 0.88rem;
  color: #5a4a3a;
  line-height: 1.7;
}

/* --- Editorial Note --- */
.mee-editorial-note {
  background: linear-gradient(135deg, #fff8ed 0%, #f6ead8 100%);
  border: 1px solid #d6b06d;
  border-radius: 8px;
  padding: 28px;
  margin-top: 20px;
}

.mee-editorial-note h3 {
  margin-top: 0;
  color: #743a3a;
}

.mee-editorial-note p {
  font-size: 0.9rem;
}

/* =========================================================
   PAGE HEADER (secondary pages)
   ========================================================= */
.mee-page-hero {
  background: #f6ead8;
  padding: 48px 0 36px;
  border-bottom: 1px solid #e0d0b8;
}

.mee-page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.mee-page-hero h1 {
  font-size: 1.8rem;
  font-weight: normal;
  color: #2e241c;
  margin-bottom: 10px;
}

.mee-page-hero p {
  font-size: 0.95rem;
  color: #5a4a3a;
  line-height: 1.7;
}

.mee-page-content {
  padding: 40px 0 60px;
  background: #fff8ed;
}

.mee-page-content-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.mee-page-content h2 {
  font-size: 1.4rem;
  font-weight: normal;
  color: #2e241c;
  margin-top: 32px;
  margin-bottom: 12px;
}

.mee-page-content h3 {
  font-size: 1.1rem;
  font-weight: normal;
  color: #743a3a;
  margin-top: 24px;
  margin-bottom: 8px;
}

.mee-page-content p {
  font-size: 0.95rem;
  color: #5a4a3a;
  line-height: 1.8;
  margin-bottom: 14px;
}

.mee-page-content ul {
  margin: 12px 0 16px 24px;
  list-style: disc;
}

.mee-page-content ul li {
  font-size: 0.92rem;
  color: #5a4a3a;
  line-height: 1.7;
  margin-bottom: 6px;
}

/* =========================================================
   TRANSITION PAGE
   ========================================================= */
.mee-transition {
  padding: 40px 0 60px;
  background: #fff8ed;
  min-height: 50vh;
}

.mee-transition-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.mee-transition h1 {
  font-size: 1.5rem;
  font-weight: normal;
  color: #2e241c;
  margin-bottom: 20px;
}

.mee-transition h2 {
  font-size: 1.2rem;
  font-weight: normal;
  color: #743a3a;
  margin-top: 28px;
  margin-bottom: 10px;
}

.mee-transition p {
  font-size: 0.92rem;
  color: #5a4a3a;
  line-height: 1.8;
  margin-bottom: 14px;
}

.mee-transition-loading {
  background: #f6ead8;
  border: 1px solid #e0d0b8;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  margin: 28px 0;
}

.mee-transition-loading p {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.mee-transition-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid #f1d7c5;
  border-top-color: #b56a50;
  border-radius: 50%;
  animation: mee-spin 0.8s linear infinite;
  margin-bottom: 12px;
}

@keyframes mee-spin {
  to { transform: rotate(360deg); }
}

.mee-transition-btn {
  display: inline-block;
  font-size: 0.85rem;
  color: #fff8ed;
  background: #b56a50;
  padding: 10px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-family: Georgia, serif;
}

.mee-transition-btn:hover {
  background: #743a3a;
  color: #fff8ed;
}

.mee-transition-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Impressions --- */
.mee-impression {
  border-left: 3px solid #d6b06d;
  padding: 12px 16px;
  margin: 12px 0;
  background: #f6ead8;
  border-radius: 0 6px 6px 0;
}

.mee-impression p {
  font-size: 0.88rem;
  font-style: italic;
  margin-bottom: 0;
}

/* =========================================================
   CONTACT FORM
   ========================================================= */
.mee-form {
  margin-top: 20px;
}

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

.mee-form-group label {
  display: block;
  font-size: 0.85rem;
  color: #2e241c;
  margin-bottom: 4px;
}

.mee-form-group input,
.mee-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: Georgia, serif;
  border: 1px solid #e0d0b8;
  border-radius: 6px;
  background: #fff8ed;
  color: #2e241c;
  transition: border-color 0.2s;
}

.mee-form-group input:focus,
.mee-form-group textarea:focus {
  outline: none;
  border-color: #b56a50;
}

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

.mee-form-btn {
  font-size: 0.85rem;
  color: #fff8ed;
  background: #b56a50;
  padding: 10px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: Georgia, serif;
  transition: background 0.2s;
}

.mee-form-btn:hover {
  background: #743a3a;
}

/* =========================================================
   FOOTER
   ========================================================= */
.mee-footer {
  background: #2e241c;
  color: #e0d0b8;
  padding: 48px 0 0;
}

.mee-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.mee-footer-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 12px;
  filter: brightness(1.8);
}

.mee-footer-desc {
  font-size: 0.82rem;
  color: #c0b0a0;
  line-height: 1.6;
}

.mee-footer-groups {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.mee-footer-group h4 {
  font-size: 0.82rem;
  color: #d6b06d;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-weight: normal;
}

.mee-footer-links li {
  margin-bottom: 8px;
}

.mee-footer-links a {
  font-size: 0.8rem;
  color: #c0b0a0;
  text-decoration: none;
  transition: color 0.2s;
}

.mee-footer-links a {
  cursor: pointer;
}

.mee-footer-links a:hover {
  color: #d6b06d;
  text-decoration: underline;
}

.mee-footer-resources li a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mee-footer-resource-img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  flex-shrink: 0;
}

.mee-footer-bottom {
  margin-top: 40px;
  padding: 20px 24px;
  border-top: 1px solid #4a3a2a;
  text-align: center;
}

.mee-footer-disclosure {
  font-size: 0.78rem;
  color: #a09080;
  line-height: 1.6;
}

/* =========================================================
   AGE POPUP
   ========================================================= */
.mee-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(46, 36, 28, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.mee-popup-overlay.active {
  display: flex;
}

.mee-popup {
  background: #fff8ed;
  border-radius: 12px;
  padding: 36px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.mee-popup h2 {
  font-size: 1.2rem;
  color: #2e241c;
  font-weight: normal;
  margin-bottom: 12px;
}

.mee-popup p {
  font-size: 0.88rem;
  color: #5a4a3a;
  line-height: 1.6;
  margin-bottom: 24px;
}

.mee-popup-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.mee-popup-btn {
  font-size: 0.85rem;
  padding: 10px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: Georgia, serif;
  transition: background 0.2s;
}

.mee-popup-btn-primary {
  background: #b56a50;
  color: #fff8ed;
}

.mee-popup-btn-primary:hover {
  background: #743a3a;
}

.mee-popup-btn-secondary {
  background: #f6ead8;
  color: #2e241c;
}

.mee-popup-btn-secondary:hover {
  background: #e0d0b8;
}

/* =========================================================
   TURNSTILE OVERLAY — Cloudflare verification with blur
   ========================================================= */
.mee-turnstile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.mee-turnstile-overlay.active {
  display: flex;
}

.mee-turnstile-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(46, 36, 28, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mee-turnstile-modal {
  position: relative;
  background: #fff8ed;
  border-radius: 12px;
  padding: 36px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  z-index: 1;
}

.mee-turnstile-modal-inner h3 {
  font-size: 1.15rem;
  color: #2e241c;
  font-weight: normal;
  margin-bottom: 10px;
}

.mee-turnstile-modal-inner p {
  font-size: 0.85rem;
  color: #5a4a3a;
  line-height: 1.6;
  margin-bottom: 20px;
}

#mee-turnstile-widget {
  display: flex;
  justify-content: center;
  min-height: 70px;
}

.mee-turnstile-error {
  font-size: 0.8rem;
  color: #c0392b;
  margin-top: 12px;
  min-height: 1.2em;
}

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.mee-cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #2e241c;
  color: #e0d0b8;
  padding: 16px 24px;
  z-index: 9998;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.mee-cookie-banner.active {
  display: block;
}

.mee-cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.mee-cookie-inner p {
  font-size: 0.8rem;
  color: #c0b0a0;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

.mee-cookie-inner p a {
  color: #d6b06d;
}

.mee-cookie-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.mee-cookie-btn {
  font-size: 0.78rem;
  padding: 6px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-family: Georgia, serif;
  transition: background 0.2s;
}

.mee-cookie-btn-accept {
  background: #b56a50;
  color: #fff8ed;
}

.mee-cookie-btn-accept:hover {
  background: #743a3a;
}

.mee-cookie-btn-reject {
  background: #4a3a2a;
  color: #c0b0a0;
}

.mee-cookie-btn-reject:hover {
  background: #5a4a3a;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Mobile: all grids become 1 column */
@media (max-width: 768px) {
  html { font-size: 16px; }

  .mee-header-inner {
    flex-direction: row;
    justify-content: center;
    padding: 14px 16px;
  }

  .mee-logo { max-width: 200px; }

  .mee-burger { display: block; }

  .mee-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff8ed;
    border-bottom: 1px solid #f1d7c5;
    z-index: 99;
  }

  .mee-nav.active { display: block; }

  .mee-nav-list {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .mee-nav-link {
    display: block;
    padding: 12px 24px;
    border-bottom: none;
  }

  .mee-hero h1 { font-size: 1.6rem; }
  .mee-hero-panels { grid-template-columns: 1fr; }

  .mee-card {
    grid-template-columns: 1fr;
  }
  .mee-card-image {
    width: 100%;
    height: 150px;
  }

  .mee-footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .mee-footer-groups {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mee-cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Inline grid override for mobile */
@media (max-width: 768px) {
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .mee-card {
    grid-template-columns: 160px 1fr;
  }
  .mee-card-image {
    width: 160px;
    height: 100px;
  }
  .mee-footer-groups {
    grid-template-columns: 1fr 1fr;
  }
}

/* Desktop 3+2 card layout */
@media (min-width: 1025px) {
  .mee-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .mee-card.featured {
    grid-column: 1 / -1;
  }
}
