/* --- TYPOGRAPHY MACRO --- */

.hero-title-macro {
    font-size: clamp(2.75rem, 6.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

@media (min-width: 1024px) {
    .hero-title-macro {
        font-size: clamp(2.75rem, 5vw, 3.25rem);
    }
}

@media (min-width: 1440px) {
    .hero-title-macro {
        font-size: clamp(3.25rem, 5.5vw, 4rem);
    }
}

@media (min-width: 1536px) {
    .hero-title-macro {
        font-size: clamp(3.5rem, 6.5vw, 4.5rem);
    }
}

.hero-subtitle-macro {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: #a1a1aa;
    line-height: 1.5;
    margin-bottom: 2.5rem;
}

.text-accent-glow {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255,255,255,0.4);
}

.title-massive {
    font-size: clamp(3.5rem, 8.5vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .title-massive {
        font-size: clamp(3.5rem, 5vw, 4rem);
    }
}

@media (min-width: 1440px) {
    .title-massive {
        font-size: clamp(3.5rem, 6.5vw, 5rem);
    }
}

@media (min-width: 1536px) {
    .title-massive {
        font-size: clamp(3.5rem, 8.5vw, 6rem);
    }
}

.title-infrastructure {
    font-size: clamp(2.5rem, 9vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .title-infrastructure {
        font-size: clamp(2.5rem, 5vw, 4.5rem);
    }
}

.subtitle-large {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.5;
    font-weight: 400;
}

/* --- BOTONES UNIFICADOS --- */
.btn-cro-primary {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: #f59e0b !important;
    padding: 1.25rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    border: none;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.3);
    cursor: pointer;
    width: 100%;
}

.btn-cro-primary:hover {
    transform: translateY(-4px);
    background: #fbbf24 !important;
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.5);
}

.btn-cro-primary span {
    color: #000000 !important;
    font-size: 1.125rem;
    font-weight: 800;
}

.btn-cro-primary small {
    color: #451a03 !important;
    font-size: 0.85rem;
    margin-top: 0.35rem;
    font-weight: 600;
}

.btn-secondary-b2b {
    background: #27272a;
    color: #ffffff;
    border: 1px solid #3f3f46;
    padding: 1.25rem 2.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    width: 100%;
    display: block;
}

.btn-secondary-b2b:hover {
    background: #3f3f46;
    border-color: #52525b;
}

@media (min-width: 768px) {
    .btn-cro-primary {
        width: fit-content;
        display: flex;
    }
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.25rem;
    transition: gap 0.3s, border-color 0.3s;
    margin-top: 2rem;
}

.link-arrow:hover {
    gap: 1rem;
    border-color: #ffffff;
}

/* --- MACRO CARDS --- */
.macro-card {
    background: transparent;
    padding: 3rem 2rem 3rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: border-bottom-color 0.3s ease;
}

.macro-card > * {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.macro-card:hover {
    border-bottom-color: #ffffff;
}

.macro-card:hover > * {
    transform: translateX(2rem);
}

.macro-icon {
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.macro-icon svg {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.04));
}

.card-title-large {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.card-desc-large {
    font-size: 1.125rem;
    color: #a1a1aa;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .macro-card {
        max-width: 540px;
    }
}

@media (min-width: 1024px) {
    .macro-card {
        max-width: none;
    }
}

/* --- Z-PATTERN ELEMENTS --- */
.z-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #71717a;
    display: block;
    margin-bottom: 1rem;
}

.z-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.z-desc {
    font-size: 1.125rem;
    color: #a1a1aa;
    line-height: 1.6;
}

.z-visual {
    width: 100%;
    aspect-ratio: 4/3;
    background: #111;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}

.z-visual-wrapper {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #111;
    overflow: hidden;
    position: relative;
    transition: border-color 0.4s ease;
}

.z-visual-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.8);
}

.z-visual-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.z-visual-wrapper:hover .z-visual-img {
    transform: scale(1.04);
}

@media (min-width: 768px) {
    .page-b2b .z-title {
        font-size: clamp(2.5rem, 4.375vw, 3.75rem);
    }
}

@media (min-width: 1024px) {
    .page-b2b .z-title {
        font-size: clamp(2rem, 3.5vw, 3rem);
    }
}

/* --- FORMULARIOS UNIFICADOS --- */
.form-core {
    background: #000000;
    padding: clamp(2rem, 4vw, 4rem);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.9rem;
    color: #a1a1aa;
    font-weight: 600;
}

.input-group input,
.input-group textarea,
.input-group select {
    background: #0a0a0a;
    border: 1px solid #333;
    color: white;
    padding: 1rem;
    border-radius: 6px;
    font-family: var(--font-sans);
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.privacy-note {
    text-align: center;
    font-size: 0.85rem;
    color: #71717a;
    margin-top: 1.5rem;
}

.privacy-note a {
    color: #ffffff;
    text-decoration: underline;
    white-space: nowrap;
}

.w-100 {
    width: 100%;
}

/* --- ESTADOS Y GRADIENTE DE META --- */
.is-hidden {
    display: none !important;
}

.is-active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.progress-bar-container {
    width: 100%;
    background: #27272a;
    border-radius: 99px;
    height: 8px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent-b2b);
    border-radius: 99px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-text {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: #a1a1aa;
    margin-top: 0.5rem;
    font-family: var(--font-mono);
}

.progress-step-1 .progress-bar-fill { width: 33.33%; }
.progress-step-2 .progress-bar-fill { width: 66.66%; }
.progress-step-complete .progress-bar-fill { width: 100%; }
