html, body {
    height: 100%;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
}

/* =========================
   VIDEO BACKGROUND
========================= */
#myVideo {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: -1;
}

/* =========================
   FORMULARIO IZQUIERDA
========================= */
.form-container {
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    background: rgba(255,255,255,0.95);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
    z-index: 10;
}

.form-container h3,
.form-container h4,
.form-container h5 {
    text-align: center;
}

/* =========================
   TEXTO DERECHA CENTRADO REAL
========================= */
.text-overlay-wrapper {
    position: absolute;
    top: 0;
    left: calc(5% + 350px);
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.text-overlay {
    text-align: center;
    color: #fff;
    max-width: 600px;
    padding: 1rem;
}

/* =========================
   LOGO SVG
========================= */
.logo-a-svg {
    display: block;
    margin: 0 auto 18px auto;
    opacity: 0.95;
}

/* Giro elegante */
.logo-animate {
    transform-origin: center;
    opacity: 0;
    animation: logoIntro 1.6s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes logoIntro {
    0% {
        transform: rotate(-8deg) scale(0.95);
        opacity: 0;
    }
    60% {
        transform: rotate(2deg) scale(1.02);
        opacity: 1;
    }
    100% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

/* =========================
   TEXTO ANIMADO
========================= */
.typing-text {
    min-height: 1.2em;
    opacity: 0.95;
}

.text-overlay p.typing-text {
    white-space: normal;
    font-size: 1.25rem;
    opacity: .9;
}

.text-overlay h1 {
    font-size: 3rem;
    margin-bottom: .5rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
    .form-container {
        position: relative;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        margin-top: 2rem;
    }

    .text-overlay-wrapper {
        position: relative;
        left: 0;
        height: auto;
        margin-top: 3rem;
    }
}