/* Formulario Comerciales - Mangafest 2027 con Bootstrap + Alpine.js */

:root {
    --primary-color: #7cdbff;
    --primary-dark: #2b3d7f;
    --bg-dark: #020040;
    --bg-secondary: #001966;
}

* {
    box-sizing: border-box;
}

body.mangafest-form {
    background-color: var(--bg-dark);
    color: #fff;
    font-family: 'Sora', 'Trebuchet MS', sans-serif;
}

/* ===== HEADER ===== */
.bg-mangafest {
    background-color: var(--bg-dark) !important;
    border-bottom: 3px solid var(--primary-color);
}

.navbar-dark .navbar-brand {
    color: #fff !important;
}

.navbar-dark .navbar-text {
    color: #fff !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: #fff !important;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.logo-header {
    transition: transform 0.2s ease;
    filter: brightness(1);
}

.logo-header:hover {
    transform: scale(1.05);
}

.cabecera-imagen {
    width: 100%;
    background-color: #000;
    overflow: hidden;
    border-bottom: 2px solid rgba(124, 219, 255, 0.35);
}

.cabecera-imagen__img {
    display: block;
    width: 100%;
    height: min(42vw, 460px);
    object-fit: cover;
    object-position: center;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #2b3d7f 0%, #020040 50%, #0a1a4d 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(124, 219, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 219, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-family: 'Sora', 'Trebuchet MS', sans-serif;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

.hero-section h2 {
    font-family: 'Sora', 'Trebuchet MS', sans-serif;
    text-transform: none;
    letter-spacing: 0.3px;
    font-weight: 600;
    line-height: 1.3;
}

/* ===== TARJETA DE FORMULARIO ===== */
.card {
    background-color: rgba(11, 26, 77, 0.6) !important;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.92) !important;
}

.card.border-info {
    border-color: var(--primary-color) !important;
}

.card p,
.card li,
.card span,
.card strong {
    color: inherit;
}

.card-body {
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ESTILOS BOOTSTRAP PERSONALIZADOS ===== */
.form-control,
.form-select {
    background-color: rgba(11, 26, 77, 0.5) !important;
    border-color: rgba(124, 219, 255, 0.2) !important;
    color: #fff !important;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(11, 26, 77, 0.8) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 10px rgba(124, 219, 255, 0.3) !important;
    color: #fff;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.3) !important;
}

.form-label {
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-check-input {
    background-color: rgba(11, 26, 77, 0.5);
    border-color: rgba(124, 219, 255, 0.2);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(124, 219, 255, 0.25);
}

.form-check-label {
    color: #fff;
    cursor: pointer;
    transition: color 0.2s ease;
}

.form-check-label:hover {
    color: var(--primary-color);
}

/* ===== TÍTULOS ===== */
h5.text-info {
    color: var(--primary-color) !important;
    font-family: 'Sora', 'Trebuchet MS', sans-serif;
    text-transform: none;
    letter-spacing: 0.3px;
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.3;
}

/* ===== BOTONES ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5eb8d8 100%) !important;
    border-color: var(--primary-color) !important;
    color: var(--bg-dark) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 219, 255, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 219, 255, 0.5);
    background: linear-gradient(135deg, #5eb8d8 0%, var(--primary-color) 100%) !important;
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===== ALERTAS ===== */
.alert {
    border-radius: 8px;
    border-width: 2px;
    animation: slideIn 0.4s ease-out;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1) !important;
    border-color: #4caf50 !important;
    color: #4caf50 !important;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

.alert i {
    font-size: 1.2rem;
}

/* ===== LÍNEAS DIVISORAS ===== */
.border-info {
    border-color: var(--primary-color) !important;
}

hr.border-info {
    border-color: rgba(124, 219, 255, 0.3) !important;
}

/* ===== FOOTER ===== */
.bg-mangafest-dark {
    background-color: var(--bg-secondary) !important;
    border-top: 1px solid rgba(124, 219, 255, 0.2);
}

.text-info {
    color: var(--primary-color) !important;
    transition: color 0.2s ease;
}

.mangafest-form .text-muted,
.mangafest-form .text-muted.small,
.mangafest-form .card .text-muted,
.mangafest-form .card .text-muted.small {
    color: rgba(255, 255, 255, 0.84) !important;
    opacity: 1 !important;
}

.mangafest-form footer .text-muted,
.mangafest-form footer .text-muted.small {
    color: rgba(255, 255, 255, 0.72) !important;
    opacity: 1 !important;
}

.mangafest-form footer p {
    color: rgba(255, 255, 255, 0.82) !important;
}

.mangafest-form footer hr.border-secondary {
    border-color: rgba(124, 219, 255, 0.55) !important;
    opacity: 1 !important;
}

a.text-info:hover {
    color: #fff !important;
}

footer i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* ===== MENSAJES DE ERROR ===== */
.invalid-feedback {
    color: #dc3545 !important;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===== TEXTAREA ===== */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ===== SPINNER ===== */
.spinner-border {
    color: var(--bg-dark) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .cabecera-imagen__img {
        height: 45vw;
        min-height: 170px;
    }

    .hero-section {
        padding: 40px 20px !important;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section h2 {
        font-size: 1.25rem;
    }

    .card-body {
        padding: 1.5rem !important;
    }

    .col-lg-800,
    .col-xl-900 {
        max-width: 100%;
    }

    h5.text-info {
        font-size: 1.1rem;
    }

    .btn-primary {
        width: 100%;
        min-height: 45px;
    }
}

@media (max-width: 576px) {
    .cabecera-imagen__img {
        height: 50vw;
        min-height: 140px;
    }

    .card {
        margin: 0 10px;
    }

    .card-body {
        padding: 1rem !important;
    }

    .form-label {
        font-size: 0.85rem;
    }

    h5.text-info {
        font-size: 1rem;
    }

    .btn-primary {
        font-size: 0.9rem;
    }
}

/* ===== SCROLL SMOOTH ===== */
html {
    scroll-behavior: smooth;
}

/* ===== ACCESIBILIDAD ===== */
.form-control:focus-visible,
.form-select:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== ANIMACIÓN DE CARGA ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.card-body {
    animation: fadeIn 0.5s ease-out;
}
