:root {
    --primary-color: #121212;      /* Negro oscuro elegante */
    --secondary-color: #1a1a1a;    /* Fondo secundario / Tarjetas */
    --accent-color: #c59b27;       /* Dorado vintage (color de acento) */
    --accent-hover: #e6b835;       /* Dorado claro para interacciones */
    --bg-color: #0a0a0a;           /* Fondo general oscuro */
    --card-bg: #1e1e1e;            /* Fondo para las tarjetas */
    --text-color: #e0e0e0;         /* Texto principal */
    --text-muted: #a0a0a0;         /* Texto secundario */
    --border-color: #2a2a2a;       /* Bordes sutiles */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navbar centrado y ajustado para logo prominente */
.navbar {
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 2rem 1.2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 420px;
}

/* Logo con mayor tamaño y nitidez visual */
.logo-img {
    height: 125px; /* Tamaño ampliado para alta visibilidad */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.navbar a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--accent-color);
}

/* Botón Reservar Ahora en Navbar */
.btn-nav {
    background-color: var(--accent-color);
    color: #ffffff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-weight: bold !important;
    transition: background-color 0.3s ease !important;
}

.btn-nav:hover {
    background-color: var(--accent-hover);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.85)), 
                url('https://images.unsplash.com/photo-1503951914875-452162b0f3f1?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 6rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn-hero {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 0.9rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Sección de Servicios */
.services-section {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--card-bg);
    padding: 1.8rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: border-color 0.3s ease;
}

.service-card:hover {
    border-color: var(--accent-color);
}

.service-card h3 {
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-card .price {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-top: 1rem;
}

/* Sección de Galería / Nuestros Trabajos */
.gallery-section {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.9);
}

.gallery-item img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Contenedor Principal (Tarjetas e Interacción) */
.main-container {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    .navbar ul {
        gap: 1rem;
    }
}

.card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.card h2 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tarjeta Fidelización */
.fidelity-card {
    text-align: center;
}

.fidelity-card p {
    color: var(--text-muted);
}

.stamps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.8rem 0;
}

.stamp {
    width: 65px;
    height: 65px;
    margin: auto;
    border-radius: 50%;
    border: 2px dashed #444;
    background-color: #151515;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    transition: all 0.3s ease;
}

.stamp.active {
    background-color: var(--accent-color);
    border: 2px solid var(--accent-color);
    color: #ffffff;
    font-size: 1.2rem;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(197, 155, 39, 0.3);
}

.status-text {
    font-weight: 600;
    color: #ffffff;
}

/* Formulario */
.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
}

input, select {
    padding: 0.7rem;
    background-color: #121212;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
    color: #ffffff;
    outline: none;
    transition: border-color 0.3s ease;
}

input:focus, select:focus {
    border-color: var(--accent-color);
}

/* Botón de envío de formulario */
.btn-primary {
    width: 100%;
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    padding: 0.85rem;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.confirmation-message {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #1b382b;
    color: #55efc4;
    border: 1px solid #00b894;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Sección Admin (Barbero / Panel Privado) */
.admin-section {
    max-width: 1000px;
    margin: 2rem auto 4rem auto;
    padding: 0 1rem;
}

.admin-card {
    background: #161616;
    border: 1px dashed var(--accent-color);
}

.admin-card h2 {
    font-size: 1.25rem;
}

.admin-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.admin-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .admin-form {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    text-align: center;
    padding: 2.5rem 1rem;
    margin-top: 5rem;
    font-size: 0.9rem;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 0.75rem;
    filter: brightness(0.9);
}

footer strong {
    color: #ffffff;
}