/* ═══════════════════════════════════════════════
   RESPONSIVE — Psicología Isui
   Mobile-first breakpoints
   ═══════════════════════════════════════════════ */

/* ════════════════════════════════════════════════
   TABLET — ≤1024px
════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  nav { padding: 0.9rem 2rem; }

  .hero { min-height: 80vh; }
  .hero-left { padding: 4rem 2.5rem; }

  .pillars { padding: 3rem 2rem; gap: 1rem; }

  section { padding: 5rem 2.5rem; }

  .about { gap: 3rem; }

  .svc-grid { grid-template-columns: repeat(2,1fr); }

  .contact { gap: 3rem; }

  .testi-grid { grid-template-columns: repeat(2,1fr); }
}

/* ════════════════════════════════════════════════
   MÓVIL — ≤768px
════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Nav ────────────────────────────────────── */
  nav {
    padding: 0.75rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .nav-links { display: none; }
  .nav-social { display: none; }
  .btn-nav { display: none; }
  .logo img { height: 48px; }

  /* Botón rápido a Testimonios */
  .btn-testi-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: auto;
    margin-right: 0.6rem;
  }
  .btn-testi-mobile svg { width: 20px; height: 20px; }

  /* Botón hamburguesa */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 0.8rem;
  }
  .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Panel del menú */
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 78vw;
    max-width: 320px;
    background: var(--white);
    z-index: 200;
    padding: 6.5rem 2rem 2rem;
    gap: 1.6rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -8px 0 30px rgba(0,0,0,0.08);
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu a {
    font-family: var(--font-sans);
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu-social {
    display: flex;
    gap: 1.5rem;
    margin-top: auto;
    padding-top: 1.5rem;
  }
  .mobile-menu-social a {
    display: flex;
    color: var(--pk);
    border: none;
    padding: 0;
  }
  .mobile-menu-social svg { width: 22px; height: 22px; }

  .mobile-menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .mobile-menu-overlay.open { opacity: 1; pointer-events: auto; }

  /* ── Hero ───────────────────────────────────── */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-left {
    padding: 3rem 1.25rem 2rem;
  }
  .hero-right {
    display: none;
  }
  .hero h1 { font-size: clamp(36px, 8vw, 52px); }
  .hero-desc { font-size: 13px; }
  .hero-btns { flex-direction: column; }
  .hero-btns a { width: 100%; justify-content: center; }
  .hero-stats { gap: 1.5rem; }
  .hero-logo-big { width: 180px; }
  .hero-tagline { font-size: 13px; }
  .corner-tl, .corner-br { display: none; }

  /* ── Banner ─────────────────────────────────── */
  .hero-banner img { max-height: 60vw; object-position: center 20%; }

  /* ── Pillars ────────────────────────────────── */
  .pillars {
    grid-template-columns: 1fr 1fr;
    padding: 2rem 1.25rem;
    gap: 0.75rem;
  }
  .pillar { padding: 1.2rem 1rem; }
  .pillar:last-child { border-right: none; }

  /* ── Sections ───────────────────────────────── */
  section { padding: 4rem 1.25rem; }

  .sec-h2 { font-size: 32px; }

  /* ── About ──────────────────────────────────── */
  .about { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image-wrap { max-width: 280px; margin: 0 auto; }
  .about-content { text-align: left; }
  .trust-strip { flex-direction: column; gap: 1rem; padding: 2.5rem 1.5rem; text-align: center; }
  .trust-strip img { width: 130px; }
  .trust-strip span { font-size: 10.5px; }
  .hero-seal img { width: 105px; }
  .hero-seal span { font-size: 9.5px; }

  /* ── Services ───────────────────────────────── */
  .svc-header { flex-direction: column; gap: 1rem; }
  .svc-header-right { max-width: 100%; }
  .svc-grid { grid-template-columns: 1fr; }

  /* ── Quote ──────────────────────────────────── */
  .quote-band { padding: 3.5rem 1.5rem; }
  .quote-text { font-size: 24px; }

  /* ── Testimonios CTA ────────────────────────── */
  .pillars + div,
  div[style*="background:var(--pk-pale)"] { padding: 3rem 1.25rem; }

  /* ── Contact ────────────────────────────────── */
  .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact h2 { font-size: 32px; }
  .map-embed iframe { height: 220px; }
  .avail-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* ── Footer ─────────────────────────────────── */
  footer { padding: 2rem 1.25rem; }
  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .footer-right { align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }

  /* ── WA float ───────────────────────────────── */
  .wa-float { bottom: 1.2rem; right: 1.2rem; width: 50px; height: 50px; }
  .wa-float svg { width: 24px; height: 24px; }

  /* ── Testimonios page ───────────────────────── */
  .page-hero { padding: 2.5rem 1.25rem 2rem; }
  .page-hero h1 { font-size: clamp(32px, 7vw, 48px); }
  .testimonios-section { padding: 3rem 1.25rem 4rem; }
  .testi-grid { grid-template-columns: 1fr; }
  .add-section { padding: 2.5rem 1.25rem; }
  .form-grid { grid-template-columns: 1fr; }
  .btn-submit { width: 100%; }

  /* Footer de testimonios.html (logo / copy / volver) */
  .testimonios-section ~ footer,
  footer:has(.footer-logo) {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 2rem 1.25rem;
  }
  .footer-copy { font-size: 10px; }

  /* Botón flotante de admin */
  .admin-panel { bottom: 1.2rem; right: 1.2rem; }
  .admin-toggle { padding: 0.6rem 1.1rem; font-size: 10px; }
}

/* ════════════════════════════════════════════════
   MÓVIL PEQUEÑO — ≤380px
════════════════════════════════════════════════ */
@media (max-width: 380px) {
  .hero h1 { font-size: 30px; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .s-num { font-size: 28px; }
  .pillars { grid-template-columns: 1fr; }
  .btn-primary, .btn-secondary { padding: 0.85rem 1.5rem; font-size: 10px; }
  .trust-strip span { font-size: 9px; }
  .hero-seal span { font-size: 8.5px; }
}

/* ════════════════════════════════════════════════
   ADMIN — RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { padding: 1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-header { padding: 0.8rem 1rem; }
  .header-brand h2 { font-size: 15px; }
  .admin-card-top { flex-direction: column; gap: 0.3rem; }
  .modal { padding: 1.5rem; }
  .filters { gap: 0.35rem; }
  .filter-btn { padding: 0.4rem 0.8rem; font-size: 11px; }
  .login-box { padding: 2rem 1.5rem; }
}

/* ════════════════════════════════════════════════
   PRINT — básico
════════════════════════════════════════════════ */
@media print {
  nav, .wa-float, footer { display: none; }
  body { font-size: 12pt; color: #000; }
  .hero { min-height: auto; }
}
