/*
Theme Name: Solo por Hoy
Theme URI: https://solo-por-hoy.local
Author: Para Mariana
Author URI: https://solo-por-hoy.local
Description: Tema autoadministrable para "Solo por hoy". Frase diaria, dashboard y agenda de citas. Todo el contenido se edita desde el panel de WordPress (menús "Frases" y "Solo por Hoy"). Diseño aprobado: no modificar valores estéticos.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: solo-por-hoy
*/

:root {
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #6b6b6b;
  --line: #ececec;
  --accent: #2d4a3e;
  --accent-soft: #f4f1ec;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 24px 40px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
}
.auth-link {
  font-size: 13px; font-weight: 500; letter-spacing: 0.5px;
  color: var(--ink); text-decoration: none;
  padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 100px;
  transition: all 0.3s ease;
  cursor: pointer; background: white;
}
.auth-link:hover { background: var(--ink); color: white; border-color: var(--ink); }
.brand {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 22px; font-weight: 400;
  color: var(--ink); letter-spacing: 0.5px;
}

.screen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 100px 24px 60px;
  position: relative;
}
.screen::before {
  content: ''; position: absolute; top: 20%; left: 10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(45,74,62,0.04) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.screen::after {
  content: ''; position: absolute; bottom: 15%; right: 8%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(45,74,62,0.03) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}

.card {
  background: var(--card); border-radius: 24px;
  padding: 80px 70px; max-width: 620px; width: 100%;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06), 0 24px 60px rgba(0,0,0,0.08);
  animation: lift 0.8s cubic-bezier(.2,.8,.2,1);
}
@keyframes lift { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.eyebrow {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 32px; text-align: center;
  font-weight: 500;
}
.eyebrow span { display: inline-block; padding: 0 16px; position: relative; }
.eyebrow span::before, .eyebrow span::after {
  content: ''; position: absolute; top: 50%;
  width: 30px; height: 1px; background: var(--line);
}
.eyebrow span::before { right: 100%; }
.eyebrow span::after { left: 100%; }

.quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px; line-height: 1.25; font-weight: 400;
  text-align: center; color: var(--ink);
  min-height: 160px;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease;
}
.quote.fading { opacity: 0; }
.quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; color: var(--accent);
  font-size: 56px; line-height: 0; vertical-align: -8px; margin: 0 4px;
}

.card-footer {
  margin-top: 48px;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.next-btn {
  background: none; border: none;
  font-family: 'Inter', sans-serif;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-soft); cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  transition: color 0.3s ease;
}
.next-btn:hover { color: var(--ink); }
.next-btn:hover .arrow { transform: translateX(4px); }
.arrow { transition: transform 0.3s ease; display: inline-block; }

.share-wrap { position: relative; }
.share-btn {
  background: var(--accent-soft); border: none;
  width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.share-btn:hover { background: var(--accent); transform: scale(1.05); }
.share-btn:hover svg path { stroke: white; }
.share-btn svg path { stroke: var(--accent); transition: stroke 0.3s ease; }

.share-menu {
  position: absolute; bottom: calc(100% + 12px); right: 0;
  background: white; border-radius: 14px; padding: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 16px 40px rgba(0,0,0,0.1);
  display: flex; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.25s ease;
}
.share-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.share-option {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; background: transparent; border: none;
  transition: background 0.2s ease;
}
.share-option:hover { background: var(--accent-soft); }

/* DASHBOARD */
.dashboard {
  display: none; min-height: 100vh; padding: 120px 60px 60px;
  animation: fadeIn 0.5s ease;
}
.dashboard.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.dash-hero { max-width: 900px; margin: 0 auto 80px; text-align: center; }
.dash-greeting {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 20px;
}
.dash-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px; line-height: 1.05; font-weight: 300;
  color: var(--ink); margin-bottom: 24px;
}
.dash-title em { font-style: italic; color: var(--accent); }
.dash-sub {
  font-size: 16px; color: var(--ink-soft);
  max-width: 480px; margin: 0 auto; line-height: 1.6;
}

.nav-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.nav-card {
  padding: 48px 40px; border-radius: 20px;
  background: white; border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(.2,.8,.2,1);
  position: relative; overflow: hidden;
}
.nav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  border-color: var(--accent);
}
.nav-card-num {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 14px; color: var(--accent); margin-bottom: 32px;
}
.nav-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 400; color: var(--ink); margin-bottom: 12px;
}
.nav-card-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.nav-card-arrow {
  position: absolute; top: 40px; right: 40px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.nav-card:hover .nav-card-arrow { background: var(--accent); }
.nav-card:hover .nav-card-arrow svg path { stroke: white; }

/* SUB-PAGES (Sobre Mariana, Cita, etc) */
.subpage {
  display: none; min-height: 100vh;
  padding: 120px 40px 80px;
  animation: fadeIn 0.5s ease;
}
.subpage.active { display: block; }

.back-btn {
  position: fixed; top: 24px; left: 40px;
  background: white; border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 500;
  cursor: pointer; z-index: 110;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.3s ease;
}
.back-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }

.subpage-inner { max-width: 780px; margin: 0 auto; }

.subpage-eyebrow {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px; text-align: center;
  font-weight: 500;
}
.subpage-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px; line-height: 1.05; font-weight: 300;
  text-align: center; margin-bottom: 48px;
}
.subpage-title em { font-style: italic; color: var(--accent); }

/* About Mariana */
.about-portrait {
  width: 160px; height: 160px; border-radius: 50%;
  margin: 0 auto 40px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #e8e0d4 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 72px; color: var(--accent);
  box-shadow: 0 20px 50px rgba(45,74,62,0.15);
}
.about-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; line-height: 1.5; font-weight: 400;
  text-align: center; color: var(--ink);
  max-width: 640px; margin: 0 auto 40px;
}
.about-pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 60px;
}
.pillar {
  padding: 32px 24px; border-radius: 16px;
  background: var(--accent-soft); text-align: center;
}
.pillar-icon { font-size: 32px; margin-bottom: 16px; }
.pillar-title {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 22px; margin-bottom: 8px; color: var(--accent);
}
.pillar-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

/* CITA / CALENDAR */
.cita-intro {
  text-align: center; max-width: 580px; margin: 0 auto 56px;
  color: var(--ink-soft); font-size: 16px; line-height: 1.6;
}

.pricing-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #1f3a30 100%);
  color: white; border-radius: 20px;
  padding: 36px 40px; margin: 0 auto 56px;
  max-width: 680px;
  display: grid; grid-template-columns: 1fr 1px 1fr; gap: 32px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(45,74,62,0.25);
}
.price-block { text-align: center; }
.price-label {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  opacity: 0.7; margin-bottom: 8px;
}
.price-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px; font-weight: 400;
}
.price-divider { background: rgba(255,255,255,0.2); height: 60px; }

.calendar {
  background: white; border-radius: 20px;
  padding: 36px; max-width: 680px; margin: 0 auto;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.cal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px;
}
.cal-month {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 400;
}
.cal-nav { display: flex; gap: 8px; }
.cal-nav button {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: white;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.cal-nav button:hover { background: var(--accent-soft); border-color: var(--accent); }

.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day-name {
  text-align: center; font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink-soft);
  padding: 12px 0; font-weight: 500;
}
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 14px; cursor: pointer;
  transition: all 0.2s ease; border: 1px solid transparent;
  position: relative;
}
.cal-day:hover:not(.disabled) {
  background: var(--accent-soft); border-color: var(--accent);
}
.cal-day.disabled { color: #ccc; cursor: default; }
.cal-day.today { font-weight: 600; color: var(--accent); }
.cal-day.today::after {
  content: ''; position: absolute; bottom: 4px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
.cal-day.selected {
  background: var(--accent); color: white; font-weight: 500;
}
.cal-day.available { font-weight: 500; }

.time-slots {
  margin-top: 32px; padding-top: 28px;
  border-top: 1px solid var(--line);
  display: none;
}
.time-slots.active { display: block; }
.time-slots-title {
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 16px; text-align: center;
}
.time-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.time-slot {
  padding: 12px; border: 1px solid var(--line); border-radius: 10px;
  background: white; cursor: pointer; text-align: center;
  font-size: 13px; transition: all 0.2s ease;
}
.time-slot:hover { border-color: var(--accent); background: var(--accent-soft); }
.time-slot.selected { background: var(--accent); color: white; border-color: var(--accent); }

.book-btn {
  width: 100%; padding: 16px;
  background: var(--accent); color: white;
  border: none; border-radius: 12px;
  font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; margin-top: 24px;
  transition: all 0.3s ease;
  opacity: 0.5; pointer-events: none;
}
.book-btn.ready { opacity: 1; pointer-events: auto; }
.book-btn.ready:hover { background: #1f3a30; transform: translateY(-1px); }

/* MODAL */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: white; border-radius: 20px;
  padding: 56px 48px; max-width: 440px; width: 90%;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}
.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.modal-close:hover { background: var(--accent-soft); }
.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 400; text-align: center; margin-bottom: 8px;
}
.modal-sub {
  text-align: center; color: var(--ink-soft);
  font-size: 14px; margin-bottom: 36px;
}
.social-btn {
  width: 100%; padding: 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: white;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  cursor: pointer; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all 0.2s ease;
}
.social-btn:hover { background: var(--accent-soft); border-color: var(--accent); }
.modal-toggle { text-align: center; margin-top: 24px; font-size: 13px; color: var(--ink-soft); }
.modal-toggle a { color: var(--accent); text-decoration: none; font-weight: 500; cursor: pointer; }

/* SUCCESS TOAST */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--accent); color: white;
  padding: 16px 28px; border-radius: 14px;
  box-shadow: 0 20px 50px rgba(45,74,62,0.3);
  font-size: 14px; font-weight: 500;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
  z-index: 2000;
}
.toast.show { transform: translateX(-50%) translateY(0); }

@media (max-width: 640px) {
  .topbar { padding: 18px 20px; }
  .card { padding: 50px 30px; }
  .quote { font-size: 30px; }
  .dashboard { padding: 100px 20px 40px; }
  .dash-title { font-size: 48px; }
  .nav-grid { grid-template-columns: 1fr; }
  .nav-card { padding: 36px 28px; }
  .subpage { padding: 100px 20px 40px; }
  .subpage-title { font-size: 44px; }
  .about-text { font-size: 20px; }
  .about-pillars { grid-template-columns: 1fr; }
  .pricing-banner {
    grid-template-columns: 1fr; gap: 20px; padding: 28px 24px;
  }
  .price-divider { display: none; }
  .calendar { padding: 24px; }
  .time-grid { grid-template-columns: repeat(2, 1fr); }
  .back-btn { left: 20px; }
}

/* Ajuste cuando WordPress muestra su barra de administración (solo usuarios con sesión iniciada).
   No afecta a las visitas públicas. */
.admin-bar .topbar { top: 32px; }
.admin-bar .back-btn { top: 56px; }
@media screen and (max-width: 782px) {
  .admin-bar .topbar { top: 46px; }
  .admin-bar .back-btn { top: 70px; }
}
