/* ============================================
   B2B - Estilos propios de la página
   ============================================ */

.page-b2b {
    padding-top: 0;
    position: relative;
    z-index: 1;
}

/* ----- Hero ----- */
.b2b-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    padding-top: 70px;
}

.b2b-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #02002d;
    z-index: 0;
}

.b2b-hero .container {
    position: relative;
    z-index: 3;
}

.b2b-hero-title {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 40px;
    line-height: 1.2;
    color: var(--soul-white);
    margin-bottom: 1.5rem;
}

.b2b-hero-title em {
    font-style: italic;
    font-weight: 600;
}

.b2b-hero-subtitle {
    font-family: var(--font-dm-sans);
    font-size: 20px;
    line-height: 1.6;
    color: var(--soul-text-light);
    margin-bottom: 2rem;
}

.b2b-hero-image-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.b2b-hero-image {
    width: 100%;
    height: auto;
    max-height: 430px;
    object-fit: cover;
    display: block;
}

@media (max-width: 991.98px) {
    .b2b-hero-title {
        font-size: 1.75rem;
    }
    .b2b-hero-subtitle {
        font-size: 1rem;
    }
}

/* ----- Industrias (flip-cards, mismo efecto que Servicios en portada) ----- */
.b2b-industrias {
    position: relative;
    z-index: 2;
    background-color: #02002d;
    perspective: 1000px;
}

.b2b-industria-card {
    position: relative;
    height: 100%;
    min-height: 450px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    perspective: inherit;
}

.b2b-industria-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 450px;
    background-color: #02002d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.b2b-industria-card:hover .b2b-industria-card-inner {
    transform: rotateY(180deg);
    border-color: rgba(97, 79, 255, 0.4);
    box-shadow: 0 8px 32px rgba(97, 79, 255, 0.15);
}

.b2b-industria-card-front,
.b2b-industria-card-back {
    position: absolute;
    inset: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.b2b-industria-card-front {
    z-index: 2;
    background-color: #02002d;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.b2b-industria-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 0, 45, 0.65);
    z-index: 0;
    border-radius: 12px;
}

.b2b-industria-card-front .b2b-industria-label {
    position: relative;
    z-index: 1;
}

.b2b-industria-card-back {
    z-index: 1;
    justify-content: flex-start;
    align-items: stretch;
    transform: rotateY(180deg);
    background-color: #02002d;
}

.b2b-industria-card:hover .b2b-industria-card-front {
    z-index: 1;
}

.b2b-industria-card:hover .b2b-industria-card-back {
    z-index: 2;
}

.b2b-industria-label {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.3;
    color: var(--soul-white);
}

.b2b-industria-label-back {
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.b2b-industria-card-back-text {
    font-family: var(--font-dm-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--soul-text-light);
    text-align: left;
    overflow-y: auto;
}

.b2b-industria-card-back-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .b2b-industria-card-inner {
        transition: none;
    }
    .b2b-industria-card:hover .b2b-industria-card-inner {
        transform: none;
    }
    .b2b-industria-card-front {
        display: none;
    }
    .b2b-industria-card-back {
        position: relative;
        transform: none;
    }
    .b2b-industria-card-inner {
        min-height: 0;
    }
    .b2b-industria-card {
        min-height: 280px;
    }
}

/* ----- ¿Por qué la comunicación es clave en B2B? ----- */
.b2b-porque {
    position: relative;
    z-index: 2;
}

.b2b-porque-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    height: 120%;
    background: radial-gradient(circle, rgba(97, 79, 255, 0.12) 0%, transparent 60%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.b2b-porque .container {
    z-index: 1;
}

.b2b-porque-title {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--soul-white);
    margin-bottom: 0;
}

.b2b-porque-block {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    height: 100%;
}

.b2b-porque-block p {
    font-family: var(--font-dm-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--soul-text-light);
    margin-bottom: 0;
}

/* ----- Nuestro Método ----- */
.b2b-metodo {
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Imagen de fondo parallax (solo en esta sección) */
.b2b-metodo-parallax {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('../img/fondo-circular.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    pointer-events: none;
}

.b2b-metodo-glow {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 60%;
    max-width: 600px;
    height: 100%;
    background: radial-gradient(circle, rgba(97, 79, 255, 0.15) 0%, transparent 65%);
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}

.b2b-metodo .container {
    z-index: 1;
}

.b2b-metodo-title {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 40px;
    color: var(--soul-white);
    margin-bottom: 0.5rem;
}

.b2b-metodo-subtitle {
    font-family: var(--font-dm-sans);
    font-size: 31px;
    color: var(--soul-text-light);
    margin-bottom: 0;
}

.b2b-metodo-subtitle strong {
    color: var(--soul-white);
    font-weight: 600;
}

.b2b-metodo-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    height: 100%;
    transition: var(--transition-base);
}

.b2b-metodo-item:hover {
    border-color: rgba(97, 79, 255, 0.25);
}

.b2b-metodo-num {
    display: block;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 2rem;
    color: var(--soul-purple);
    margin-bottom: 0.75rem;
    line-height: 1;
}

.b2b-metodo-item-title {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--soul-white);
    margin-bottom: 0.5rem;
}

.b2b-metodo-item-text {
    font-family: var(--font-dm-sans);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--soul-text-light);
    margin-bottom: 0;
}

/* ----- Contacto / Formulario ----- */
.b2b-contacto {
    position: relative;
    z-index: 2;
    background-color: #02002d;
}

.b2b-contacto-intro {
    font-family: var(--font-dm-sans);
    font-size: 20px;
    line-height: 1.6;
    color: var(--soul-text-light);
    margin-bottom: 1.25rem;
}

.b2b-contacto-intro strong {
    color: var(--soul-white);
}

.b2b-form-box {
    background: #FFF;
    border-radius: 16px;
    padding: 2rem;
    max-width: 100%;
}

.b2b-form {
    text-align: center;
}

.b2b-form-fields {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.b2b-form-group {
    width: 100%;
    text-align: left;
}

.b2b-form .form-label {
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 0.9375rem;
    color: #2c3345;
    margin-bottom: 0.2rem;
    display: block;
}

.b2b-input {
    width: 100%;
    background: #FFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.45rem 0.875rem;
    font-family: var(--font-dm-sans);
    font-size: 1rem;
    color: #2c3345;
}

.b2b-input::placeholder {
    color: #888;
}

.b2b-input:focus {
    border-color: var(--soul-purple);
    box-shadow: 0 0 0 3px rgba(97, 79, 255, 0.2);
    outline: 0;
}

.b2b-textarea {
    min-height: 80px;
    resize: vertical;
}

.b2b-form-tagline {
    font-family: var(--font-dm-sans);
    font-size: 1.125rem;
    font-weight: 500;
    color: #2c3345;
    margin-bottom: 0.25rem;
}

.b2b-form-tagline-sub {
    font-family: var(--font-dm-sans);
    font-size: 1rem;
    color: #2c3345;
    margin-bottom: 1.25rem;
}

.b2b-form-submit-wrap {
    margin-bottom: 1.25rem;
}

.b2b-form-submit-wrap .btn-soul-primary {
    min-width: 140px;
}

.b2b-form-link {
    color: rgba(97, 79, 255, 0.9) !important;
    text-decoration: underline;
}

.b2b-form-link:hover {
    color: var(--soul-purple) !important;
}

.b2b-form-legal {
    font-size: 0.8125rem;
    color: #2c3345;
    margin-bottom: 0;
}

.b2b-form-legal .b2b-form-link {
    color: rgba(97, 79, 255, 0.9) !important;
}

.b2b-form-legal .b2b-form-link:hover {
    color: var(--soul-purple) !important;
}

@media (max-width: 991.98px) {
    .b2b-hero-image-wrap {
        margin-top: 2rem;
    }
    .b2b-hero-image {
        max-height: 40vh;
    }
}
