/* Base Reset & Core Styles */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8fafc !important;
    color: #1e293b !important;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bg-grid {
    background-size: 30px 30px;
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
}

/* Ambient Glows (Subtle for light theme) */
.glow-top-left {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.04);
    filter: blur(120px);
    pointer-events: none;
    z-index: 1;
}

.glow-bottom-right {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    background: rgba(225, 29, 72, 0.04);
    filter: blur(120px);
    pointer-events: none;
    z-index: 1;
}

/* Layout Container */
.main-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
    z-index: 10;
}

/* Header Style */
.custom-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo-wrapper {
    display: flex;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 1);
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.brand-logo {
    height: 2.25rem;
    width: 2.25rem;
    object-fit: contain;
}

.brand-title-sub {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #0284c7;
    margin: 0;
}

.brand-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    color: #0f172a;
}

.brand-title span {
    color: #e11d48;
}

.btn-header {
    display: inline-flex;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(226, 232, 240, 1);
    background: #ffffff;
    padding: 0 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #334155;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.btn-header:hover {
    background: #f8fafc;
    border-color: #0284c7;
    color: #0284c7;
}

/* Two-Column Responsive Grid */
.content-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 1024px) {
    .content-grid {
        grid-template-columns: 5fr 7fr;
    }
}

/* Left Sidebar Details */
.info-card {
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.02), 0 4px 6px -2px rgba(0, 0, 0, 0.01);
}

.badge-canarias {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    background: rgba(14, 165, 233, 0.05);
    color: #0284c7;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 1.5rem;
}

.badge-canarias span {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #0284c7;
    display: inline-block;
    box-shadow: 0 0 6px rgba(14, 165, 233, 0.4);
}

.info-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 1rem;
}

.info-title span {
    color: #e11d48 !important;
}

.info-description {
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.625;
    margin-bottom: 2rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.feature-item {
    display: flex;
    align-items: start;
    gap: 1rem;
}

.feature-icon-wrapper {
    display: flex;
    height: 2.5rem;
    width: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.15);
    color: #0284c7;
}

.feature-icon-wrapper svg {
    width: 1.25rem;
    height: 1.25rem;
}

.feature-text h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.feature-text p {
    font-size: 0.75rem;
    color: #475569;
    margin: 0;
    line-height: 1.4;
}

.alert-card {
    margin-top: 1.5rem;
    border: 1px solid rgba(217, 119, 6, 0.2);
    background: rgba(217, 119, 6, 0.05);
    padding: 1.25rem;
    border-radius: 1rem;
    display: flex;
    gap: 0.75rem;
    color: #b45309;
}

.alert-card svg {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.alert-card-text {
    font-size: 0.75rem;
    line-height: 1.4;
}

.alert-card-text span {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

/* Form Container Panel */
.form-card {
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.form-card-header {
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: #fafafa;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .form-card-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.form-header-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    font-weight: 800;
    color: #e11d48;
    letter-spacing: 0.25em;
    margin: 0;
}

.form-header-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0.25rem 0 0 0;
}

.badge-pro {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
}

.form-card-body {
    padding: 2rem;
}

/* Forms Layout & Inputs */
.form-grid-2 {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .form-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.form-grid-custom-fiscal {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .form-grid-custom-fiscal {
        grid-template-columns: 2fr 1fr;
    }
}

.form-grid-custom-postal {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .form-grid-custom-postal {
        grid-template-columns: 1fr 2fr;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    width: 100%;
    box-sizing: border-box;
}

.input-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
}

.input-label span {
    color: #e11d48;
}

.form-input {
    height: 2.75rem;
    width: 100% !important;
    border-radius: 0.75rem;
    border: 1px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    padding: 0 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a !important;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15) !important;
}

.form-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.form-section-title.first {
    margin-top: 0;
}

/* Custom File Input Upload Area */
.upload-area-label {
    display: flex;
    min-height: 140px;
    width: 100%;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    border: 2px dashed #cbd5e1;
    background: #fafafa;
    padding: 1.5rem;
    box-sizing: border-box;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-area-label:hover {
    border-color: #0284c7;
    background: #f8fafc;
}

.upload-area-label svg {
    width: 2rem;
    height: 2rem;
    color: #0284c7;
    transition: transform 0.3s ease;
}

.upload-area-label:hover svg {
    transform: translateY(-4px);
}

.upload-title {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1e293b;
}

.upload-description {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: #64748b;
    max-width: 480px;
    line-height: 1.4;
}

.uploaded-filename-badge {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0284c7;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
}

/* Settings Card Sections (Credentials, Legal, Safety) */
.settings-block {
    border: 1px solid #e2e8f0;
    background: #fafafa;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-top: 1.25rem;
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.settings-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    margin: 0;
}

.settings-subtitle {
    font-size: 11px;
    color: #64748b;
    margin: 0.125rem 0 0 0;
}

.btn-toggle-password {
    background: transparent;
    border: none;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    cursor: pointer;
    padding: 0;
}

.btn-toggle-password:hover {
    color: #0284c7;
}

/* Checkbox & Lists */
.checkbox-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #334155;
    cursor: pointer;
}

.checkbox-input {
    margin-top: 0.125rem;
    height: 1rem;
    width: 1rem;
    border-radius: 0.25rem;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #0284c7;
    cursor: pointer;
}

.checkbox-label a {
    font-weight: 600;
    color: #0284c7;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #0369a1;
}

/* Error block */
.error-alert {
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.05);
    padding: 1rem;
    border-radius: 0.75rem;
    display: flex;
    gap: 0.75rem;
    color: #dc2626;
    margin-bottom: 1.5rem;
}

.error-alert svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.error-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    display: block;
}

.error-message {
    font-size: 0.75rem;
    margin: 0;
}

/* Form Footer Submit Section */
.form-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .form-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.form-footer-note {
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
    max-width: 380px;
    margin: 0;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    align-self: flex-end;
}

@media (min-width: 640px) {
    .footer-actions {
        align-self: auto;
    }
}

.btn-mobile-login {
    display: inline-flex;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    padding: 0 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #475569;
    border-radius: 0.75rem;
    text-decoration: none;
}

@media (min-width: 640px) {
    .btn-mobile-login {
        display: none;
    }
}

.btn-submit {
    display: inline-flex;
    height: 3rem;
    align-items: center;
    justify-content: center;
    background-color: #e11d48;
    padding: 0 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(225, 29, 72, 0.2), 0 2px 4px -1px rgba(225, 29, 72, 0.1);
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.btn-submit:hover {
    background-color: #f43f5e;
    box-shadow: 0 10px 15px -3px rgba(225, 29, 72, 0.3);
}

.btn-submit:active {
    transform: scale(0.98);
}

/* Generic page footer */
.page-footer {
    margin-top: 3rem;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.page-footer-text {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #94a3b8;
    font-family: 'Space Grotesk', sans-serif;
    margin: 0;
}

.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: #25D366;
    color: white;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
    transition: all .3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-4px);
}

.whatsapp-float svg {
    width: 1.75rem;
    height: 1.75rem;
}

.feature-icon-wrapper-emerald {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.feature-icon-wrapper-violet {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.15);
    color: #7c3aed;
}

.mt-form-gap {
    margin-top: 1.25rem;
}

.sr-position-trap {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.register-hidden-input,
.register-hidden-badge {
    display: none;
}

.settings-block-tight {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.settings-title-spaced {
    margin-bottom: 0.75rem;
}

.settings-caption {
    font-size: 12px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

.settings-error {
    font-size: 12px;
    font-weight: 700;
    color: #e11d48;
    margin: 0.5rem 0 0 0;
}

.whatsapp-float-register {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: #25D366;
    color: white;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
    transition: all .3s ease;
}

.whatsapp-float-register:hover {
    transform: translateY(-4px);
}

.whatsapp-float-register svg {
    width: 1.75rem;
    height: 1.75rem;
}