/*
Theme Name: interim2go
Theme URI: https://interim2go.com
Author: LeapLab
Author URI: https://leaplab.cl
Description: Theme corporativo para interim2go — Liderazgo de Continuidad para la Alta Dirección. Diseño premium con Tailwind CSS, tipografía Raleway y efectos artísticos de imagen.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Propietario
License URI: https://leaplab.cl
Text Domain: interim2go
Tags: business, portfolio, custom-menu, featured-images, blog
*/

/* ============================================
   VARIABLES CORPORATIVAS
   ============================================ */
:root {
    --burgundy: #741524;
    --orange: #FFB621;
    --sky: #A6D8FF;
    --navy: #0378B1;
    --light: #E7EEF2;
}

/* ============================================
   CURSOR POINTER — GLOBAL
   Aplica la manito a todos los elementos interactivos
   ============================================ */
a,
button,
[role="button"],
input[type="submit"],
input[type="button"],
input[type="reset"],
label[for],
select,
.cursor-pointer,
.filter-chip,
.btn-action,
.insight-card,
nav a {
    cursor: pointer !important;
}

/* ============================================
   BASE & TIPOGRAFÍA
   ============================================ */
body {
    font-family: 'Raleway', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ============================================
   COLORES UTILITARIOS (compatibilidad Tailwind)
   ============================================ */
.text-burgundy { color: var(--burgundy) !important; }
.bg-burgundy { background-color: var(--burgundy) !important; }
.text-navy { color: var(--navy) !important; }
.bg-navy { background-color: var(--navy) !important; }
.text-orange { color: var(--orange) !important; }
.bg-orange { background-color: var(--orange) !important; }
.bg-light { background-color: var(--light) !important; }
.text-sky { color: var(--sky) !important; }
.bg-sky { background-color: var(--sky) !important; }
.bg-sky-soft {
    background-color: color-mix(in srgb, var(--sky) 28%, white);
}

/* ============================================
   ANIMACIONES
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   HERO
   ============================================ */
.hero-container {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background-color: #000;
    display: flex;
    align-items: center;
}
.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.45;
    z-index: 1;
}
.curtain-wrapper {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
@keyframes flowLTR {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(450%); }
}
@keyframes flowRTL {
    0% { transform: translateX(450%); }
    100% { transform: translateX(-110%); }
}
.curtain-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    will-change: transform;
    opacity: 0.25;
}
.bar-1 { width: 10vw; background: rgba(166, 216, 255, 0.7); animation: flowLTR 12s infinite linear; }
.bar-2 { width: 18vw; background: rgba(3, 120, 177, 0.5); animation: flowRTL 16s infinite linear; animation-delay: -4s; }
.bar-3 { width: 6vw; background: rgba(166, 216, 255, 0.6); animation: flowLTR 20s infinite linear; animation-delay: -8s; }
.bar-4 { width: 14vw; background: rgba(3, 120, 177, 0.6); animation: flowRTL 14s infinite linear; animation-delay: -10s; }

/* ============================================
   IMÁGENES ARTÍSTICAS (Dusted Glass)
   ============================================ */
.artistic-img-container {
    position: relative;
    overflow: hidden;
    background: #000;
}
.artistic-img-container img {
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: grayscale(0.85) contrast(1.15) brightness(0.82) blur(3px);
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .artistic-img-container img {
        filter: grayscale(0.4) contrast(1.05) brightness(0.95) blur(0px);
        transform: scale(1);
    }
}
.artistic-img-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.25;
    mix-blend-mode: overlay;
}
.insight-card:hover .artistic-img-container img,
.article-hero-img .artistic-img-container img {
    filter: grayscale(0.2) contrast(1.1) brightness(1) blur(0px);
    transform: scale(1);
}

/* ============================================
   NAVEGACIÓN
   ============================================ */
#navbar {
    transition: all 0.5s ease;
}
#navbar.scrolled {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
#mobile-menu.closed {
    transform: translateX(100%);
}

/* ============================================
   COMPONENTES
   ============================================ */
.btn-action {
    display: inline-block;
    background-color: var(--burgundy);
    color: white;
    padding: 1.5rem 3rem;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    transition: all 0.5s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.btn-action:hover {
    background-color: #000;
    letter-spacing: 0.45em;
    color: white;
    text-decoration: none;
}
.btn-action:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 4px;
}
@media (max-width: 767px) {
    .btn-action {
        padding: 1.15rem 1.5rem;
        letter-spacing: 0.18em;
        font-size: 0.75rem;
        text-align: center;
        max-width: 100%;
        line-height: 1.4;
    }
    .btn-action:hover {
        letter-spacing: 0.22em;
    }
}

.pillar-card {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 2.5rem;
    transition: border-color 0.5s ease;
}
.pillar-card:hover { border-left-color: var(--orange); }

.promesa-badge {
    width: 100%;
    max-width: 28rem;
    padding: 1.75rem 1.75rem 1.6rem;
    box-sizing: border-box;
}
@media (min-width: 768px) {
    .promesa-badge {
        width: min(28rem, calc(100% - 2rem));
        padding: 2rem 2.25rem 1.85rem;
    }
}
.promesa-badge__title {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 300;
    font-style: italic;
    color: var(--burgundy);
    line-height: 1.25;
    margin: 0 0 0.9rem 0;
}
.promesa-badge__sub {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy);
    opacity: 0.75;
    line-height: 1.55;
    max-width: 100%;
}

.icon-duotone {
    width: 64px;
    height: 64px;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-spacing {
    padding-top: 100px;
    padding-bottom: 100px;
}
@media (min-width: 768px) {
    .section-spacing {
        padding-top: 160px;
        padding-bottom: 160px;
    }
}

.heading-xl {
    letter-spacing: -0.05em;
    line-height: 0.9;
}

/* ============================================
   BLOG - FILTROS
   ============================================ */
.filter-chip {
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: 1px solid #eee;
    transition: all 0.4s ease;
    cursor: pointer;
    background: white;
}
.filter-chip:hover,
.filter-chip.active {
    background-color: var(--navy);
    color: white;
    border-color: var(--navy);
}

/* ============================================
   ARTÍCULO - TIPOGRAFÍA DE LECTURA
   ============================================ */
.article-content p {
    font-size: 1.1rem;
    line-height: 1.85;
    margin-bottom: 1.75rem;
    color: #4a4a4a;
    font-weight: 400;
}
.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    line-height: 1.25;
}
.article-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--navy);
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.article-content ul,
.article-content ol {
    margin: 0 0 1.75rem 0;
    padding-left: 1.5rem;
    color: #4a4a4a;
}
.article-content ul {
    list-style: none;
    padding-left: 0;
}
.article-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    line-height: 1.85;
    font-weight: 400;
}
.article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--orange);
}
.article-content ol {
    list-style: decimal;
}
.article-content ol li {
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    line-height: 1.85;
    padding-left: 0.25rem;
}
.article-content ol li::marker {
    color: var(--orange);
    font-weight: 700;
}
.article-content blockquote {
    border-left: 4px solid var(--orange);
    padding-left: 1.5rem;
    margin: 2.5rem 0;
    font-style: italic;
    color: var(--navy);
    font-weight: 300;
    font-size: 1.2rem;
    line-height: 1.6;
}
.article-content strong {
    font-weight: 700;
    color: #2d2d2d;
}
.article-content a {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.article-content a:hover {
    color: var(--burgundy);
}
.pull-quote {
    border-left: 4px solid var(--orange);
    padding-left: 2.5rem;
    margin: 4rem 0;
    font-size: 1.75rem;
    font-weight: 200;
    font-style: italic;
    color: var(--navy);
    line-height: 1.4;
}

/* ============================================
   WORDPRESS - COMPATIBILITY
   ============================================ */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: #6b7280; margin-top: 0.5rem; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
img.alignleft, img.alignright, img.aligncenter { max-width: 100%; height: auto; }
.wp-block-image { margin-bottom: 2rem; }
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ============================================
   FORMULARIO BOUTIQUE (página contacto)
   ============================================ */
.input-boutique {
    width: 100%;
    background-color: #fcfcfc;
    border: 1px solid #eee;
    padding: 1.1rem;
    font-size: 0.95rem;
    font-family: 'Raleway', sans-serif;
    transition: all 0.4s ease;
    outline: none;
    border-radius: 2px;
    color: #1a1a1a;
}
.input-boutique:focus {
    border-color: var(--navy);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(3,120,177,0.08);
}
.input-boutique.error {
    border-color: #e53e3e;
    background-color: #fff5f5;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.animate-spin { animation: spin 0.8s linear infinite; display: inline-block; }

/* ============================================
   TEAM CARDS (página nosotros)
   ============================================ */
.team-card .artistic-img-container img {
    filter: grayscale(1) contrast(1.4) brightness(0.7);
}
@media (max-width: 768px) {
    .team-card .artistic-img-container img {
        filter: grayscale(0.5) contrast(1.1) brightness(0.9);
    }
}
.team-card:hover .artistic-img-container img {
    filter: grayscale(0) contrast(1) brightness(1) !important;
    transform: scale(1.05) !important;
}

/* ============================================================
   FLIP CARDS — Áreas de Impacto
   Desktop: flip 3D con hover
   Móvil: toggle show/hide con click (compatible iOS Safari)
   ============================================================ */
.flip-card {
    perspective: 1200px;
    cursor: pointer;
    height: 240px;
    border-right: 1px solid rgba(3,120,177,0.1);
    border-bottom: 1px solid rgba(3,120,177,0.1);
    -webkit-tap-highlight-color: transparent; /* Quitar flash azul en iOS */
}
@media (min-width: 1024px) {
    .flip-card { height: 260px; }
}
.flip-card:nth-child(5n) { border-right: none; }
@media (max-width: 1023px) {
    .flip-card:nth-child(5n) { border-right: 1px solid rgba(3,120,177,0.1); }
    .flip-card:nth-child(2n) { border-right: none; }
}

/* ---------- DESKTOP: flip 3D ---------- */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    padding: 1.5rem;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}
@media (min-width: 768px) {
    .flip-card-front,
    .flip-card-back { padding: 1.75rem; }
}

.flip-card-front { background-color: #f2f5f9; }

.flip-card .flip-card-front h4,
.flip-card .flip-card-front h4 * {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 0 0.4rem 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: var(--burgundy) !important;
    font-family: 'Raleway', sans-serif !important;
    -webkit-text-fill-color: var(--burgundy) !important;
}
.flip-card .flip-card-front p,
.flip-card .flip-card-front p * {
    font-size: 0.6rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    margin: 0 !important;
    font-family: 'Raleway', sans-serif !important;
}

.flip-card-back {
    background-color: var(--navy);
    color: white;
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    justify-content: center;
}
.flip-card-back p {
    color: rgba(255,255,255,0.9) !important;
    line-height: 1.6 !important;
    font-size: 0.75rem !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

/* ---------- MÓVIL: sin 3D, toggle display (Safari safe) ---------- */
@media (max-width: 639px) {
    .flip-card {
        border-right: none;
        height: auto;
        perspective: none;
        -webkit-perspective: none;
    }
    .flip-card-inner {
        transform: none !important;
        -webkit-transform: none !important;
        transform-style: flat;
        -webkit-transform-style: flat;
        height: auto;
        position: static;
    }
    .flip-card-front,
    .flip-card-back {
        position: static;
        backface-visibility: visible;
        -webkit-backface-visibility: visible;
        transform: none !important;
        -webkit-transform: none !important;
        inset: auto;
        padding: 1.25rem;
        min-height: 110px;
        justify-content: flex-end;
    }
    .flip-card-back {
        display: none;
    }
    .flip-card.flipped .flip-card-front {
        display: none;
    }
    .flip-card.flipped .flip-card-back {
        display: flex;
    }
}

/* ============================================
   SOCIOS — Bio con saltos de línea correctos
   ============================================ */
.bio-text p {
    margin: 0 0 0.75rem 0;
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.75;
    color: #6b7280;
}
.bio-text p:last-child {
    margin-bottom: 0;
}

/* ============================================
   CONTENEDOR DE CONTENIDO — más estrecho y centrado
   Se usa en secciones de contenido interior
   (propósito, perspectivas, nosotros, contacto, blog, artículo).
   Las secciones de ancho completo (hero, footer)
   mantienen max-w-7xl.
   ============================================ */
/* Anclas de sección: el nav fijo no cubre el título */
.i2go-scroll-anchor {
    scroll-margin-top: 5.5rem;
}

.soluciones-section {
    background-color: #eef3f7 !important;
    position: relative;
}
.soluciones-card {
    background: #fff;
    padding: 2.25rem 1.75rem 2rem;
    text-align: left;
    border-top: 3px solid var(--navy);
    box-shadow: 0 18px 40px rgba(3, 120, 177, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.soluciones-card.is-interim { border-top-color: var(--burgundy); }
.soluciones-card.is-fraccional { border-top-color: var(--navy); }
.soluciones-card.is-experto { border-top-color: var(--orange); }
.soluciones-icon-frame {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(3, 120, 177, 0.18);
    margin-bottom: 1.75rem;
    color: var(--navy);
    flex-shrink: 0;
}
.soluciones-icon-frame svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.soluciones-highlights {
    list-style: none;
    margin: 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid rgba(3, 120, 177, 0.1);
}
.soluciones-highlights li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy);
    line-height: 1.5;
}
.soluciones-highlights li:last-child { margin-bottom: 0; }
.soluciones-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--orange);
}

.i2go-container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}
@media (min-width: 768px) {
    .i2go-container {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}
@media (min-width: 1280px) {
    .i2go-container {
        padding-left: 5rem;
        padding-right: 5rem;
    }
}

/* ============================================
   BIO TOGGLE — área de toque suficiente en móvil
   ============================================ */
.bio-toggle {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
    padding: 0 4px;
    cursor: pointer;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(3,120,177,0.3);
    font-family: 'Raleway', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--navy);
    -webkit-tap-highlight-color: transparent;
}
.bio-toggle:hover { color: var(--orange); }
.bio-toggle:focus { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Bio: estado inicial controlado por style inline en el HTML */

/* ============================================
   CARRUSEL EN LA PRENSA
   ============================================ */
.prensa-carousel { overflow: hidden; }
.prensa-track { will-change: transform; }
.prensa-slide { border: 1px solid rgba(3,120,177,0.08); }

#prensa-dots .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
#prensa-dots .dot.active {
    background: var(--navy);
    transform: scale(1.3);
}
