/* Configuración general del body con diseño profesional */
body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Overlay pattern para añadir textura sutil */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.navbar {
    max-width: 90%;
    margin: 20px auto 0 auto;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-navbar {
    background: rgba(86, 186, 237, 0.9);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    width: 249px;
    height: 81px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Container principal con glassmorphism */
.container {
    position: relative;
    z-index: 1;
}

/* Título principal con glassmorphism */
.container h1 {
    text-align: center;
    background: rgba(254, 123, 30, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 20px 30px;
    color: white;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin: 30px auto;
    box-shadow: 
        0 8px 32px rgba(254, 123, 30, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.container h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.container h1:hover::before {
    left: 100%;
}

.container h1:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(254, 123, 30, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Estilos de formulario con diseño profesional */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    border: 2px solid rgba(254, 123, 30, 0.3) !important;
    border-radius: 12px;
    transition: all 0.3s ease;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #fe7b1e !important;
    box-shadow: 
        0 0 0 3px rgba(254, 123, 30, 0.1),
        0 8px 25px rgba(254, 123, 30, 0.15);
    outline: none;
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.95);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover,
select:hover,
textarea:hover {
    border-color: rgba(254, 123, 30, 0.6) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

#inputDisabled {
    color: #666 !important;
    background: rgba(233, 236, 239, 0.8);
    opacity: 1; 
    max-width: 80px;
    border: 2px solid rgba(254, 123, 30, 0.3) !important;
}

/* Card headers con glassmorphism */
.card-heade {
    background: rgba(254, 123, 30, 0.9);
    backdrop-filter: blur(15px);
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.card-heade::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.card-body {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 0 0 20px 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: none;
    position: relative;
}

/* Botones con diseño premium */
.btn-primary,
.btn-primar {
    background: linear-gradient(135deg, #fe7b1e 0%, #f79038 100%);
    border: none;
    border-radius: 50px;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: white;
    padding: 15px 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 8px 25px rgba(254, 123, 30, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary::before,
.btn-primar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before,
.btn-primar:hover::before {
    left: 100%;
}

.btn-primary:hover,
.btn-primar:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(254, 123, 30, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #f79038 0%, #fe7b1e 100%);
}

.btn-primary:active,
.btn-primar:active {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s ease;
}

.btn-warning,
.btn-warning1 {
    background: linear-gradient(135deg, #da7d12 0%, #f79038 100%);
    border: none;
    border-radius: 50px;
    color: white;
    padding: 15px 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 8px 25px rgba(218, 125, 18, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-warning:hover,
.btn-warning1:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(218, 125, 18, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Cards con glassmorphism avanzado */
.card {
    border-radius: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

/* Card de información legal mejorada */
.alert-info {
    background: rgba(227, 242, 253, 0.9) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(254, 123, 30, 0.3) !important;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.card-text {
    color: #2c3e50;
    text-align: justify;
    line-height: 1.7;
    padding: 20px;
    font-size: 0.95rem;
}

/* Labels con diseño profesional */
label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: color 0.3s ease;
}

label i {
    margin-right: 8px;
    color: #fe7b1e;
    font-size: 1.1em;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Efectos mejorados para la experiencia */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-control {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:hover {
    border-color: rgba(254, 123, 30, 0.6) !important;
}

/* Indicador de campo requerido */
.form-control[required] {
    position: relative;
}

.form-control[required]::after {
    content: '*';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #e74c3c;
    font-weight: bold;
}

/* Animaciones mejoradas */
@keyframes slideInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.card {
    animation: slideInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.container h1 {
    animation: slideInUp 0.6s ease-out, float 6s ease-in-out infinite 2s;
}

/* Efectos de partículas decorativas */
.container::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(254, 123, 30, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    z-index: -1;
}

.container::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(86, 186, 237, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
    z-index: -1;
}

/* Responsive improvements con mejor UX */
@media (max-width: 768px) {
    body {
        background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    }
    
    .container h1 {
        font-size: 1.8rem;
        padding: 15px 20px;
        margin: 20px auto;
    }
    
    .btn-primary,
    .btn-primar,
    .btn-warning,
    .btn-warning1 {
        width: 100%;
        margin: 10px 0;
        padding: 18px;
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        padding: 15px;
        font-size: 1rem;
    }
    
    .navbar {
        margin: 10px auto;
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .container h1 {
        font-size: 1.5rem;
        padding: 12px 15px;
    }
    
    .card-heade {
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 15px;
    }
}

/* Mejoras para accesibilidad */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Modo oscuro opcional */
@media (prefers-color-scheme: dark) {
    .card-body {
        background: rgba(30, 30, 30, 0.95);
        color: #e0e0e0;
    }
    
    label {
        color: #e0e0e0;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        background: rgba(40, 40, 40, 0.9);
        color: #e0e0e0;
        border-color: rgba(254, 123, 30, 0.4) !important;
    }
}