/* ==========================================================================
   Ahí Voy - Diseño Magnánimo, Premium y Animado
   ========================================================================== */

/* Reseteo y Tipografía General (Poppins) */
body {
    background: linear-gradient(135deg, #e1005b 0%, #f35325 50%, #f9b000 100%);
    background-attachment: fixed;
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.brand-logo {
    max-width: 240px;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.2));
}

/* Tipografía Imponente */
.hero-title {
    letter-spacing: -1.5px;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.subtitle-spacing {
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.85);
}

.tracking-wide {
    letter-spacing: 1.5px;
    font-size: 0.85rem;
}

/* Efecto de Cursor Parpadeante para el Typewriter */
.cursor {
    display: inline-block;
    color: #f9b000;
    font-weight: 300;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Tarjeta de Formulario (Glassmorphism) */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    max-width: 500px;
    padding: 3.5rem 3rem;
    box-sizing: border-box;
}

/* Colores de texto dentro de la tarjeta */
.form-title {
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.input-label {
    color: #4a4a4a;
    font-size: 0.95rem;
}

/* Inputs y Select Premium - Homologados en padding */
.custom-input {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem 1.5rem !important;
    font-size: 1.05rem;
    color: #2b2b2b;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    box-shadow: none;
}

.custom-input::placeholder {
    color: #a0aec0;
    font-weight: 300;
}

.custom-input:focus {
    border-color: #f35325;
    box-shadow: 0 0 0 4px rgba(243, 83, 37, 0.15) !important;
    background-color: #ffffff;
    outline: none;
}

/* Para garantizar que la flecha del Select no descuadre visualmente el padding */
select.custom-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 16px 12px;
}

/* Botón Minimalista Imponente - Homologado */
.custom-btn {
    background: linear-gradient(135deg, #e1005b, #f35325);
    border: none;
    color: white;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-btn:hover {
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(225, 0, 91, 0.4) !important;
}

.custom-btn:active {
    transform: translateY(2px);
}

.custom-btn i {
    transition: transform 0.3s ease;
}

.custom-btn:hover i {
    transform: translateX(6px);
}

/* Animaciones de Entrada */
.content-fade-in {
    animation: fadeSlideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.form-fade-in {
    opacity: 0;
    animation: fadeSlideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

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

/* ==========================================================================
   🟢 SOLUCIÓN AL LAYOUT SHIFT (Salto de texto dinámico)
   ========================================================================== */
.contenedor-animado {
    display: block;
   min-height: 2.5em; /* En PC la frase ocupa 1 línea */
}

/* Responsividad para móviles y control de saltos */
@media (max-width: 991px) {
    .contenedor-animado {
        min-height: 2.4em; /* En tablets/móviles grandes la frase salta a 2 líneas */
    }
}

@media (max-width: 768px) {
    .glass-card {
        padding: 2.5rem 1.5rem;
    }
    .display-3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .contenedor-animado {
        min-height: 3.7em; /* Reserva 3 líneas */
    }
}