/* ==========================================
    ESTILOS GENERALES - SolBassiLamimakers
    ========================================== */

:root {
    --primary-color: #d4607a;
    --primary-dark: #b94f6a;
    --primary-soft: #fde8ef;
    --secondary-color: #f97316;
    --secondary-dark: #ea580c;
    --success-color: #16a34a;
    --warning-color: #d97706;
    --error-color: #dc2626;
    --dark-color: #172033;
    --text-color: #334155;
    --muted-color: #64748b;
    --light-color: #f8fafc;
    --surface-color: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --border-color: rgba(148, 163, 184, 0.2);
    --border-radius: 20px;
    --border-radius-sm: 14px;
    --box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --box-shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.14);
    --transition: all 0.28s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(212, 96, 122, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(249, 168, 212, 0.10), transparent 24%),
        linear-gradient(180deg, #fff9fb 0%, #fdf2f8 48%, #fce7f3 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
    opacity: 0.35;
    z-index: -1;
}

main {
    flex: 1 0 auto;
    padding: 28px 0 40px;
    position: relative;
}

a {
    color: var(--primary-color);
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    letter-spacing: -0.02em;
}

p {
    color: var(--text-color);
}

.container {
    width: min(1180px, calc(100% - 32px));
}

/* ==========================================
   GRADIENTES Y COLORES
   ========================================== */

.gradient-primary {
    background: linear-gradient(135deg, #b94f6a 0%, #d4607a 55%, #e8899d 100%) !important;
}

.gradient-secondary {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 55%, #ea580c 100%) !important;
}

.text-gradient {
    background: linear-gradient(135deg, #b94f6a, #e8899d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   NAVBAR
   ========================================== */

.site-nav {
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 84px;
    line-height: 84px;
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

nav .brand-logo {
    position: static;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

nav ul a {
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    margin: 0 2px;
    padding: 0 16px;
    font-weight: 500;
}

nav ul a:hover,
nav ul li.active a {
    background: rgba(255, 255, 255, 0.14);
}

.sidenav {
    border-radius: 0 24px 24px 0;
    padding-top: 18px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
}

.sidenav li > a {
    color: var(--dark-color);
    border-radius: 14px;
    margin: 4px 10px;
}

.sidenav li > a i.material-icons {
    color: var(--primary-color);
}

/* ==========================================
   CARDS
   ========================================== */

.card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--box-shadow-strong);
    transform: translateY(-4px);
}

.card-panel {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

.full-height-card,
.full-height-card .card-content {
    height: 100%;
}

.feature-card .card-content {
    padding: 32px 24px;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 24px;
    margin-bottom: 18px;
    font-size: 2.25rem;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6), 0 16px 28px rgba(15, 23, 42, 0.08);
}

.accent-cyan { color: #d4607a; }
.accent-green { color: #c084a0; }
.accent-gold { color: #c97d5a; }
.accent-violet { color: #a78bca; }
.accent-pink { color: #e879a0; }

/* ==========================================
   BOTONES
   ========================================== */

.btn, .btn-large, .btn-small {
    border-radius: 999px;
    text-transform: none;
    font-weight: 600;
    letter-spacing: 0;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
    transition: var(--transition);
}

.btn:hover, .btn-large:hover, .btn-small:hover {
    box-shadow: 0 18px 28px rgba(15, 23, 42, 0.18);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #b94f6a 0%, #d4607a 100%) !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%) !important;
}

.btn-success {
    background-color: #10b981 !important;
}

.btn-warning {
    background-color: #f59e0b !important;
}

.btn-floating {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   FORMULARIOS
   ========================================== */

.input-field input[type=text]:focus,
.input-field input[type=email]:focus,
.input-field input[type=password]:focus,
.input-field input[type=tel]:focus,
.input-field textarea:focus {
    border-bottom: 2px solid var(--primary-color) !important;
    box-shadow: 0 1px 0 0 var(--primary-color) !important;
}

.input-field input[type=text],
.input-field input[type=email],
.input-field input[type=password],
.input-field input[type=tel],
.input-field input[type=number],
.input-field textarea {
    border-bottom-color: rgba(15, 23, 42, 0.12) !important;
}

.input-field input[type=text]:not(.browser-default),
.input-field input[type=email]:not(.browser-default),
.input-field input[type=password]:not(.browser-default),
.input-field input[type=tel]:not(.browser-default),
.input-field textarea.materialize-textarea {
    margin-bottom: 4px;
}

.dropdown-content,
.datepicker-modal,
.timepicker-modal,
.modal {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--box-shadow-strong);
}

.select-wrapper input.select-dropdown,
.datepicker-date-display,
.timepicker-digital-display {
    color: var(--dark-color);
}

.input-field input[type=text]:focus + label,
.input-field input[type=email]:focus + label,
.input-field input[type=password]:focus + label,
.input-field input[type=tel]:focus + label,
.input-field textarea:focus + label {
    color: var(--primary-color) !important;
}

.input-field .prefix.active {
    color: var(--primary-color);
}

/* ==========================================
   TABLAS
   ========================================== */

table {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.82);
}

table.striped tbody tr:nth-child(odd) {
    background-color: rgba(248, 250, 252, 0.72);
}

table.highlight tbody tr:hover {
    background-color: rgba(253, 232, 239, 0.55);
}

/* ==========================================
   BADGES Y CHIPS
   ========================================== */

.badge {
    border-radius: 12px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge.new {
    background-color: var(--primary-color);
}

.badge-success {
    background-color: #10b981;
    color: white;
}

.badge-warning {
    background-color: #f59e0b;
    color: white;
}

.badge-danger {
    background-color: #ef4444;
    color: white;
}

.badge-info {
    background-color: #06b6d4;
    color: white;
}

.chip {
    border-radius: 16px;
    font-weight: 500;
}

/* ==========================================
   DASHBOARD
   ========================================== */

.dashboard-card {
    padding: 20px;
    text-align: center;
    border-radius: var(--border-radius);
    background: var(--surface-color);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.dashboard-card .icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.dashboard-card h3 {
    margin: 10px 0;
    font-size: 2rem;
    font-weight: 700;
}

.dashboard-card p {
    color: #64748b;
    font-size: 0.9rem;
}

/* ==========================================
   AGENDA / CALENDARIO
   ========================================== */

.calendar-container {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.time-slot {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.time-slot:hover {
    background-color: #fff0f5;
    border-color: var(--primary-color);
}

.time-slot.occupied {
    background-color: #fee2e2;
    border-color: #ef4444;
    cursor: not-allowed;
}

.time-slot.selected {
    background-color: #fde8ef;
    border-color: var(--primary-color);
}

/* ==========================================
   PERFILES
   ========================================== */

.profile-header {
    background: linear-gradient(135deg, #b94f6a 0%, #d4607a 100%);
    color: white;
    padding: 40px 20px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    text-align: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-info {
    background: var(--surface-strong);
    padding: 30px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* ==========================================
   GALERÍA DE FOTOS
   ========================================== */

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.photo-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: var(--transition);
}

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

/* ==========================================
   ESTADO DE TURNOS
   ========================================== */

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.status-pendiente {
    background-color: #fef3c7;
    color: #92400e;
}

.status-confirmado {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-completado {
    background-color: #d1fae5;
    color: #065f46;
}

.status-cancelado {
    background-color: #fee2e2;
    color: #991b1b;
}

/* ==========================================
   LANDING Y AUTENTICACION
   ========================================== */

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 110px;
    color: white;
}

.home-hero::before,
.home-hero::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.55;
}

.home-hero::before {
    width: 340px;
    height: 340px;
    background: rgba(255,255,255,0.18);
    top: -120px;
    left: -80px;
}

.home-hero::after {
    width: 260px;
    height: 260px;
    background: rgba(232, 137, 157, 0.26);
    bottom: -90px;
    right: 6%;
}

.hero-shell {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.24);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title {
    margin: 0 0 18px;
    color: white;
    font-size: clamp(2.6rem, 8vw, 4.9rem);
    font-weight: 700;
}

.hero-title-icon {
    vertical-align: middle;
    font-size: clamp(2.4rem, 6vw, 4rem);
    margin-right: 8px;
}

.hero-subtitle {
    margin: 0 auto 24px;
    max-width: 760px;
    font-weight: 400;
    color: rgba(255,255,255,0.92);
}

.hero-copy {
    max-width: 700px;
    margin: 0 auto 36px;
    opacity: 0.96;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-primary-action,
.hero-secondary-action {
    min-width: 220px;
}

.hero-secondary-action {
    
    border: 1px solid rgba(255,255,255,0.36);
}

.home-content {
    margin-top: 56px;
}

.section-title {
    color: var(--primary-dark);
    margin-bottom: 50px;
}

.home-cta-row {
    margin-top: 60px;
    margin-bottom: 60px;
}

.home-cta-card {
    border-radius: 28px;
    padding: 44px 32px;
}

.home-cta-copy {
    opacity: 0.95;
    max-width: 680px;
    margin: 0 auto 16px;
    color: rgba(255,255,255,0.92);
}

.home-cta-button {
    margin-top: 20px;
}

.home-footer-row {
    margin-bottom: 40px;
}

.page-auth main {
    display: flex;
    align-items: center;
}

.auth-page-shell {
    width: 100%;
}

.auth-card {
    border-radius: 28px !important;
    overflow: visible !important;
}

.auth-card:hover {
    transform: none !important;
}

.auth-card-content {
    padding: 34px !important;
}

.auth-header {
    margin-bottom: 30px;
}

.auth-icon,
.auth-icon-shell {
    box-shadow: 0 18px 28px rgba(185, 79, 106, 0.2);
}

.auth-submit {
    min-height: 52px;
    position: relative;
    z-index: 0;
}

.auth-submit:hover {
    transform: none !important;
}

.auth-card-action {
    background: rgba(248, 250, 252, 0.72) !important;
}

.flash-stack {
    margin-top: 18px;
}

.flash-message {
    backdrop-filter: blur(12px);
}

.site-footer {
    margin-top: auto;
    padding-top: 26px;
}

.site-footer .row {
    margin-bottom: 8px;
}

.site-footer .page-footer h5,
.site-footer h5 {
    font-weight: 600;
}

.site-footer ul li + li {
    margin-top: 8px;
}

.footer-copyright {
    background: rgba(0, 0, 0, 0.12) !important;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media only screen and (max-width: 768px) {
    .container {
        width: min(100%, calc(100% - 24px));
    }

    main {
        padding-top: 18px;
    }

    nav {
        min-height: 74px;
        line-height: 74px;
    }

    nav .brand-logo {
        font-size: 1rem;
        max-width: calc(100% - 72px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    nav .brand-logo i {
        margin-right: 0;
    }

    .home-hero {
        padding: 72px 0 84px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-primary-action,
    .hero-secondary-action,
    .home-cta-button {
        width: 100%;
    }

    .feature-card .card-content,
    .auth-card-content,
    .home-cta-card {
        padding: 24px !important;
    }

    .feature-icon {
        width: 72px;
        height: 72px;
        border-radius: 20px;
        font-size: 2rem;
    }

    .dashboard-card h3 {
        font-size: 1.5rem;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
}

@media only screen and (max-width: 992px) {
    .site-footer .col.offset-l2 {
        margin-left: 0;
    }
}

/* ==========================================
   UTILIDADES
   ========================================== */

.mt-1 { margin-top: 10px !important; }
.mt-2 { margin-top: 20px !important; }
.mt-3 { margin-top: 30px !important; }
.mb-1 { margin-bottom: 10px !important; }
.mb-2 { margin-bottom: 20px !important; }
.mb-3 { margin-bottom: 30px !important; }
.p-1 { padding: 10px !important; }
.p-2 { padding: 20px !important; }
.p-3 { padding: 30px !important; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

/* Spinner Materialize — override teal por rosa primario */
.spinner-teal-only .circle {
    border-color: var(--primary-color) !important;
}

/* Datepicker — override colores teal */
.datepicker-date-display,
.datepicker-table td.is-selected,
.datepicker-cancel,
.datepicker-done {
    background-color: var(--primary-color) !important;
}
.datepicker-cancel, .datepicker-done { color: white !important; }
.datepicker-table td.is-today { color: var(--primary-color) !important; }

/* Select dropdown — override */
.select-wrapper .caret { fill: var(--primary-color); }
.dropdown-content li > a, .dropdown-content li > span { color: var(--primary-color); }

.cursor-pointer { cursor: pointer; }

/* ==========================================
   ANIMACIONES
   ========================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
    opacity: 1;
    color: #c75971;
}

/* ==========================================
   LOADER
   ========================================== */

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
