/* ================================================
   lety2E — style.css
   Estilos globales compartidos
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,900&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

:root {
  /* Marca */
  --M:        #FF00AA;   /* magenta  */
  --T:        #00DEC8;   /* turquesa */
  --P:        #4A0080;   /* morado   */

  /* Superficies */
  --bg:       #F2DBD5;
  --bg-card:  #FBF2EF;
  --bg-hover: #F5E5E0;
  --dark:     #1A0828;

  /* Texto */
  --text:     #3D2525;
  --text-2:   #6E4F4F;
  --text-3:   #A08080;

  /* Bordes */
  --border:   #E0C4BC;
  --border-s: #EDD8D0;

  /* Tipografía */
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Layout */
  --max-w:  820px;
  --nav-h:  58px;

  /* Radios */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
}

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--P); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--M); }

/* --- Tipografía --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text);
  line-height: 1.25;
}
h1 { font-size: 2rem;   margin-bottom: 0.6em; }
h2 { font-size: 1.5rem; margin-top: 2em;   margin-bottom: 0.5em; }
h3 { font-size: 1.2rem; margin-top: 1.5em; margin-bottom: 0.4em; }
p  { margin-bottom: 1em; }

/* --- Nav (inyectado por nav.js) --- */
.site-nav {
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-badge {
  width: 34px; height: 34px;
  border-radius: 7px;
  background: var(--P);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-badge span {
  font-family: var(--font-display);
  font-style: italic; font-weight: 900;
  color: var(--T);
  font-size: 14px; letter-spacing: -0.03em; line-height: 1;
}
.nav-name {
  font-family: var(--font-display);
  font-style: italic; font-weight: 900;
  font-size: 1.2rem; color: var(--M);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex; gap: 0.15rem; list-style: none;
}
.nav-links a {
  display: block; padding: 0.4rem 0.75rem;
  font-size: 0.85rem; font-weight: 400;
  color: #00DEC8; text-decoration: none;
  border-radius: var(--r-sm);
  transition: background .2s, color .2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.08);
  color: var(--M);
}
.nav-ham {
  display: none; background: none; border: none;
  cursor: pointer; color: #8060A8; padding: 0.4rem;
}
.nav-ham svg { width: 22px; height: 22px; }

@media(max-width: 640px) {
  .nav-links { display: none; }
  .nav-ham   { display: block; }
}

/* --- Main --- */
main {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  width: 100%;
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 0.82rem; color: var(--text-3);
  margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--M); }

/* --- Page header --- */
.page-header {
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-s);
}
.page-header h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--M); margin-bottom: 0.3rem;
}
.page-header p { font-size: 0.95rem; color: var(--text-2); margin: 0; }

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-s);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem;
  transition: transform .2s, border-color .2s;
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
  display: block;
}
.card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--card-color, var(--P));
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--card-color, var(--P));
}

/* --- Footer (inyectado por footer.js) --- */
.site-footer {
  background: var(--dark);
  border-top: 1px solid rgba(0,222,200,0.15);
  padding: 1.2rem 1.5rem;
  text-align: center;
  font-size: 0.76rem;
  color: var(--T);
  font-weight: 300;
  letter-spacing: 0.08em;
  margin-top: auto;
}
.site-footer strong { color: var(--M); font-weight: 500; }

/* --- Utilidades --- */
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* --- Responsive --- */
@media(max-width: 500px) {
  main { padding: 1.5rem 1rem 2rem; }
}

/* ================================================
   PORTADA (index.html)
   ================================================ */

.hero-title {
  font-family: var(--font-display);
  font-style: italic; font-weight: 900;
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--M);
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: center;
  margin-bottom: 1.8rem;
}

.hero-img {
  width: 100%;
  max-height: 90vh;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--M);
  background: var(--bg-card);
  margin-bottom: 2rem;
  display: flex; align-items: center; justify-content: center;
}
.hero-img img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
}
.hero-img-ph {
  padding: 4rem 2rem; text-align: center;
}
.hero-img-ph span {
  font-family: var(--font-display); font-style: italic;
  font-size: 3rem; color: var(--M); opacity: 0.25;
}
.hero-img-ph p { font-size: 0.78rem; color: var(--text-3); margin-top: 0.5rem; }

.bio-center {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-s);
}
.bio-text {
  font-size: 1.1rem; color: var(--text-2);
  line-height: 1.9; margin-bottom: 0.6rem;
}
.bio-firma {
  font-size: 0.75rem; font-style: italic;
  color: var(--T); letter-spacing: 0.06em;
}
.bio-firma strong { color: var(--M); font-style: normal; font-weight: 600; }

.btns-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.btns-bottom {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}
.btns-bottom .nbtn {
  width: calc((100% - 1.6rem) / 3);
}

.nbtn {
  font-family: var(--font-body);
  text-decoration: none; color: var(--text);
  background: var(--bg-card); border-radius: 10px;
  padding: 0.85rem 1rem; font-size: 0.88rem; font-weight: 500;
  border: 2px solid var(--btn-color, var(--border));
  transition: transform .18s, background .18s, color .18s;
  position: relative; overflow: hidden;
  display: block; text-align: center;
}
.nbtn::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--btn-color, var(--border));
}
.nbtn:hover {
  transform: translateY(-3px);
  background: var(--btn-bg, var(--bg-hover));
  color: var(--btn-color);
}

.nb-esc   { --btn-color: #A07020;  --btn-bg: #FFF5DC; }
.nb-cant  { --btn-color: var(--M); --btn-bg: #FFE8F6; }
.nb-playa { --btn-color: #0080AA;  --btn-bg: #E0F4FF; border-color: #0080AA; }
.nb-playa::before { background: #0080AA; }
.nb-lm    { --btn-color: var(--P); --btn-bg: #F0E8FF; }
.nb-apr   { --btn-color: #008878;  --btn-bg: #E0FAF6; border-color: var(--T); }
.nb-apr::before { background: var(--T); }

/* Animaciones portada */
@keyframes up { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
.hero-title  { animation: up .5s .05s ease both; }
.hero-img    { animation: up .5s .1s ease both; }
.bio-center  { animation: up .5s .2s ease both; }
.btns-top    { animation: up .4s .3s ease both; }
.btns-bottom { animation: up .4s .38s ease both; }

@media(max-width: 500px) {
  .btns-top    { grid-template-columns: 1fr; }
  .btns-bottom { flex-direction: column; }
  .btns-bottom .nbtn { width: 100%; }
}

/* Asegurar que nbtn siempre se vea como botón */
.nbtn {
  display: block !important;
  border: 2px solid var(--btn-color, var(--border)) !important;
  background: var(--bg-card) !important;
  border-radius: 10px !important;
  padding: 0.85rem 1rem !important;
  text-align: center !important;
  color: var(--text) !important;
}
