/*
Theme Name: Mitosis Seguridad
Theme URI: https://mitosisseguridad.cl/
Author: Mitosis Seguridad
Author URI: https://mitosisseguridad.cl/
Description: Tema institucional para Mitosis Seguridad — estudio de diseño estratégico de seguridad y cumplimiento normativo bajo Ley N°21.659. Tema one-page con secciones estáticas y soporte para Journal (posts) y Casos (CPT).
Version: 1.0.0
Requires at least: 6.0
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: mitosis-seguridad
Tags: one-page, custom-post-types, custom-menu, threaded-comments, translation-ready
*/

  :root {
    --bg: #FAFAF7;
    --bg-soft: #F0EEE8;
    --ink: #14110F;
    --ink-soft: #4a4541;
    --ink-muted: #87807a;
    --accent: #7C408E;
    --accent-bg: #f3e9f7;
    --accent-deep: #4d2459;
    --line: rgba(20,17,15,0.1);
    --display: 'Bricolage Grotesque', system-ui, sans-serif;
    --serif: 'Instrument Serif', Georgia, serif;
    --body: 'Manrope', system-ui, sans-serif;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--body);
    background: var(--bg);
    color: var(--ink);
    font-weight: 400;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }
  ::selection { background: var(--accent); color: white; }

  /* TOPBAR — clean horizontal */
  .topbar {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(250,250,247,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    z-index: 100;
    padding: 16px 32px;
    display: flex; align-items: center; justify-content: space-between;
  }
  .topbar .brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.03em;
  }
  .topbar .brand .dot {
    width: 28px; height: 28px;
    background: var(--ink); color: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    font-family: var(--serif); font-style: italic;
  }
  .topbar nav { display: flex; gap: 28px; }
  .topbar nav a {
    text-decoration: none; color: var(--ink); font-size: 14px;
    font-weight: 500; transition: color .2s;
  }
  .topbar nav a:hover { color: var(--accent); }
  .topbar .cta {
    background: var(--ink); color: white;
    padding: 10px 18px; border-radius: 999px;
    text-decoration: none; font-size: 13px; font-weight: 500;
    display: flex; align-items: center; gap: 8px;
    transition: all .25s;
  }
  .topbar .cta:hover { background: var(--accent); }

  /* HERO */
  .hero {
    padding: 140px 32px 80px;
    background: var(--bg);
    position: relative;
    overflow: hidden;
  }
  .hero-inner { max-width: 1400px; margin: 0 auto; }

  .hero-tag {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--accent-bg);
    color: var(--accent-deep);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px; font-weight: 500;
    margin-bottom: 32px;
  }
  .hero-tag .live {
    width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
    animation: pulse 1.6s infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.4); }
  }

  .hero h1 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(48px, 7.5vw, 116px);
    line-height: 0.96;
    letter-spacing: -0.045em;
    max-width: 16ch;
    margin-bottom: 32px;
  }
  .hero h1 em {
    font-family: var(--serif);
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
    letter-spacing: -0.02em;
  }

  .hero-sub {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--line);
  }
  .hero-sub p {
    font-size: 18px;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 480px;
  }
  .hero-sub .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-content: end;}
  .hero-sub .stat { }
  .hero-sub .stat .num {
    font-family: var(--display);
    font-weight: 700;
    font-size: 56px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--accent);
  }
  .hero-sub .stat .lbl {
    font-size: 13px; color: var(--ink-muted); margin-top: 8px;
    line-height: 1.4;
  }

  .hero-actions { display: flex; gap: 16px; margin-top: 48px; flex-wrap: wrap; }
  .btn {
    padding: 16px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    display: inline-flex; align-items: center; gap: 12px;
    transition: all .25s;
    cursor: pointer;
  }
  .btn-primary {
    background: var(--ink); color: white;
  }
  .btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
  .btn-ghost {
    background: transparent; color: var(--ink);
    border: 1px solid var(--line);
  }
  .btn-ghost:hover { background: var(--ink); color: white; border-color: var(--ink); }
  .btn .arrow {
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-style: italic;
    margin-right: -10px;
  }
  .btn-ghost .arrow { background: var(--ink); color: white; }
  .btn-ghost:hover .arrow { background: var(--accent); color: white; }

  /* FEATURED CASE */
  .featured {
    padding: 0 32px 100px;
    margin-top: -20px;
  }
  .featured-card {
    max-width: 1400px; margin: 0 auto;
    background: var(--ink); color: white;
    border-radius: 32px;
    padding: 56px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    overflow: hidden;
    position: relative;
    align-items: center;
  }
  .featured-card::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent), transparent 60%);
    bottom: -200px; right: -200px;
    opacity: 0.5;
  }
  .featured-tag {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 6px 14px; border-radius: 999px;
    font-size: 12px; font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--accent-bg);
    margin-bottom: 20px;
  }
  .featured-card h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    position: relative;
  }
  .featured-card h3 em { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 400; }
  .featured-card p {
    font-size: 16px; line-height: 1.55;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
    position: relative;
  }
  .featured-card .case-link {
    display: inline-flex; align-items: center; gap: 12px;
    color: white; text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 4px;
    width: fit-content;
    transition: border-color .25s;
    position: relative;
  }
  .featured-card .case-link:hover { border-color: var(--accent); }
  .featured-visual {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
  }
  .featured-visual::after {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='1' fill='%23ffffff' opacity='0.15'/%3E%3C/svg%3E");
    background-size: 30px 30px;
  }
  .featured-visual .case-num {
    font-family: var(--serif);
    font-style: italic;
    font-size: 200px;
    color: rgba(255,255,255,0.3);
    line-height: 1;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1;
  }

  /* QUE HACEMOS — three practices */
  .practices {
    padding: 120px 32px;
    background: var(--bg);
  }
  .practices-inner { max-width: 1400px; margin: 0 auto; }
  .section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 80px; align-items: end;}
  .section-eyebrow {
    font-family: var(--display); font-weight: 500;
    font-size: 14px; color: var(--accent);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 12px;
  }
  .section-eyebrow::before {
    content: ''; width: 32px; height: 1px; background: var(--accent);
  }
  .section-head h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(36px, 4.5vw, 64px);
    line-height: 0.98;
    letter-spacing: -0.035em;
  }
  .section-head h2 em { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 400; }
  .section-head .desc {
    font-size: 17px; line-height: 1.55; color: var(--ink-soft);
    max-width: 460px;
  }

  .practices-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  }
  .practice-card {
    background: white;
    border-radius: 24px;
    padding: 36px;
    border: 1px solid var(--line);
    transition: all .35s;
    display: flex; flex-direction: column;
    min-height: 480px;
  }
  .practice-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -20px rgba(20,17,15,0.15); border-color: var(--accent); }
  .practice-card .num {
    font-family: var(--display);
    font-size: 13px; font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 28px;
  }
  .practice-card h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 28px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
  }
  .practice-card h3 em { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 400; }
  .practice-card .lead {
    font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin-bottom: 24px;
  }
  .practice-card .pills { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
  .practice-card .pill {
    background: var(--bg-soft); padding: 10px 14px;
    border-radius: 999px; font-size: 13px; font-weight: 500;
    color: var(--ink);
    display: flex; align-items: center; gap: 10px;
  }
  .practice-card .pill::before {
    content: '+'; color: var(--accent); font-weight: 600;
  }
  .practice-card .view {
    margin-top: 24px;
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--ink); text-decoration: none;
    font-size: 14px; font-weight: 500;
  }
  .practice-card .view .arr {
    width: 28px; height: 28px;
    background: var(--bg-soft);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-style: italic;
    transition: all .25s;
  }
  .practice-card:hover .view .arr { background: var(--accent); color: white; }

  /* SERVICIOS DETALLE */
  .services {
    padding: 120px 32px;
    background: var(--bg-soft);
  }
  .services-inner { max-width: 1400px; margin: 0 auto; }
  .services-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line);
    border-radius: 16px; overflow: hidden;
  }
  .service-item {
    background: white;
    padding: 36px;
    transition: background .25s;
    cursor: pointer;
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 20px;
  }
  .service-item:hover { background: var(--accent-bg); }
  .service-item .badge {
    width: 44px; height: 44px;
    background: var(--ink); color: white;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--display); font-weight: 600; font-size: 15px;
  }
  .service-item:hover .badge { background: var(--accent); }
  .service-item h4 {
    font-family: var(--display);
    font-weight: 600; font-size: 19px;
    letter-spacing: -0.015em; line-height: 1.2;
    margin-bottom: 8px;
  }
  .service-item p {
    font-size: 14px; line-height: 1.5; color: var(--ink-soft);
  }

  /* INDUSTRIAS / SECTORES */
  .industries {
    padding: 120px 32px;
    background: var(--bg);
  }
  .industries-inner { max-width: 1400px; margin: 0 auto; }
  .industries-strip {
    display: flex; flex-wrap: wrap; gap: 12px;
  }
  .industry-tag {
    padding: 14px 24px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--display);
    font-weight: 500;
    font-size: 16px;
    transition: all .25s;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 10px;
  }
  .industry-tag:hover { background: var(--ink); color: white; border-color: var(--ink); transform: translateY(-2px); }
  .industry-tag .dot {
    width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
  }
  .industry-tag.big { font-size: 20px; padding: 18px 30px; }

  /* CLIENTES */
 .clients {
	padding: 100px 32px;
	background: var(--bg);
	display: block;
	width: 100%;
	clear: both;
}
  .clients-inner { max-width: 1400px; margin: 0 auto; }
  .clients-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  }
  .client-cell {
    aspect-ratio: 1.5;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--display); font-weight: 600; font-size: 16px;
    color: var(--ink-muted);
    transition: all .3s;
    cursor: pointer;
  }
  .client-cell:hover {
    background: var(--ink); color: white; border-color: var(--ink);
    transform: scale(1.04);
  }

  /* TEAM (estilo unit.la — partners destacados) */
 .team {
	padding: 100px 32px;
	background: var(--bg);
	display: block;
	width: 100%;
	clear: both;
}
  .team-inner { max-width: 1400px; margin: 0 auto; }
  .team-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  }
  .team-card {
    background: white; border-radius: 24px; overflow: hidden;
    border: 1px solid var(--line);
    transition: all .3s;
  }
  .team-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -20px rgba(20,17,15,0.15);}
  .team-photo {
    aspect-ratio: 4/5;
    background: linear-gradient(160deg, var(--accent) 0%, var(--accent-deep) 100%);
    position: relative;
    display: flex; align-items: end; justify-content: center;
    color: rgba(255,255,255,0.4);
    font-family: var(--serif); font-style: italic; font-size: 96px;
    overflow: hidden;
  }
  .team-photo::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.18), transparent 60%);
  }
  .team-photo .initials {
    position: relative; z-index: 1;
    margin-bottom: -30px;
    line-height: 1;
  }
  .team-info { padding: 24px 28px; }
  .team-info h4 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
  }
  .team-info .role {
    font-size: 14px; color: var(--ink-muted);
    font-family: var(--serif); font-style: italic;
  }

  /* INSIGHTS / JOURNAL */
  .insights {
    padding: 120px 32px;
    background: var(--bg);
  }
  .insights-inner { max-width: 1400px; margin: 0 auto; }
  .insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .insight-card {
    background: white;
    border-radius: 24px;
    border: 1px solid var(--line);
    overflow: hidden;
    transition: all .3s;
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
  }
  .insight-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -20px rgba(20,17,15,0.12); }
  .insight-image {
    aspect-ratio: 16/10;
    background: var(--bg-soft);
    position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
  .insight-image.a { background: linear-gradient(135deg, var(--accent-bg), var(--accent) 200%); }
  .insight-image.b { background: linear-gradient(135deg, #FFE9C7, #F7B96B 200%); }
  .insight-image.c { background: linear-gradient(135deg, #DAEAE0, #6BA98A 200%); }
  .insight-image span {
    font-family: var(--serif); font-style: italic;
    font-size: 80px; color: rgba(255,255,255,0.4);
  }
  .insight-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
  .insight-meta {
    font-size: 12px; color: var(--ink-muted);
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 14px;
    display: flex; gap: 12px;
  }
  .insight-meta .dot-sep::before { content: '·'; margin-right: 12px; }
  .insight-body h4 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 12px;
  }
  .insight-body p {
    font-size: 14px; color: var(--ink-soft); line-height: 1.5;
  }
  .insight-body .read {
    margin-top: auto; padding-top: 20px;
    color: var(--accent);
    font-weight: 500; font-size: 14px;
    display: inline-flex; align-items: center; gap: 8px;
  }

  /* CTA FINAL */
  .cta-final {
    padding: 140px 32px;
    background: var(--ink);
    color: white;
    position: relative;
    overflow: hidden;
  }
  .cta-final::before {
    content: ''; position: absolute; inset: 0;
    background:
      radial-gradient(ellipse at 80% 30%, rgba(124,64,142,0.4), transparent 50%),
      radial-gradient(ellipse at 10% 80%, rgba(124,64,142,0.2), transparent 50%);
  }
  .cta-final-inner { max-width: 1400px; margin: 0 auto; position: relative; z-index: 1; }
  .cta-final h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(48px, 8vw, 130px);
    line-height: 0.92;
    letter-spacing: -0.04em;
    margin-bottom: 48px;
    max-width: 14ch;
  }
  .cta-final h2 em { font-family: var(--serif); font-style: italic; color: var(--accent-bg); font-weight: 400; }
  .cta-final p {
    font-size: 19px; line-height: 1.55;
    color: rgba(255,255,255,0.7);
    max-width: 560px;
    margin-bottom: 40px;
  }
  .cta-final .actions { display: flex; gap: 16px; flex-wrap: wrap; }
  .btn-light {
    background: white; color: var(--ink);
  }
  .btn-light:hover { background: var(--accent); color: white; }
  .btn-outline-light {
    background: transparent; color: white;
    border: 1px solid rgba(255,255,255,0.25);
  }
  .btn-outline-light:hover { background: white; color: var(--ink); border-color: white; }

  /* FOOTER */
  footer {
    background: var(--ink);
    color: rgba(255,255,255,0.6);
    padding: 60px 32px 36px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 14px;
  }
  .footer-inner { max-width: 1400px; margin: 0 auto; }
  .footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
  }
  footer h5 {
    color: white; font-size: 13px; font-weight: 600;
    margin-bottom: 16px; font-family: var(--display);
  }
  footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  footer a { color: inherit; text-decoration: none; transition: color .2s; }
  footer a:hover { color: var(--accent-bg); }
  .footer-brand img { height: 48px; margin-bottom: 20px; }
  .footer-brand p { max-width: 320px; line-height: 1.55; font-size: 14px; }
  .footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px;
  }

  @media (max-width: 1024px) {
    .topbar nav { display: none; }
    .hero-sub, .section-head, .featured-card { grid-template-columns: 1fr; gap: 40px; }
    .featured-card { padding: 36px; }
    .practices-grid, .insights-grid, .team-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .clients-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 640px) {
    .topbar { padding: 12px 20px; }
    .topbar .cta { display: none; }
    .hero, .practices, .services, .industries, .clients, .team, .insights, .cta-final, .featured { padding-left: 20px; padding-right: 20px; }
    .hero-sub .stats { grid-template-columns: 1fr; gap: 16px; }
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  }

  /* Reveal */
  @keyframes rise { from {opacity:0; transform: translateY(24px);} to {opacity:1; transform:translateY(0);} }
  .hero-tag, .hero h1, .hero-sub, .hero-actions { animation: rise .9s cubic-bezier(.2,.8,.2,1) backwards;}
  .hero-tag { animation-delay: .1s;}
  .hero h1 { animation-delay: .25s;}
  .hero-sub { animation-delay: .5s;}
  .hero-actions { animation-delay: .7s;}
</style>
