/*
Theme Name: Centro & Tutores
Theme URI: https://example.com/centro-tutores
Author: Tu Estudio
Author URI: https://example.com
Description: Tema a medida para presentar "Comunicación Centro ↔ Tutores": un demo interactivo de la app (móvil funcional con cambio de rol) acompañado de una portada explicativa, responsive de móvil a escritorio. Convertido a partir del prototipo HTML original conservando su paleta, tipografía e interacción.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: centro-tutores
*/

  :root{
    --bg: #122824;
    --bg-deep: #0c1c19;
    --surface: #1c3a34;
    --surface-2: #24463f;
    --line: rgba(242,239,230,0.12);
    --chalk: #f2efe6;
    --chalk-dim: #b9c9c3;
    --muted: #7f9d94;
    --gold: #e8a33d;
    --gold-dim: #6b5326;
    --coral: #e8664f;
    --coral-dim: #4a2620;
    --mint: #7fc7a8;
    --radius: 18px;
    --shadow: 0 18px 40px rgba(0,0,0,0.35);
  }
  *{ box-sizing: border-box; }
  html,body{
    margin:0; padding:0; min-height:100%;
    background:
      radial-gradient(circle at 20% -10%, #1a3833 0%, transparent 45%),
      radial-gradient(circle at 100% 10%, #17322c 0%, transparent 40%),
      var(--bg-deep);
    color: var(--chalk);
    font-family: 'Inter', sans-serif;
  }
  .stage{
    min-height:100vh;
    display:flex; flex-direction:column; align-items:center;
    gap:18px;
    padding: 28px 16px 60px;
  }
  .lab-header{
    text-align:center; max-width:480px;
  }
  .lab-header .eyebrow{
    font-family:'IBM Plex Mono', monospace;
    letter-spacing:.14em; text-transform:uppercase;
    font-size:11px; color: var(--gold);
  }
  .lab-header h1{
    font-family:'Fraunces', serif;
    font-weight:600; font-size: 26px;
    margin: 6px 0 4px;
    line-height:1.15;
  }
  .lab-header p{
    color: var(--chalk-dim);
    font-size: 13.5px; margin:0; line-height:1.5;
  }

  /* role switcher */
  .role-switcher{
    display:flex; gap:6px;
    background: var(--surface);
    border:1px solid var(--line);
    padding:5px; border-radius: 999px;
  }
  .role-switcher button{
    font-family:'Inter', sans-serif;
    font-size:12.5px; font-weight:600;
    color: var(--chalk-dim);
    background:transparent; border:none;
    padding:8px 15px; border-radius:999px;
    cursor:pointer; transition: all .2s ease;
  }
  .role-switcher button.active{
    background: var(--gold); color:#1c1305;
  }

  /* phone frame */
  .phone{
    width: 375px; max-width:92vw;
    height: 780px; max-height: 82vh;
    background: var(--bg);
    border-radius: 42px;
    border: 10px solid #0a1815;
    box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.03);
    position:relative;
    overflow:hidden;
    display:flex; flex-direction:column;
  }
  .notch{
    position:absolute; top:0; left:50%; transform:translateX(-50%);
    width:120px; height:22px; background:#0a1815;
    border-radius: 0 0 16px 16px; z-index:5;
  }
  .statusbar{
    display:flex; justify-content:space-between; align-items:center;
    padding: 14px 22px 6px; font-family:'IBM Plex Mono', monospace;
    font-size:11px; color: var(--chalk-dim);
  }
  .screens{
    flex:1; overflow-y:auto; position:relative;
    scrollbar-width:none;
  }
  .screens::-webkit-scrollbar{ display:none; }
  .screen{
    display:none; padding: 4px 20px 24px;
    animation: rise .35s ease;
  }
  .screen.active{ display:block; }
  @keyframes rise{ from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:translateY(0);} }

  .topbar{
    display:flex; align-items:center; justify-content:space-between;
    margin: 6px 0 18px;
  }
  .topbar h2{
    font-family:'Fraunces', serif; font-weight:600; font-size:21px; margin:0;
  }
  .topbar .sub{ font-size:12px; color:var(--muted); margin-top:2px; }
  .icon-btn{
    width:34px; height:34px; border-radius:10px;
    background: var(--surface); border:1px solid var(--line);
    display:flex; align-items:center; justify-content:center;
    color: var(--chalk-dim); font-size:14px; cursor:pointer;
  }

  .card{
    background: var(--surface);
    border:1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
  }
  .field-label{
    font-family:'IBM Plex Mono', monospace;
    font-size:10.5px; letter-spacing:.08em; text-transform:uppercase;
    color: var(--muted); margin-bottom:6px; display:block;
  }
  input[type=text], input[type=tel]{
    width:100%; background: var(--bg-deep); border:1px solid var(--line);
    color: var(--chalk); font-family:'Inter',sans-serif; font-size:14.5px;
    padding: 12px 13px; border-radius:12px; outline:none;
  }
  input:focus-visible, button:focus-visible, .tab:focus-visible{
    outline: 2px solid var(--gold); outline-offset: 2px;
  }
  .btn{
    width:100%; padding: 13px 16px; border-radius: 13px;
    border:none; font-family:'Inter',sans-serif; font-weight:600; font-size:14px;
    cursor:pointer; text-align:center;
  }
  .btn-primary{ background: var(--gold); color:#1c1305; }
  .btn-ghost{ background: transparent; color: var(--chalk); border:1px solid var(--line); }
  .btn-outline-coral{ background: transparent; color: var(--coral); border:1px solid rgba(232,102,79,.4); }
  .btn:active{ transform: scale(.98); }

  .pill{
    display:inline-flex; align-items:center; gap:5px;
    font-family:'IBM Plex Mono', monospace; font-size:10.5px;
    padding:4px 9px; border-radius:999px; letter-spacing:.03em;
  }
  .pill-active{ background: rgba(127,199,168,.15); color: var(--mint); }
  .pill-baja{ background: var(--coral-dim); color: var(--coral); }
  .pill-pend{ background: rgba(232,163,61,.15); color: var(--gold); }

  /* alumno row */
  .alumno-row{
    display:flex; align-items:center; justify-content:space-between;
    padding: 12px 0; border-bottom: 1px solid var(--line);
    cursor:pointer;
  }
  .alumno-row:last-child{ border-bottom:none; }
  .alumno-info{ display:flex; align-items:center; gap:11px; }
  .avatar{
    width:38px; height:38px; border-radius:11px;
    background: var(--surface-2); display:flex; align-items:center; justify-content:center;
    font-family:'Fraunces',serif; font-weight:600; font-size:14px; color: var(--gold);
    flex-shrink:0;
  }
  .alumno-info .name{ font-size:14px; font-weight:600; }
  .alumno-info .meta{ font-size:11.5px; color:var(--muted); margin-top:1px; }

  /* the ticket stub — signature element */
  .stub{
    position:relative;
    background: var(--surface-2);
    border-radius: 16px;
    padding: 20px 18px 18px;
    margin: 6px 0 16px;
    transform: rotate(-1deg);
    box-shadow: 0 10px 26px rgba(0,0,0,.3);
  }
  .stub::before{
    content:"";
    position:absolute; inset:0;
    border-radius:16px;
    background-image: repeating-linear-gradient(90deg, transparent 0 8px, rgba(242,239,230,.16) 8px 9px);
    -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
    background-position: bottom 30px left 0;
    background-size: 100% 2px;
    background-repeat: no-repeat;
    pointer-events:none;
  }
  .stub .stub-top{ display:flex; justify-content:space-between; align-items:flex-start; }
  .stub .stub-label{
    font-family:'IBM Plex Mono', monospace; font-size:10px; letter-spacing:.1em;
    text-transform:uppercase; color: var(--muted);
  }
  .stub .qr{
    width:44px; height:44px; border-radius:8px;
    background:
      repeating-linear-gradient(0deg, #0c1c19 0 5px, transparent 5px 10px),
      repeating-linear-gradient(90deg, #0c1c19 0 5px, transparent 5px 10px);
    background-blend-mode: multiply;
    background-color: var(--chalk);
  }
  .stub .code{
    font-family:'IBM Plex Mono', monospace; font-weight:600; font-size:26px;
    letter-spacing:.12em; color: var(--chalk); margin-top:8px;
  }
  .stub .stub-foot{
    margin-top: 30px; display:flex; justify-content:space-between; align-items:center;
    font-size:11px; color: var(--muted);
  }

  .divider-label{
    font-family:'IBM Plex Mono', monospace; font-size:10px; letter-spacing:.1em;
    text-transform:uppercase; color: var(--muted); margin: 18px 0 8px;
  }

  .notif{
    display:flex; gap:11px; padding:11px 0; border-bottom:1px solid var(--line);
  }
  .notif:last-child{ border-bottom:none; }
  .notif .dot{ width:8px; height:8px; border-radius:50%; margin-top:5px; flex-shrink:0; }
  .notif .txt .t{ font-size:13.5px; font-weight:600; }
  .notif .txt .d{ font-size:11.5px; color:var(--muted); margin-top:2px; }
  .notif .when{ font-size:10.5px; color:var(--muted); margin-left:auto; white-space:nowrap; }

  .attend-row{
    display:flex; align-items:center; justify-content:space-between;
    padding: 10px 0; border-bottom:1px solid var(--line); font-size:13px;
  }
  .attend-row:last-child{ border-bottom:none; }
  .attend-row .day{ color: var(--chalk-dim); }

  .banner-baja{
    background: var(--coral-dim); border:1px solid rgba(232,102,79,.35);
    border-radius:14px; padding:12px 14px; margin-bottom:14px;
    font-size:12.5px; line-height:1.5; color:#f3c9c0;
  }
  .banner-baja b{ color: var(--coral); }

  /* bottom nav (tutor) */
  .bottom-nav{
    display:flex; border-top:1px solid var(--line);
    background: rgba(18,40,36,.9); backdrop-filter: blur(6px);
  }
  .tab{
    flex:1; background:none; border:none; color: var(--muted);
    padding: 11px 4px 13px; font-family:'Inter',sans-serif; font-size:10.5px;
    display:flex; flex-direction:column; align-items:center; gap:4px; cursor:pointer;
  }
  .tab .ico{ font-size:16px; }
  .tab.active{ color: var(--gold); }

  .steps{ display:flex; gap:5px; margin-bottom:18px; }
  .steps .seg{ flex:1; height:3px; border-radius:2px; background: var(--line); }
  .steps .seg.done{ background: var(--gold); }

  .checklist-item{
    display:flex; align-items:center; justify-content:space-between;
    padding:11px 0; border-bottom:1px solid var(--line);
  }
  .checklist-item:last-child{ border-bottom:none; }
  .check{
    width:24px; height:24px; border-radius:7px; border:1.5px solid var(--line);
    display:flex; align-items:center; justify-content:center; font-size:13px;
    cursor:pointer; color: transparent; flex-shrink:0;
  }
  .check.on{ background: var(--mint); border-color: var(--mint); color:#0c1c19; }

  .log-row{ padding:9px 0; border-bottom:1px solid var(--line); font-size:11.5px; color:var(--chalk-dim); }
  .log-row:last-child{ border-bottom:none; }
  .log-row .who{ color: var(--chalk); font-weight:600; }

  .hint{
    font-size:11.5px; color:var(--muted); line-height:1.5; margin-top:10px;
  }
  .center-note{ text-align:center; color:var(--muted); font-size:11.5px; padding: 30px 10px; }

  ::selection{ background: var(--gold); color:#1c1305; }

/* ==========================================================================
   AÑADIDOS DEL TEMA WORDPRESS
   (lo de arriba es el prototipo original sin tocar; esto es nuevo)
   ========================================================================== */

/* accesibilidad: saltar al contenido */
.skip-link{
  position:absolute; left:-999px; top:auto;
  background: var(--gold); color:#1c1305;
  padding: 10px 16px; border-radius: 0 0 10px 0;
  font-family:'Inter',sans-serif; font-weight:600; font-size:13px;
  z-index: 100;
}
.skip-link:focus{ left:0; top:0; }

/* barra superior mínima — solo en páginas que no son la portada */
.site-topbar{
  display:flex; align-items:center; justify-content:space-between;
  max-width: 1180px; margin: 0 auto; padding: 22px 24px 0;
}
.site-topbar .brand{
  font-family:'Fraunces', serif; font-weight:600; font-size:17px;
  color: var(--chalk); text-decoration:none;
}
.site-topbar .brand span{ color: var(--gold); }
.site-topbar nav a{
  color: var(--chalk-dim); text-decoration:none; font-size:13.5px;
  margin-left: 20px; font-family:'Inter',sans-serif;
}
.site-topbar nav a:hover{ color: var(--gold); }

/* estructura de la portada: copy a la izquierda, demo a la derecha en escritorio */
.hero-copy, .hero-demo{ display:contents; }

.principles{
  list-style:none; margin: 8px 0 4px; padding:0;
  display:flex; flex-direction:column; gap:14px;
}
.principles li{
  display:flex; flex-direction:column; gap:3px;
  border-left: 2px solid var(--gold-dim);
  padding-left: 14px;
}
.principles .k{
  font-family:'IBM Plex Mono', monospace; font-size:11px;
  letter-spacing:.06em; text-transform:uppercase; color: var(--gold);
}
.principles .v{
  font-size: 13.5px; color: var(--chalk-dim); line-height:1.5;
}

.hero-actions{ display:flex; gap:10px; margin-top: 6px; flex-wrap:wrap; }
.hero-actions .btn{ width:auto; padding: 13px 22px; }
.hero-actions .btn-primary{ text-decoration:none; display:inline-block; }
.hero-actions .btn-ghost{ text-decoration:none; display:inline-block; color: var(--chalk); }

.hero-note{
  font-family:'IBM Plex Mono', monospace; font-size:11px; color: var(--muted);
  margin-top: 4px;
}

/* contenido genérico (blog / páginas) para que el tema no se limite a la portada */
.site-content{
  max-width: 760px; margin: 0 auto; padding: 40px 20px 80px;
}
.site-content h1.page-title{
  font-family:'Fraunces', serif; font-weight:600; font-size: 28px; margin: 0 0 22px;
}
.post-card{
  background: var(--surface); border:1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px;
}
.post-card .post-eyebrow{
  font-family:'IBM Plex Mono', monospace; font-size:10.5px; letter-spacing:.08em;
  text-transform:uppercase; color: var(--muted);
}
.post-card h2{
  font-family:'Fraunces', serif; font-weight:600; font-size:19px; margin: 6px 0 8px;
}
.post-card h2 a{ color: var(--chalk); text-decoration:none; }
.post-card h2 a:hover{ color: var(--gold); }
.post-card .excerpt{ color: var(--chalk-dim); font-size:14px; line-height:1.6; }
.post-card .read-more{ color: var(--gold); font-size:13px; text-decoration:none; font-weight:600; }

.entry-content{ color: var(--chalk-dim); font-size:15px; line-height:1.7; }
.entry-content a{ color: var(--gold); }
.entry-content h2, .entry-content h3{ font-family:'Fraunces', serif; color: var(--chalk); }
.entry-content img{ max-width:100%; border-radius: var(--radius); }

.site-footer{
  text-align:center; padding: 30px 20px 40px; color: var(--muted);
  font-size:12px; font-family:'IBM Plex Mono', monospace;
  border-top: 1px solid var(--line); margin-top: 20px;
}
.site-footer a{ color: var(--chalk-dim); }

/* ==========================================================================
   ESCRITORIO — a partir de aquí el layout se reorganiza en dos columnas
   ========================================================================== */
@media (min-width: 960px){
  .stage{
    display:grid;
    grid-template-columns: minmax(340px, 460px) minmax(375px, 460px);
    align-items:center;
    justify-content:center;
    gap: 72px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 50px 40px 90px;
    min-height: auto;
  }
  .hero-copy{
    display:flex; flex-direction:column; align-items:flex-start; gap:18px;
  }
  .hero-demo{
    display:flex; flex-direction:column; align-items:center; gap:16px;
    position: sticky; top: 40px;
  }
  .lab-header{ text-align:left; max-width: 460px; }
  .lab-header h1{ font-size: 38px; }
  .lab-header p{ font-size: 15.5px; }

  .phone{
    box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.03), 0 60px 100px -30px rgba(0,0,0,0.55);
  }

  .site-topbar{ padding: 28px 40px 0; }
}

@media (min-width: 1180px){
  .stage{ gap: 96px; }
  .lab-header h1{ font-size: 42px; }
}
