/* --- TYPOGRAPHY MACRO --- */
.title-massive {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

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

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

.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);
}

/* --- BUTTONS --- */
.btn-macro-primary {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 1.25rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s, border-color 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    cursor: pointer;
    width: fit-content;
}

.btn-macro-primary:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-macro-primary .btn-text {
    color: #ffffff !important;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.btn-macro-primary .btn-subtext {
    color: #a1a1aa !important;
    font-size: 0.85rem;
    margin-top: 0.35rem;
    font-weight: 400;
}

.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;
    /* Se añade 2rem de padding derecho para absorber el desplazamiento sin desbordar */
    padding: 3rem 2rem 3rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: border-bottom-color 0.3s ease;
}

/* Se delega la animación a los elementos hijos para no alterar el contenedor padre */
.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;
}

/* --- 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);
}

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

.input-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 1rem 0;
    font-size: 1.125rem;
    color: #ffffff;
    font-family: var(--font-sans);
    transition: border-color 0.3s;
    border-radius: 0;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-bottom-color: #ffffff;
}

.input-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-size: 1.125rem;
    color: #71717a;
    pointer-events: none;
    transition: transform 0.3s, font-size 0.3s, color 0.3s;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    transform: translateY(-1.75rem);
    font-size: 0.85rem;
    color: #ffffff;
}

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

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

.w-100 {
    width: 100%;
}

/* --- Z-PATTERN VISUAL WRAPPERS --- */
.z-visual-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    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);
}
