/* public/assets/css/about-us.css */

:root {
    --brutalist-shadow: 6px 6px 0px #1b1b1b;
    --brutalist-border: 2px solid #1b1b1b;
    --color-notion-text: #1b1b1b;
    --accent-color-light: rgba(var(--accent-color-rgb), 0.1);
}

body {
    background-color: var(--color-white);
    color: var(--color-notion-text);
    font-family: 'Satoshi', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: var(--brutalist-border) !important;
}

/* Divisores Horizontales */
.section-divider {
    width: 100%;
    height: 2px;
    background-color: #1b1b1b;
    margin: 4rem 0;
}

/* --- FULL WIDTH SECTIONS --- */
.section-full {
    width: 100%;
    padding: 6rem 0;
}

.section-bg-gray {
    background-color: #f9f9f9;
}

.section-bg-white {
    background-color: #fff;
}

/* Hero Section */
.about-hero {
    padding: 180px 2rem 100px;
    text-align: center;
}

.hero-logo {
    width: 240px;
    height: auto;
    margin-bottom: 2rem;
}

.about-hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

#auto-type {
    color: var(--accent-color);
    position: relative;
}

#auto-type::after {
    content: '|';
    margin-left: 2px;
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-intro {
    font-size: 1.4rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Claude Style Selector (V3) --- */
.selector-section {
    padding-bottom: 6rem;
}

.selector-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.selector-tabs-container {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 0px;
    max-width: 900px;
}

.feature-tab {
    padding: 0.8rem 1.4rem;
    background: #ffffff;
    border: 2px solid #1b1b1b;
    border-radius: 12px;
    box-shadow: 5px 5px 0 #1b1b1b;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    transform: translate(0, 0);
    color: #1b1b1b;
}

.feature-tab:hover {
    transform: translate(-1px, -1px);
    box-shadow: 6px 6px 0 #1b1b1b;
    background: #f9f9f9;
}

.feature-tab.active {
    background: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 0 0 transparent;
    transform: translate(5px, 5px);
}

.selector-main-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    align-items: flex-start;
    margin-top: 15px;
}

.selector-window {
    background: #fff;
    border: var(--brutalist-border);
    border-radius: 20px;
    box-shadow: var(--brutalist-shadow);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.window-top-bar {
    height: 40px;
    background: #f1f1f1;
    border-bottom: var(--brutalist-border);
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.selector-window-content {
    padding: 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.selector-content-inner h3 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.selector-content-inner p {
    font-size: 1.25rem;
    line-height: 1.8;
}

/* --- Gallery Accordion --- */
.gallery-section {
    padding-bottom: 8rem;
}

.gallery-container {
    display: flex;
    gap: 1.5rem;
    height: 500px;
}

.gallery-item {
    flex: 1;
    background: #f0f0f0;
    border: var(--brutalist-border);
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item.active {
    flex: 3;
    box-shadow: 10px 10px 0 var(--accent-color);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s;
}

.gallery-item.active .gallery-item-overlay {
    opacity: 0;
}

.gallery-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.gallery-progress-fill {
    width: 0;
    height: 100%;
    background: var(--accent-color);
}

/* --- Gallery Info & Transitions --- */
.gallery-info {
    margin-top: 3rem;
    text-align: center;
    max-width: 900px;
    margin: 3rem auto 0;
    position: relative;
    min-height: 120px;
    overflow: hidden;
}

.gallery-info-inner {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateX(0);
}

/* Estados de la animación direccional */
.gallery-info-inner.exit {
    opacity: 0;
    transform: translateX(-40px);
}

.gallery-info-inner.enter {
    opacity: 0;
    transform: translateX(40px);
}

.gallery-info h3 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.gallery-info p {
    font-size: 1.2rem;
    color: #555;
}

/* --- MARQUEE --- */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: #f9f9f9;
    padding: 3rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee-scroll 60s linear infinite; /* Un poco más lento para legibilidad */
    gap: 10rem;
    align-items: center;
}

.marquee-logo {
    display: block;
    height: 50px;
    width: auto;
    filter: grayscale(1) brightness(0.8);
    opacity: 0.7;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.marquee-container:hover .marquee-logo {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}

/* Tooltip Premium */
.custom-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    background: rgba(27, 27, 27, 0.8); /* Reducido para que el blur sea más visible */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.15);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -140%);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.2s ease-out;
    white-space: nowrap;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* --- PILLARS --- */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding-top: 4rem;
}

.pillar-card {
    border-radius: 12px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid #1b1b1b;
    background: #fff;
}

#pricing-conversion {
    margin-top: 0;
}

.pillar-card:hover {
    transform: translate(-8px, -8px);
    box-shadow: 8px 8px 0px var(--accent-color);
}

.pillar-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.pillar-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    border-bottom: 2px dashed rgba(128, 128, 128, 0.3);
    padding-bottom: 1rem;
    margin: 0;
}

/* --- PRICING REPLICATION --- */
.pricing-wrapper {
    display: flex;
    gap: 1.2rem !important;
    /* Reducido para que entren 4 en 1400px */
    align-items: stretch;
    justify-content: center;
    width: 100%;
    flex-wrap: nowrap;
    /* Forzamos una sola línea en PC */
    z-index: 2;
    margin: 0 auto;
}

.pricing-card-v2 {
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid #1b1b1b;
    text-align: left;
    background: #fff;
    width: calc(25% - 1.2rem);
    /* Ancho relativo para asegurar 4 columnas */
    min-width: 250px;
}

/* Estilo específico para el card Pro que tiene scale */
.pricing-card-v2.card-theme-pro {
    width: calc(25%) !important;
    min-width: 280px;
}

.pricing-card-v2 h3 {
    font-size: 1.6rem;
    border-bottom: 2px dashed rgba(128, 128, 128, 0.3);
    padding-bottom: 1rem;
    margin: 0;
}

.pricing-card-v2 .price-val {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0.5rem 0;
}

.pricing-card-v2 ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pricing-card-v2 li {
    display: flex;
    align-items: flex-start;
    font-size: 0.8rem;
    line-height: 1.35;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.pricing-card-v2 li i {
    margin-right: 12px;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.btn-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 1.5rem;
    height: 50px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid #1b1b1b;
    background: #fff;
    color: #1b1b1b;
}

.btn-pricing:hover {
    transform: translate(-5px, -5px);
    box-shadow: 5px 5px 0px #1b1b1b;
}

.card-theme-dark:hover {
    transform: translate(-8px, -8px);
    box-shadow: 8px 8px 0px var(--accent-color);
}

.card-theme-dark li i {
    color: var(--accent-color) !important;
}

.card-theme-pro {
    background: #EDF2E8;
    border: 3px solid #1b1b1b;
    transform: scale(1.05);
    z-index: 10;
}

.card-theme-pro:hover {
    transform: scale(1.05) translate(-6px, -6px);
    box-shadow: 6px 6px 0px var(--accent-green);
    border-color: var(--accent-green);
}

.card-theme-pro .price-val {
    color: var(--accent-green) !important;
}

.card-theme-pro li i {
    color: var(--accent-green);
}

.pro-badge,
.dark-badge,
.vital-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 2px solid #1b1b1b;
    padding: 4px 15px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* --- FAQ MODULAR --- */
.faq-section {
    padding: 100px 0;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 2px solid #1b1b1b;
    border-radius: 12px;
    background: #fff;
    box-shadow: 4px 4px 0px #1b1b1b;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 900;
    font-size: 1.15rem;
}

.faq-answer {
    max-height: 0;
    padding: 0 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
    line-height: 1.6;
    color: #555;
}

.faq-item.active {
    box-shadow: 6px 6px 0px var(--accent-color);
    transform: translate(-2px, -2px);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem 2rem;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Story / Closing Block */
.story-card {
    background: #fff;
    border: var(--brutalist-border);
    border-radius: 16px;
    padding: 4rem;
    box-shadow: 12px 12px 0 #1b1b1b;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.story-card h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2.5rem;
    border-bottom: 4px solid var(--accent-color);
    display: inline-block;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .about-hero h1 {
        font-size: 3rem;
    }

    .selector-main-layout {
        grid-template-columns: 1fr;
    }

    .pillar-grid {
        grid-template-columns: 1fr;
    }

    .gallery-container {
        height: 400px;
    }

    .pricing-wrapper {
        flex-wrap: wrap;
        /* En mobile volvemos a wrap */
    }

    .pricing-card-v2 {
        width: 100%;
        max-width: 350px;
    }
}

/* 1. PLAN BÁSICO & PLAN EMPRESARIAL (Theme Negro -> Hover Accent) */
.card-theme-dark {
    background: var(--color-white);
    color: var(--color-black);
}

/* Hover Accent */
.card-theme-dark:hover {
    transform: translate(-8px, -8px);
    /* Card pop-out */
    box-shadow: 8px 8px 0px var(--accent-color);
    border-color: var(--color-black);
}

.card-theme-dark li i {
    color: var(--accent-color) !important;
}

.card-theme-dark:hover h3,
.card-theme-dark:hover li i {
    color: var(--accent-color) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-theme-dark .btn-pricing {
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-black);
}

.card-theme-dark .btn-pricing:hover {
    color: var(--color-black);
    box-shadow: 4px 4px 0px var(--accent-color);
}

/* 2. PLAN PROFESIONAL (Centro, Grande, Verde) */
.card-theme-pro {
    padding: 3rem 2rem;
    background: #EDF2E8;
    border: 3px solid var(--color-black);
    color: var(--color-black);
    transform: scale(1.05);
    z-index: 10;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 2);
}

.card-theme-pro:hover {
    transform: scale(1.05) translate(-6px, -6px);
    box-shadow: 6px 6px 0px var(--accent-green);
    border: 3px solid var(--accent-green);
}

.card-theme-pro h3 {
    color: var(--color-black) !important;
    font-size: 1.8rem;
}

.card-theme-pro .price-val {
    color: var(--accent-green) !important;
    font-size: 2.6rem;
}

.card-theme-pro li i {
    color: var(--accent-green);
}

.card-theme-pro .btn-pricing {
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-black);
    height: 55px;
    font-size: 1.1rem;
}

.card-theme-pro .btn-pricing:hover {
    background: var(--color-white);
    color: var(--accent-green);
    border-color: var(--accent-green);
    box-shadow: 5px 5px 0px var(--accent-green);
}

/* Etiqueta Recomendado (Flotante) */
.pro-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
    color: var(--color-black);
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 0.95rem;
    border: 3px solid var(--color-black);
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-theme-pro:hover .pro-badge {
    background: var(--accent-green);
    color: var(--color-white);
    border-color: var(--accent-green);
}

/* Etiqueta A Medida (Flotante) */
.dark-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
    color: var(--color-black);
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    border: 2px solid var(--color-black);
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-theme-dark:hover .dark-badge {
    background: var(--accent-color);
    color: var(--color-white);
    border-color: var(--color-black);
}

/* 3. PLAN VITALICIO (Derecha Dócil, Pequeño, Fondo Gris Claro) */
.card-theme-vital {
    width: 280px;
    padding: 1.5rem;
    background: #f0f0f0;
    color: var(--color-black);
    border: 2px dashed #ccc;
    font-size: 0.9rem;
    /* Subordinación visual */
    opacity: 0.9;
}

.card-theme-vital:hover {
    background: var(--color-white);
    transform: translate(-3px, -3px);
    box-shadow: 4px 4px 0px var(--color-black);
    border: 2px solid var(--color-black);
    opacity: 1;
}

.card-theme-vital h3 {
    font-size: 1.3rem;
    color: var(--color-black) !important;
    padding-bottom: 0.5rem;
}

.card-theme-vital .price-val {
    font-size: 1.6rem;
    color: var(--color-black) !important;
}

.card-theme-vital li i {
    color: var(--accent-color);
    font-size: 1rem;
}

.card-theme-vital .btn-pricing {
    height: 40px;
    font-size: 0.9rem;
    background: var(--color-white);
    color: var(--color-black);
    border-color: #888;
}

.card-theme-vital:hover .btn-pricing {
    border-color: var(--color-black);
}

.card-theme-vital .btn-pricing:hover {
    box-shadow: 3px 3px 0px var(--accent-color);
}

/* Badge Vitalicio */
.vital-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #e0e0e0;
    color: var(--color-black);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.7rem;
    border: 1px solid #aaa;
    white-space: nowrap;
}

.card-theme-vital:hover .vital-badge {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

/* =========================================================
   MOBILE PRICING CAROUSEL OVERRIDES (SWIPER)
========================================================= */
@media (max-width: 1024px) {
    .pricingSwiper {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        padding-top: 0.5rem;
        padding-bottom: 3.5rem;
    }

    .pricingSwiper .swiper-wrapper {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    .pricingSwiper .swiper-slide {
        box-sizing: border-box !important;
        width: 320px !important;
        max-width: 85vw !important;
        height: auto;
        align-self: stretch;
        margin-top: 2rem !important;
    }

    .pricingSwiper .card-theme-pro {
        transform: scale(1) !important;
    }

    .pricingSwiper .card-theme-pro:hover {
        transform: scale(1) translate(-4px, -4px) !important;
    }

    .pricing-pagination {
        position: absolute !important;
        bottom: 10px !important;
        left: 0 !important;
        width: 100% !important;
        text-align: center;
        z-index: 10;
        display: block !important;
    }
}

/* =========================================================
   RESPONSIVE ZOOM (BURBUJAS) PARA PREVENIR RECORTES EN PANTALLAS DE PC/LAPTOP
========================================================= */
@media (max-width: 1600px) and (min-width: 769px),
(max-height: 960px) and (min-width: 769px) {
    .scale-wrapper {
        zoom: 0.85;
    }
}

@media (max-width: 1366px) and (min-width: 769px),
(max-height: 850px) and (min-width: 769px) {
    .scale-wrapper {
        zoom: 0.8;
    }
}

@media (max-width: 1280px) and (min-width: 769px),
(max-height: 750px) and (min-width: 769px) {
    .scale-wrapper {
        zoom: 0.75;
    }
}

@media (max-height: 700px) and (min-width: 769px) {
    .scale-wrapper {
        zoom: 0.65;
    }
}

@media (max-height: 600px) and (min-width: 769px) {
    .scale-wrapper {
        zoom: 0.55;
    }
}