/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Anek Kannada', sans-serif;
    background-image: url('/Inscripciones/img/bg-drone.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container Layout */
.container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Left Panel */
.left-panel {
    flex: 1;
    background: linear-gradient(135deg, rgba(0, 171, 182, 0.85), rgba(0, 171, 182, 0.75), rgba(0, 140, 150, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 40px;
    color: white;
    position: relative;
    z-index: 2;
}

.logo-section {
    margin-bottom: 40px;
    margin-top: 40px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.logo {
    max-width: 300px;
    height: auto;
}

.left-content {
    text-align: left;
    max-width: 500px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    opacity: 1;
    transition: opacity 0.4s ease-out;
}

.left-content.fade-out {
    opacity: 0;
}

.left-content.fade-in {
    opacity: 1;
}

.main-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.step-indicator {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 15px;
    font-weight: 500;
    text-align: left;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
    text-align: left;
}

/* Right Panel */
.right-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.form-container {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-height: 80vh;
    overflow-y: auto;
}

/* Step Content - Hidden templates */
.step-content {
    display: none;
    visibility: hidden;
    position: absolute;
    left: -9999px;
    top: -9999px;
}

/* Form container animations */
.form-container {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease-out;
}

.form-container.fade-out {
    opacity: 0;
}

.form-container.fade-in {
    opacity: 1;
}

.right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.right-content h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #00abb6;
    box-shadow: 0 0 0 3px rgba(0, 171, 182, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-file {
    width: 100%;
    padding: 15px;
    border: 2px dashed #00abb6;
    border-radius: 10px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-file:hover {
    background: #e8f4fd;
    border-color: #008a96;
}

.file-info {
    margin-top: 10px;
    padding: 10px;
    background: #e8f4fd;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #00abb6;
    display: none;
}

.file-info.show {
    display: block;
}

/* Button Styles */
.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #00abb6, #008a96);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #008a96, #006b73);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 171, 182, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e1e5e9;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 30px;
}

/* Requirements List */
.requirements-list {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
}

.requirement-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    line-height: 1.4;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

/* Warning Box */
.warning-box {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    text-align: left;
}

.warning-box p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Success Screen */
.success-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 171, 182, 0.9), rgba(0, 140, 150, 0.8));
    color: white;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.success-screen.active {
    opacity: 1;
}

.success-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
}

.success-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: white;
}

.success-message {
    font-size: 1.2rem;
    line-height: 1.6;
}

.success-message p {
    margin-bottom: 20px;
}

.thank-you {
    font-weight: 600;
    font-size: 1.3rem;
    margin-top: 30px;
    color: #ffd700;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-30px);
    }
}

.fade-in {
    animation: fadeInUp 0.5s ease-out forwards;
}

.fade-out {
    animation: fadeOutDown 0.3s ease-out forwards;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .left-panel {
        min-height: 40vh;
        padding: 20px;
        justify-content: flex-start;
    }
    
    .logo-section {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .logo {
        max-width: 180px;
    }
    
    .right-panel {
        min-height: 60vh;
        padding: 20px;
    }
    
    .form-container {
        padding: 25px;
        max-height: 70vh;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .step-content {
        flex-direction: column;
    }
    
    .right-content {
        padding: 20px;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .success-title {
        font-size: 2.5rem;
    }
    
    .success-message {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .left-panel {
        padding: 15px;
        justify-content: flex-start;
    }
    
    .logo-section {
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    .right-panel {
        padding: 15px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .logo {
        max-width: 150px;
    }
}

/* Scrollbar Styling */
.form-container::-webkit-scrollbar {
    width: 6px;
}

.form-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.form-container::-webkit-scrollbar-thumb {
    background: #00abb6;
    border-radius: 3px;
}

.form-container::-webkit-scrollbar-thumb:hover {
    background: #008a96;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00abb6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-logo {
    width: 200px;
    height: auto;
    margin-bottom: 40px;
    animation: logoFloat 2s ease-in-out infinite;
    filter: brightness(0) invert(1);
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    height: 100%;
    background: white;
    border-radius: 2px;
    width: 0%;
    animation: loadingProgress 2.5s ease-out forwards;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* ===== Toasts ===== */
#toast-root {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none; /* no bloquea clics detrás */
  font-family: 'Anek Kannada', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.toast {
  min-width: 280px;
  max-width: 360px;
  background: #111827;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  padding: 12px 14px 10px 14px;
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  gap: 10px;
  align-items: start;
  pointer-events: auto; /* clickable para cerrar */
  opacity: 0;
  transform: translateY(10px);
  animation: toast-in .25s ease forwards;
}

@keyframes toast-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(10px); }
}

.toast .icon { font-size: 18px; line-height: 1; margin-top: 2px; }
.toast .content { font-size: 14px; }
.toast .title { font-weight: 700; margin-bottom: 2px; font-size: 14px; }
.toast .msg { opacity: .95; }
.toast .close { cursor: pointer; opacity: .75; }
.toast .close:hover { opacity: 1; }

.toast .bar {
  grid-column: 1 / -1;
  height: 3px;
  background: rgba(255,255,255,.15);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 6px;
}
.toast .bar > i {
  display: block;
  width: 100%;
  height: 100%;
  background: #60a5fa; /* azul por defecto */
  transform-origin: left center;
  animation: bar 4s linear forwards;
}
@keyframes bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Variantes */
.toast.success { background:#065f46; }        /* emerald-900 */
.toast.success .bar > i { background:#34d399; }
.toast.error   { background:#7f1d1d; }        /* rose-900 */
.toast.error .bar > i   { background:#f87171; }
.toast.warn    { background:#7c2d12; }        /* amber-900 */
.toast.warn .bar > i    { background:#fbbf24; }
.toast.info    { background:#1f2937; }        /* gray-800 */
.toast.info .bar > i    { background:#93c5fd; }

/* Modo compacto para móviles */
@media (max-width: 480px){
  #toast-root { right: 10px; left: 10px; bottom: 10px; }
  .toast { max-width: none; }
}

