/* ===== ESTILOS GENERALES - JOYERÍA ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== HEADER ELEGANTE ===== */
.header-joyeria {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #D4AF37;
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-joyeria {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-joyeria i {
    font-size: 2rem;
    color: #D4AF37;
}

.logo-joyeria h1 {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #D4AF37;
}

.nav-joyeria {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-joyeria a {
    color: #f5f5f5;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-joyeria a:hover {
    color: #D4AF37;
}

.nav-joyeria .btn-admin {
    background: #D4AF37;
    color: #1a1a1a;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

.nav-joyeria .btn-admin:hover {
    background: #e8c547;
    color: #1a1a1a;
}

/* ===== HERO SECTION ===== */
.hero-joyeria {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1573408301185-9146fe634ad0?w=1200');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero-joyeria h2 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #D4AF37;
}

.hero-joyeria p {
    font-size: 1.2rem;
    letter-spacing: 2px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-whatsapp {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* ===== SECCIÓN PRODUCTOS ===== */
.container-joyeria {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #888;
    font-size: 1rem;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

/* ===== CATEGORÍAS ===== */
.categorias-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.categoria-btn {
    background: transparent;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.categoria-btn:hover,
.categoria-btn.active {
    background: #1a1a1a;
    color: #D4AF37;
    border-color: #1a1a1a;
}

/* ===== GRID DE PRODUCTOS ===== */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.producto-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.producto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.producto-imagen {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.producto-info {
    padding: 25px;
    text-align: center;
}

.producto-categoria {
    color: #D4AF37;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.producto-nombre {
    font-size: 1.3rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.producto-descripcion {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.producto-precio {
    font-size: 1.6rem;
    color: #D4AF37;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.producto-precio span {
    font-size: 0.9rem;
    color: #999;
    font-weight: 400;
}

.btn-whatsapp {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    border: none;
    cursor: pointer;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: scale(1.02);
}

/* ===== REDES SOCIALES ===== */
.social-section {
    background: #1a1a1a;
    color: #f5f5f5;
    padding: 60px 20px;
    text-align: center;
}

.social-section h2 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #D4AF37;
}

.social-section p {
    color: #aaa;
    margin-bottom: 30px;
    font-size: 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #2d2d2d;
    color: #D4AF37;
    font-size: 1.6rem;
    line-height: 55px;
    transition: all 0.3s;
    border: 1px solid #444;
}

.social-icons a:hover {
    transform: scale(1.1);
    background: #D4AF37;
    color: #1a1a1a;
    border-color: #D4AF37;
}

/* ===== CONTACTO ===== */
.contacto-section {
    background: #f5f5f5;
    padding: 50px 20px;
    text-align: center;
}

.contacto-info {
    max-width: 600px;
    margin: 0 auto;
}

.contacto-info p {
    color: #555;
    margin-bottom: 10px;
    font-size: 1rem;
}

.contacto-info i {
    color: #D4AF37;
    margin-right: 8px;
    width: 20px;
}

/* ===== FOOTER ===== */
.footer-joyeria {
    background: #1a1a1a;
    color: #666;
    text-align: center;
    padding: 25px;
    border-top: 1px solid #333;
}

.footer-joyeria p {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    .nav-joyeria {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-joyeria h2 {
        font-size: 2rem;
    }
    .productos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    .social-icons {
        gap: 15px;
    }
}

/* ===== LOGIN ===== */
.login-body {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-box h2 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.login-subtitle {
    color: #D4AF37;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus {
    border-color: #D4AF37;
    outline: none;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #D4AF37;
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-family: inherit;
    margin-top: 10px;
}

.btn-login:hover {
    background: #e8c547;
}

.back-link {
    display: block;
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

.login-hint {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #888;
}

/* ===== PANEL ADMIN ===== */
.admin-header {
    background: #1a1a1a;
    color: #D4AF37;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #D4AF37;
}

.admin-header a {
    color: #D4AF37;
    font-size: 0.9rem;
    margin-left: 15px;
}

.admin-header a:hover {
    color: #fff;
}

.form-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.form-container h2 {
    margin-bottom: 25px;
    color: #1a1a1a;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.4rem;
}

.btn-submit {
    background: #D4AF37;
    color: #1a1a1a;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-family: inherit;
}

.btn-submit:hover {
    background: #e8c547;
}

.btn-edit {
    background: #D4AF37;
    color: #1a1a1a;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 5px;
    font-weight: 600;
}

.btn-delete {
    background: #c0392b;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.table-container {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow-x: auto;
    border: 1px solid #eee;
}

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

th, td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #1a1a1a;
    color: #D4AF37;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.alert {
    padding: 14px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== PREVIEW IMAGEN ===== */
.preview-img {
    max-width: 150px;
    max-height: 100px;
    border-radius: 6px;
    margin-top: 10px;
    border: 1px solid #ddd;
}

.imagen-tabla {
    max-width: 80px;
    max-height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

.input-file-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.input-file-wrapper input[type=file] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.btn-file {
    background: #1a1a1a;
    color: #D4AF37;
    padding: 12px 20px;
    border-radius: 6px;
    display: inline-block;
    cursor: pointer;
    text-align: center;
    width: 100%;
    font-weight: 600;
    border: 2px dashed #D4AF37;
}

.btn-file:hover {
    background: #2d2d2d;
}

.file-name {
    margin-top: 8px;
    color: #666;
    font-size: 0.9rem;
}

/* ===== CONFIG GRID ===== */
.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.config-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.config-section h3 {
    margin-bottom: 25px;
    color: #1a1a1a;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.2rem;
    border-bottom: 2px solid #D4AF37;
    padding-bottom: 10px;
}

.logo-preview {
    max-width: 150px;
    max-height: 80px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 5px;
}

.color-preview {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .config-grid {
        grid-template-columns: 1fr;
    }
}
