/* --- Estilos Base para Demo Stylo Urbano --- */

/* --- Variables de Color y Fuentes --- */
:root {
    --urbano-bg: #121212;
    --urbano-bg-secondary: #1a1a1a;
    --urbano-text: #e0e0e0;
    --urbano-primary: #d4af37;
    /* Tono dorado/mostaza */
    --font-display: 'Bebas Neue', sans-serif;
    /* Sugerencia de fuente, requiere importación */
    --font-body: 'Roboto', sans-serif;
    /* Sugerencia de fuente, requiere importación */
}

/* --- Estructura General --- */
html {
    scroll-behavior: smooth;
    /* ¡La magia para la navegación de una página! */
}

.barberia-theme {
    background-color: var(--urbano-bg);
    color: var(--urbano-text);
    font-family: var(--font-body);
    margin: 0;
}

.section-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 0;
}

.page-section {
    min-height: 60vh;
    /* Damos altura para probar el scroll */
}

.page-section.bg-dark {
    background-color: var(--urbano-bg-secondary);
}

.page-section h2 {
    text-align: center;
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--urbano-primary);
    margin-bottom: 50px;
}

/* --- Navbar --- */
.barberia-header {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    position: sticky;
    top: 0;
    width: 90%;
    z-index: 1000;
}

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

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--urbano-primary);
    text-decoration: none;
}

.navbar-nav {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.nav-link {
    color: var(--urbano-text);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--urbano-primary);
}

.btn-cita {
    background-color: var(--urbano-primary);
    color: var(--urbano-bg);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-cita:hover {
    background-color: #fff;
}

/* --- Hero Section --- */
.hero-section {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Añadiremos una imagen de fondo aquí más adelante */
}

/* --- Footer --- */
.barberia-footer {
    background-color: var(--urbano-bg-secondary);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

.barberia-footer a {
    color: var(--urbano-primary);
}

/* --- Estilos para las Nuevas Secciones --- */

/* Estilo para la descripción del Héroe */
.hero-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 20px auto 0 auto;
    line-height: 1.6;
    color: rgba(224, 224, 224, 0.8);
}

/* Subtítulo genérico para las nuevas secciones */
.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -30px auto 50px auto;
    font-size: 1.1rem;
    color: var(--urbano-text);
}

/* Cuadrícula para los perfiles */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Tarjeta de perfil (reutilizable para artistas y asesores) */
.profile-card {
    background-color: var(--urbano-bg-secondary);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    text-align: center;
    padding: 30px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Placeholder para la imagen de perfil */
.profile-image-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #252525;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--urbano-primary);
}

.profile-image-placeholder i {
    font-size: 3rem;
    color: var(--urbano-primary);
    opacity: 0.5;
}

.profile-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin: 0 0 5px 0;
    color: #fff;
}

.profile-card p {
    color: var(--urbano-primary);
    font-weight: bold;
    margin: 0;
}

/* Banner de "Próximamente" */
.coming-soon-banner {
    background: linear-gradient(45deg, var(--urbano-primary), #f0c340);
    color: var(--urbano-bg);
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 5px;
    margin-bottom: 50px;
}

/* --- Estilos para la Sección de Servicios --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background-color: var(--urbano-bg-secondary);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    text-align: center;
}

.service-card-icon {
    font-size: 2.5rem;
    color: var(--urbano-primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.service-card p {
    color: var(--urbano-text);
    line-height: 1.6;
}

/* --- Estilos para el Bloque "Team Maestro" --- */
.team-maestro-box {
    background-color: rgba(212, 175, 55, 0.05);
    border-left: 4px solid var(--urbano-primary);
    padding: 30px;
    margin: 60px 0;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.team-maestro-icon {
    font-size: 3rem;
    color: var(--urbano-primary);
}

.team-maestro-box h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--urbano-primary);
    margin-top: 0;
    margin-bottom: 10px;
}

.team-maestro-box p {
    color: var(--urbano-text);
    line-height: 1.7;
    margin: 0;
}

/* --- Estilos para la Sección de Encuesta --- */
.poll-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.poll-option {
    background-color: var(--urbano-bg-secondary);
    border: 2px solid #2a2a2a;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.poll-option:hover {
    border-color: var(--urbano-primary);
    transform: translateY(-5px);
    background-color: #222;
}

.poll-option i {
    font-size: 3rem;
    color: var(--urbano-primary);
    margin-bottom: 20px;
}

.poll-option span {
    display: block;
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- Estilos para la Sección de Galería --- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    grid-auto-rows: 250px;
    /* Altura base de las filas */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* Lógica para el efecto Masonry */
.gallery-item:nth-child(4n + 1) {
    grid-row: span 2;
    /* Hace que ciertos items sean más altos */
}

.gallery-item:nth-child(4n + 4) {
    grid-column: span 2;
    /* Hace que ciertos items sean más anchos */
    grid-row: span 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(212, 175, 55, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.gallery-overlay i {
    color: white;
    font-size: 2.5rem;
}

/* --- Estilos para la Sección de Contacto --- */

.contact-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    color: #555;
}

.contact-details ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-details li i {
    font-size: 1.5rem;
    color: var(--urbano-primary);
    margin-top: 5px;
    width: 25px;
    text-align: center;
}

.contact-details li strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #fff;
}

.contact-details li span {
    color: var(--urbano-text);
}

.contact-social {
    margin-bottom: 30px;
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #2a2a2a;
    color: var(--urbano-text);
    border-radius: 50%;
    text-decoration: none;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.contact-social a:hover {
    background-color: var(--urbano-primary);
    color: var(--urbano-bg);
    transform: translateY(-3px);
}

.btn-cita-contact {
    display: block;
    width: 100%;
    background-color: var(--urbano-primary);
    color: var(--urbano-bg);
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.btn-cita-contact:hover {
    background-color: #fff;
}

/* --- Estilos para los Iconos Sociales en las Tarjetas de Perfil --- */

.profile-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    /* Espacio entre la especialidad y los iconos */
    padding-top: 20px;
    border-top: 1px solid #2a2a2a;
    /* Línea divisoria sutil */
}

.profile-socials a {
    color: var(--urbano-text);
    font-size: 1.3rem;
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.profile-socials a:hover {
    color: var(--urbano-primary);
    opacity: 1;
    transform: scale(1.2);
}

/* --- Estilos para la Sección de Galería (Versión Interactiva) --- */

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

/* Lógica para el efecto Masonry */
.gallery-item:nth-child(4n + 1) {
    grid-row: span 2;
}

.gallery-item:nth-child(4n + 4) {
    grid-column: span 2;
    grid-row: span 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(18, 18, 18, 0.85);
    /* Fondo oscuro para el efecto */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.gallery-text {
    text-align: center;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.gallery-item:hover .gallery-text {
    opacity: 1;
    transform: translateY(0);
}

.gallery-text h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--urbano-primary);
    margin: 0 0 5px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.gallery-text p {
    color: #fff;
    margin: 0;
}

/* --- Hero Section (Versión Actualizada con Imagen) --- */
.hero-section {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;

    /* --- ¡CORRECCIÓN AQUÍ! --- */
    background-image: url('/images/portfolio/stylo-urbano/urbano-hero-banner.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Capa oscura para mejorar la legibilidad del texto */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Responsividad para la galería */
@media (max-width: 600px) {
    .gallery-grid {
        grid-auto-rows: 200px;
    }

    .gallery-item:nth-child(4n + 1),
    .gallery-item:nth-child(4n + 4) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* --- Responsividad para la sección de contacto --- */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        /* Una columna en pantallas pequeñas */
    }
}

/* Responsividad para la galería */
@media (max-width: 600px) {
    .gallery-grid {
        grid-auto-rows: 200px;
    }

    /* Desactivamos el masonry en móviles para un layout más simple */
    .gallery-item:nth-child(4n + 1),
    .gallery-item:nth-child(4n + 4) {
        grid-column: span 1;
        grid-row: span 1;
    }
}