/* Paleta basada en la app (Casual) */
:root{
  --bg: #F7F3EB;              /* CasualBackground */
  --fg: #1F2328;              /* CasualTextPrimary */
  --fg-muted: #6E7681;        /* CasualTextSecondary */
  --accent: #BFD4EC;          /* CasualAccent */
  --emphasis: #E7C9A3;        /* CasualEmphasis */
  --success: #D7E6C6;         /* CasualSuccess */
  --warning: #E9E3C8;         /* CasualWarning */
  --error: #E7D2D0;           /* CasualError */
  --card: #FFFFFF;            /* CasualForeground */
  --line: rgba(0,0,0,.08);
  --shadow: 0 18px 45px rgba(17, 20, 24, .10);
  --shadow2: 0 10px 22px rgba(17, 20, 24, .08);

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --max: 1120px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "SF Pro Text", "SF Pro Display", Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; text-underline-offset:3px; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px 72px;
}

header{
  position: sticky;
  top:0;
  z-index:20;
  background: rgba(247,243,235,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 160px;
}

.logo{
  width:30px;
  height:30px;
  border-radius:12px;
  background:
    radial-gradient(14px 14px at 28% 30%, rgba(191,212,236,.95), rgba(191,212,236,0) 68%),
    radial-gradient(16px 16px at 70% 40%, rgba(231,201,163,.85), rgba(231,201,163,0) 70%),
    radial-gradient(16px 16px at 55% 78%, rgba(215,230,198,.75), rgba(215,230,198,0) 72%),
    linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.45));
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 22px rgba(17,20,24,.08);
}

.brand .title{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.brand strong{
  font-size:14px;
  letter-spacing:.02em;
}
.brand span{
  font-size:12px;
  color: var(--fg-muted);
}

.brand strong{
  font-size: 16px;        /* antes: 14px */
  font-weight: 600;       /* mantiene elegancia */
  letter-spacing: .01em;  /* un poco más compacto */
}
nav{
  display:none;
  gap:18px;
  font-size:13px;
  color: var(--fg-muted);
  white-space: nowrap;
}

.actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  min-width: 160px;
}

.btn{
  padding:10px 16px;
  border-radius:999px;
  font-size:13px;
  border:1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow2);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
  user-select:none;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(17,20,24,.10);
  text-decoration:none;
}
.btn.primary{
  background: var(--accent);
  border-color: transparent;
}
.btn.ghost{
  background: transparent;
  box-shadow: none;
}
.btn.ghost:hover{
  background: rgba(255,255,255,.55);
  box-shadow: var(--shadow2);
}

/* Sections */
section{
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
  color: var(--fg-muted);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1{
  font-size: clamp(36px, 6.8vw, 56px);
  line-height: 1.06;
  margin: 0 0 12px;
  letter-spacing:-.04em;
}
h2{
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.18;
  margin: 0 0 10px;
  letter-spacing:-.03em;
}

.lead{
  max-width: none;
  margin: 0 0 22px;
  color: var(--fg-muted);
  font-size: 15.5px;
}

/* Hero */
.hero{
  border-top: none;
  padding-top: 34px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
}

.hero p{
  max-width: 55ch;
  margin: 0 0 18px;
  color: var(--fg-muted);
  font-size: 16px;
}

.hero-cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.micro{
  margin-top: 14px;
  display:flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  color: var(--fg-muted);
  font-size: 12px;
}
.micro .tag{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.55);
}

/* Visual stack */
.visual{
  position: relative;
  min-height: 520px;
}

.stack{
  position: relative;
  height: 520px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(800px 240px at 30% 10%, rgba(191,212,236,.45), rgba(191,212,236,0) 60%),
    radial-gradient(700px 240px at 70% 15%, rgba(231,201,163,.38), rgba(231,201,163,0) 62%),
    radial-gradient(700px 240px at 55% 92%, rgba(215,230,198,.35), rgba(215,230,198,0) 60%),
    rgba(255,255,255,.42);
  box-shadow: var(--shadow);
  overflow:hidden;
  padding: 18px;
}

.shot{
  position:absolute;
  inset:auto;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 22px 55px rgba(17,20,24,.16);
  overflow:hidden;
  transform-origin: center;
}

.shot img{
  display:block;
  width:100%;
  height:100%;
  object-fit: cover;
}

/* Main hero shot (Detalle recuerdo) */
.shot.primary{
  left: 16px;
  right: 16px;
  top: 18px;
  height: 470px;
  transform: rotate(-1.2deg);
}

/* Secondary shot (Lista recuerdos) */
.shot.secondary{
  width: 52%;
  height: 300px;
  right: -10px;
  bottom: -16px;
  transform: rotate(3.2deg);
  box-shadow: 0 18px 44px rgba(17,20,24,.14);
}

.shot .label{
  position:absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(31,35,40,.85);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(8px);
}

/* Image rail (section visuals) */
.rail{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}

figure{
  margin:0;
}

.imgcard{
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.55);
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.imgcard img{
  display:block;
  width:100%;
  height:auto;
}
/* Qué es — mostrar imagen completa, sin recorte */
#what .imgcard img{
  max-height: 520px;
  width: 100%;
  object-fit: contain;
  background: rgba(0,0,0,.02);
}
#what .imgcard{
  box-shadow: var(--shadow2);
}
.caption{
  padding: 12px 14px 14px;
  color: var(--fg-muted);
  font-size: 13px;
  border-top: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.65);
}
/* Más que una foto — mostrar imagen completa, sin recorte */
#mas-que-una-foto .imgcard img{
  max-height: 520px;
  width: 100%;
  object-fit: contain;
  background: rgba(0,0,0,.02);
}
.caption strong{
  color: var(--fg);
  font-weight: 600;
}

/* Features cards */
.features{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

.card{
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow2);
}
.card h3{
  margin:0 0 6px;
  font-size: 15px;
  letter-spacing: -.01em;
}
.card p{
  margin:0;
  color: var(--fg-muted);
  font-size: 13.5px;
}

/* Features — imagen contenida dentro de la card */
.card .feature-media{
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,.02);
  border: 1px solid var(--line);
}

.card .feature-media img{
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  background: rgba(0,0,0,.02);
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.60);
  color: var(--fg-muted);
  font-size: 12px;
}
.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--emphasis);
  border: 1px solid rgba(0,0,0,.06);
}

/* Premium */
.premium-box{
  margin-top: 16px;
  background: rgba(255,255,255,.70);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow2);
}

.premium-bullet{
  display:flex;
  gap:12px;
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,.06);
  font-size: 14px;
  align-items:flex-start;
}
.premium-bullet:first-of-type{ border-top:none; padding-top: 0; }

.icon{
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: var(--accent);
  border: 1px solid rgba(0,0,0,.06);
  flex: 0 0 auto;
  display:grid;
  place-items:center;
}
.icon svg{ width: 18px; height: 18px; opacity: .88; }

/* Premium — Accordion */

.premium-accordion{
  margin-top: 18px;
  background: rgba(255,255,255,.70);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow2);
  overflow: hidden;
}

.premium-accordion details{
  border-top: 1px solid rgba(0,0,0,.06);
}

.premium-accordion details:first-of-type{
  border-top: none;
}

.premium-accordion summary{
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}

.premium-accordion summary::-webkit-details-marker{
  display: none;
}

.premium-accordion summary::after{
  content: "⌃";
  font-size: 14px;
  color: var(--fg-muted);
  transform: rotate(180deg);
  transition: transform .2s ease;
}

.premium-accordion details[open] summary::after{
  transform: rotate(0deg);
}

.premium-accordion ul{
  margin: 0;
  padding: 0 20px 18px 36px;
  color: var(--fg-muted);
  font-size: 14px;
}

.premium-accordion li{
  margin: 8px 0;
}

/* Premium — icono tipográfico en el título */

.accordion-title{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.accordion-icon{
  font-family: 'Material Symbols Rounded';
  font-size: 20px;
  line-height: 1;
  color: var(--fg-muted);
  opacity: .9;
}

/* Privacy */
.privacy{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

.note{
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow2);
  color: var(--fg-muted);
  font-size: 13.5px;
}
.note strong{ color: var(--fg); font-weight: 600; }

footer{
  border-top: 1px solid var(--line);
  padding: 24px 0 8px;
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 30px;
}
.footer-row{
  display:flex;
  flex-direction: column;
  gap: 12px;
  align-items:flex-start;
  justify-content: space-between;
}
.footer-links{
  display:flex;
  gap: 16px;
  flex-wrap: wrap;
}

.header-logo{
  width: 40px;
  height: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(17,20,24,.12);
  flex-shrink: 0;
}

.footer-logo{
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(17,20,24,.12);
  flex-shrink: 0;
}

/* Responsive */
@media (min-width: 760px){
  .wrap{ padding: 30px 22px 80px; }
  .topbar{ padding: 14px 22px; }
  nav{ display:flex; }

  .hero-grid{
    grid-template-columns: 1.05fr .95fr;
    gap: 26px;
  }
  .rail{
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .features{
    grid-template-columns: 1fr 1fr;
  }
  .privacy{
    grid-template-columns: 1fr 1fr;
  }
  .footer-row{
    flex-direction: row;
    align-items:center;
  }
  .shot.secondary{
    width: 48%;
    height: 310px;
    right: 10px;
    bottom: -18px;
  }
}

@media (prefers-reduced-motion: reduce){
  .btn{ transition:none; }
}

/* Helper */
.sr-only{
  position:absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip: rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Scroll reveal — base */

.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity .6s ease,
    transform .6s ease;
}

.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1;
    transform: none;
    transition: none;
  }
}
html{
  scroll-behavior: smooth;
}
/* Evita el subrayado SOLO en el logo del header */
.brand,
.brand:hover,
.brand:focus,
.brand:focus-visible{
  text-decoration: none !important;
}

/* Mobile navigation pills */

.mobile-nav{
  display: flex;
  gap: 10px;
  padding: 10px 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(247,243,235,.9);
}

.mobile-nav a{
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-muted);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.6);
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease;
}

.mobile-nav a:active{
  transform: scale(.97);
}

/* Ocultar en desktop */
@media (min-width: 760px){
  .mobile-nav{
    display: none;
  }
}

/* Language switch */

.lang-switch {
  position: relative;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.6);
  font-size: 13px;
  cursor: pointer;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow2);
  padding: 6px;
  display: grid;
  gap: 4px;
  z-index: 30;
}

.lang-menu .lang-btn {
  padding: 6px 10px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}

.lang-menu .lang-btn:hover {
  background: rgba(0,0,0,.05);
}

/* Desktop: no cambios visuales raros */
@media (min-width: 760px) {
  .lang-menu {
    right: auto;
    left: 0;
  }
}
  
  /* Language switch (dropdown) */
.lang-switch{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-current{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.65);
  box-shadow: var(--shadow2);
  font-size: 13px;
  color: var(--fg);
  cursor: pointer;
  user-select: none;
}

.lang-caret{
  color: var(--fg-muted);
  font-size: 12px;
  line-height: 1;
}

.lang-menu{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 76px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  display: none;              /* <- controlado por aria-expanded */
  z-index: 50;
}

.lang-menu .lang-btn{
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  font-size: 13px;
  color: var(--fg);
  cursor: pointer;
}

.lang-menu .lang-btn:hover{
  background: rgba(191,212,236,.35);
}

.lang-menu .lang-btn[aria-pressed="true"]{
  background: rgba(231,201,163,.30);
}

/* Abrir/cerrar sólo con aria-expanded */
.lang-current[aria-expanded="true"] + .lang-menu{
  display: block;
}

/* Mobile: asegura que no tape el header */
@media (max-width: 759px){
  .actions{
    gap: 10px;
    align-items: center;
  }
  .lang-menu{
    right: 0;
  }
}