:root {
    --primary-color: #251e40;
    --accent-color: #c2915f;
    --background-light: #f8f7f9;
    --background-dark: #1a1529;
    --slate-custom: #251e40;
    --slate-800: #2d2545;
    --slate-900: #1a1529;
    --gold-light: rgba(194, 145, 95, 0.1);
    --purple-light: rgba(37, 30, 64, 0.05);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[data-bs-theme="dark"] body {
    background-color: var(--background-dark);
}

.min-vh-100 {
    min-height: 100vh;
}

.hero-section {
    background: linear-gradient(135deg, var(--purple-light) 0%, rgba(194, 145, 95, 0.05) 100%);
    border-right: 1px solid rgba(37, 30, 64, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.1;
    pointer-events: none;
    background-image: radial-gradient(var(--primary-color) 1px, transparent 1px);
    background-size: 32px 32px;
}

.text-primary-custom {
    color: var(--accent-color);
}

.text-slate-custom {
    color: var(--slate-custom);
}

[data-bs-theme="dark"] .text-slate-custom {
    color: white;
}

.text-slate-muted {
    color: rgba(30, 41, 59, 0.7);
}

[data-bs-theme="dark"] .text-slate-muted {
    color: rgba(255, 255, 255, 0.7);
}

.text-slate-muted-60 {
    color: rgba(30, 41, 59, 0.6);
}

[data-bs-theme="dark"] .text-slate-muted-60 {
    color: rgba(255, 255, 255, 0.6);
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.fw-black {
    font-weight: 900;
}

.aspect-video {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.form-control-custom {
    height: 3rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.15s;
}

.form-control-custom:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(194, 145, 95, 0.2);
    border-color: var(--accent-color);
}

[data-bs-theme="dark"] .form-control-custom {
    background-color: var(--slate-900);
    border-color: var(--slate-800);
    color: white;
}

[data-bs-theme="dark"] .form-control-custom::placeholder {
    color: #94a3b8;
}

.btn-primary-custom {
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d2545 100%);
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 10px 15px -3px rgba(37, 30, 64, 0.3);
    transition: all 0.15s;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, #d4a574 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary-custom:hover::before {
    opacity: 1;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(194, 145, 95, 0.4);
    color: var(--primary-color);
}

.btn-primary-custom span {
    position: relative;
    z-index: 1;
}

.btn-primary-custom:active {
    transform: translateY(0);
}

.btn-social {
    height: 2.75rem;
    border: 1px solid rgba(37, 30, 64, 0.1);
    border-radius: 0.5rem;
    background-color: white;
    transition: all 0.2s ease;
}

.btn-social:hover {
    background-color: var(--gold-light);
    border-color: rgba(194, 145, 95, 0.3);
    transform: translateY(-1px);
}

[data-bs-theme="dark"] .btn-social {
    background-color: var(--slate-900);
    border-color: var(--slate-800);
    color: white;
}

[data-bs-theme="dark"] .form-section {
    background-color: var(--background-dark);
}

.form-section {
    background-color: white;
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(194, 145, 95, 0.25);
}

.link-primary-custom {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.link-primary-custom:hover {
    color: #d4a574;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.divider-text {
    background-color: white;
    padding: 0 0.5rem;
    color: #94a3b8;
}

[data-bs-theme="dark"] .divider-text {
    background-color: var(--background-dark);
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-link:hover {
    color: var(--accent-color);
}

.icon-lg {
    font-size: 2.25rem;
}

.icon-xl {
    font-size: 2.5rem;
}

.shadow-custom {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-md {
    max-width: 28rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--accent-color);
}

.img-icon {
    width: 1rem;
    height: 1rem;
}

[data-bs-theme="dark"] .apple-icon {
    filter: invert(1);
}

/* Estilos adicionales para armonización */
.icon-lg, .icon-xl {
    color: var(--accent-color);
}

/* Logo/Branding con gradiente */
.brand-logo {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Icono del logo con efecto dorado */
.material-symbols-outlined.brand-icon {
    color: var(--accent-color);
    text-shadow: 0 2px 8px rgba(194, 145, 95, 0.3);
}

/* Sombra del hero con toque dorado */
.shadow-custom {
    box-shadow: 0 25px 50px -12px rgba(37, 30, 64, 0.3), 
                0 10px 25px -5px rgba(194, 145, 95, 0.1);
}

/* Decoración en inputs al hacer focus */
.form-control-custom {
    position: relative;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    border-color: var(--accent-color);
}

/* Detalle dorado en el patrón del hero */
.hero-pattern {
    background-image: 
        radial-gradient(var(--accent-color) 1px, transparent 1px),
        radial-gradient(var(--primary-color) 1px, transparent 1px);
    background-size: 32px 32px, 64px 64px;
    background-position: 0 0, 16px 16px;
}

/* Línea divisoria con acento dorado */
hr {
    border-color: rgba(194, 145, 95, 0.2) !important;
}

/* Marca de verificación dorada */
.form-check-input:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

/* Animación sutil al cargar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Efecto de brillo en el botón principal */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.btn-primary-custom::after {
    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;
}

.btn-primary-custom:hover::after {
    left: 100%;
}

/* Estados de validación con toques dorados */
.form-control-custom.is-valid {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(194, 145, 95, 0.1);
}

.form-control-custom.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Hover en los enlaces del footer */
.footer-link {
    position: relative;
    transition: all 0.2s ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), #d4a574);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* Mejora en la imagen del hero */
.aspect-video img {
    border: 2px solid rgba(194, 145, 95, 0.2);
    transition: all 0.3s ease;
}

.aspect-video img:hover {
    border-color: var(--accent-color);
    transform: scale(1.02);
}

/* Títulos con efecto de degradado sutil */
h1, h2, h3 {
    color: var(--slate-custom);
    position: relative;
}

h1::after, h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
}

/* Placeholder con color armonizado */
::placeholder {
    color: rgba(37, 30, 64, 0.4) !important;
    opacity: 1;
}

/* Focus visible para accesibilidad */
*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Mejora en modo oscuro */
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3 {
    color: #f0ede8;
}

[data-bs-theme="dark"] .border-slate-200 {
    border-color: rgba(194, 145, 95, 0.1) !important;
}

/* Botón de texto en modo oscuro */
[data-bs-theme="dark"] .btn-link {
    color: var(--accent-color);
}

[data-bs-theme="dark"] .btn-link:hover {
    color: #d4a574;
}