﻿/* --- 1. Configuración Global y Layout --- */
html {
    scroll-behavior: smooth;
}

.mud-layout {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

.mud-main-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    padding-top: 64px !important;
}

footer {
    margin-top: auto;
    flex-shrink: 0;
}

/* --- 2. Navegación y Capas (Z-Index) --- */
.mud-drawer {
    z-index: 1401 !important;
}

.mud-drawer-overlay {
    z-index: 1400 !important;
}

/* --- 3. Landing Page (Hero y Registro) --- */
.hero-container {
    position: relative;
    padding: 80px 20px;
    background: radial-gradient(circle at 50% 0%, rgba(var(--mud-palette-primary-rgb), 0.08) 0%, transparent 70%);
    border-radius: 24px;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--mud-palette-primary), var(--mud-palette-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-weight: 300;
    line-height: 1.6;
    color: var(--mud-palette-text-secondary);
}

.registration-page {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

/* --- 4. Botones y Efectos --- */
.btn-glow {
    box-shadow: 0 4px 15px rgba(var(--mud-palette-primary-rgb), 0.3);
    transition: all 0.3s ease;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0.5px;
}

    .btn-glow:hover:not(:disabled) {
        box-shadow: 0 8px 25px rgba(var(--mud-palette-primary-rgb), 0.5);
        transform: translateY(-2px);
    }

    .btn-glow:disabled {
        box-shadow: none;
    }

/* --- 5. Tarjetas y Listado de Empresas --- */
.glass-card-compact {
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.animated-card {
    transition: all 0.3s ease-in-out;
}

    .animated-card:hover {
        transform: translateY(-8px);
    }

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-in-out;
}

.animated-card:hover .icon-circle {
    transform: scale(1.15) rotate(5deg);
}

.text-muted-custom {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
}

.border-1 {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- 6. Animaciones --- */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.plan-animate {
    animation: fadeInScale 0.6s ease-out forwards;
}

/* --- SECCIÓN: MODALES Y FORMULARIOS --- */

.glass-dialog {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    border-radius: 24px !important;
    border: 1px solid rgba(var(--mud-palette-primary-rgb), 0.15) !important;
    min-width: 400px;
}

    /* Forzar que el texto sea siempre visible y oscuro */
    .glass-dialog input.mud-input-slot {
        color: #334155 !important; /* Gris pizarra oscuro */
        -webkit-text-fill-color: #334155 !important;
        font-weight: 400 !important;
        font-size: 1rem !important;
    }

/* Estilo para la caja de texto Outlined */
.bg-light-input {
    background-color: #ffffff !important; /* Cambiamos a blanco sólido para contraste */
    border-radius: 12px !important;
}

.glass-dialog .mud-input-label {
    color: #64748b !important;
    font-weight: 500 !important;
}

/* Fuerza la visualización en MAYÚSCULAS en el input */
.uppercase-input input {
    text-transform: uppercase !important;
}

/* Estilo del botón Registrar Deshabilitado */
.btn-glow.mud-button-filled.mud-button-disabled {
    background-color: #f1f5f9 !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
}

/* Fuerza la visualización en MAYÚSCULAS en el input */
.uppercase-input input {
    text-transform: uppercase !important;
}





/* --- DIÁLOGO PREMIUM DEVCLOUD --- */
.custom-confirm-modal {
    border-radius: 28px !important;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

.modal-header-gradient {
    background: linear-gradient(135deg, #594ae2 0%, #3f33b5 100%);
    margin: -24px -24px 0 -24px; /* Ajuste para cubrir el header */
}

.rfc-highlight {
    color: #594ae2;
    font-weight: 800;
    background: rgba(89, 74, 226, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
}

/* Alerta estilo Apple/Moderno */
.alert-modern {
    display: flex;
    background: #fff5f5;
    border-radius: 16px;
    border-left: 6px solid #ff5252;
    overflow: hidden;
}

.alert-icon-section {
    background: #ff5252;
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
}

.alert-content-section {
    padding: 16px;
    color: #c62828;
}

/* Efecto de pulso en el icono */
.icon-pulse-container {
    background: white;
    border-radius: 50%;
    padding: 10px;
    display: flex;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.action-btn-primary {
    height: 48px;
    font-weight: 700 !important;
    letter-spacing: 1px;
}

.action-btn-secondary {
    height: 48px;
    border-width: 2px !important;
    color: #64748b !important;
}