/* ============================================
   LAYOUT - BARBERCONNECT
   Estilos base del layout (menú, footer, contenedores)
   ============================================ */

/* ============================================
   RESET Y BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f5f5;
    color: #1a1a1a;
    line-height: 1.5;
    overflow-x: hidden;
}

/* ============================================
   MENÚ STICKY
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* ============================================
   LOGO PREMIUM
   ============================================ */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.02);
}

.logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f2ca50, #d4a830);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    color: #1a1c1c;
    box-shadow: 0 0 20px rgba(242, 202, 80, 0.2);
    transition: all 0.4s ease;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(242, 202, 80, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(242, 202, 80, 0.4), 0 0 80px rgba(242, 202, 80, 0.1);
    }
}

.logo:hover .logo-icon {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 0 40px rgba(242, 202, 80, 0.5);
}

.logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.logo .logo-text span {
    font-weight: 300;
    color: #f2ca50;
    text-shadow: 0 0 20px rgba(242, 202, 80, 0.2);
}

/* ============================================
   NAV LINKS
   ============================================ */
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f2ca50;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(242, 202, 80, 0.3);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #f2ca50;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 40px;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.nav-btn::after {
    display: none;
}

.nav-btn:hover {
    background: #f2ca50;
    color: #1a1c1c !important;
    border-color: #f2ca50;
    box-shadow: 0 0 30px rgba(242, 202, 80, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   CONTENEDOR PRINCIPAL - CORREGIDO
   ============================================ */
.main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    min-height: calc(100vh - 70px - 200px);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #1a1a1a;
    color: #a0a0a0;
    text-align: center;
    padding: 40px;
    font-size: 0.85rem;
    border-top: 1px solid #2a2a2a;
    width: 100%;
}

.footer p {
    transition: all 0.3s ease;
}

.footer p:hover {
    color: #f2ca50;
}

/* ============================================
   UTILIDADES GENERALES
   ============================================ */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.section-subtitle {
    color: #666;
    margin-bottom: 32px;
    font-size: 1rem;
}

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

.mt-4 {
    margin-top: 24px;
}

hr {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 24px 0;
}

/* ============================================
   ALERTAS
   ============================================ */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.alert-success {
    background: #f0f9f0;
    border-left: 4px solid #2e7d32;
    color: #1e4620;
}

.alert-error {
    background: #fef5f5;
    border-left: 4px solid #c62828;
    color: #8b1e1e;
}

/* ============================================
   TARJETAS (cards)
   ============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d0;
}

.card-content {
    padding: 24px;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.card-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.4;
}

.card-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 8px;
}

.card-detail i {
    width: 20px;
    color: #888;
    font-size: 0.9rem;
}

.price-tag {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 16px 0 8px 0;
}

.price-tag small {
    font-size: 0.9rem;
    font-weight: 400;
    color: #888;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1a1a1a;
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #1a1a1a;
    color: #1a1a1a;
}

.btn-outline:hover {
    background: #1a1a1a;
    color: white;
}

/* ============================================
   FORMULARIO
   ============================================ */
.form-container {
    max-width: 560px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* ============================================
   TABLA (dashboard)
   ============================================ */
.table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #e8e8e8;
    background: white;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 16px;
    background: #fafafa;
    font-weight: 600;
    font-size: 0.85rem;
    color: #444;
    border-bottom: 1px solid #e8e8e8;
}

td {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 20px;
    }
    .main-container {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
        flex-wrap: wrap;
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
        gap: 10px;
    }
    .nav-links {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    .nav-links a {
        font-size: 0.8rem;
    }
    .main-container {
        padding: 16px;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .card-grid {
        gap: 20px;
    }
    .logo .logo-text {
        font-size: 1.2rem;
    }
    .logo .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }
    /* ============================================
   MEJORAS PARA TÍTULOS
   ============================================ */

/* Título principal con efecto premium */
.title-premium {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
}

.title-premium::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f2ca50, transparent);
    border-radius: 2px;
}

.title-premium span {
    color: #f2ca50;
    position: relative;
}

.title-premium span::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(242, 202, 80, 0.15);
    border-radius: 2px;
    z-index: -1;
}

/* Subtítulo elegante */
.subtitle-elegant {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.3px;
    position: relative;
    padding-left: 16px;
    border-left: 3px solid #f2ca50;
    margin-bottom: 24px;
}

/* Título de sección con icono */
.section-title-premium {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
}

.section-title-premium .icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(242, 202, 80, 0.1);
    color: #f2ca50;
    transition: all 0.4s ease;
}

.section-title-premium:hover .icon-wrapper {
    background: #f2ca50;
    color: #1a1c1c;
    transform: rotate(-10deg) scale(1.05);
    box-shadow: 0 4px 20px rgba(242, 202, 80, 0.3);
}

.section-title-premium .title-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #e8e8e8, transparent);
    margin-left: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .title-premium {
        font-size: 1.8rem;
    }
    .section-title-premium {
        font-size: 1.2rem;
    }
    .section-title-premium .icon-wrapper {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}
}