/* ====================================
    Imperio Barbershop - ESTILOS GUEST
    ==================================== */

/* Paleta de colores: Grises, Blancos, Negros y Beige como diferencial */
:root {
    --primary-beige: #d4a574;
    --dark-gray: #2c3e50;
    --light-gray: #ecf0f1;
    --white: #ffffff;
    --black: #1a1a1a;
    --medium-gray: #95a5a6;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fafafa;
    color: #333;
}

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

.navbar-custom {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-bottom: 1px solid var(--light-gray);
}

.navbar-custom .navbar-brand {
    color: var(--dark-gray) !important;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.navbar-custom .navbar-brand i {
    color: var(--primary-beige);
    margin-right: 8px;
}

.navbar-custom .nav-link {
    color: var(--dark-gray) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    margin: 0 8px;
}

.navbar-custom .nav-link:hover {
    color: var(--primary-beige) !important;
}

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

.btn-beige {
    background: var(--primary-beige);
    color: var(--white);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-beige:hover {
    background: #c19561;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(212, 165, 116, 0.3);
}

.btn-outline-beige {
    border: 2px solid var(--primary-beige);
    color: var(--primary-beige);
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-beige:hover {
    background: var(--primary-beige);
    color: var(--white);
}

/* ====================================
   HERO SECTION
   ==================================== */

.hero-section {
    position: relative;
    min-height: 600px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    height: 600px;
    border-radius: 0;
}

.carousel-item {
    height: 600px;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: brightness(0.8); */
}

.carousel-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.carousel-content {
    text-align: center;
    color: var(--white);
    z-index: 3;
    padding: 0 1rem;
}

.carousel-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    letter-spacing: -1px;
}

.carousel-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
    opacity: 0.95;
}

.carousel-content .btn {
    margin: 0 12px;
    padding: 12px 40px;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.carousel-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
}

.carousel-indicators {
    bottom: 30px !important;
    z-index: 5;
}

.carousel-indicators [data-bs-target] {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: var(--primary-beige) !important;
    width: 30px !important;
    border-radius: 6px !important;
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 5;
}

/* ====================================
   ABOUT US SECTION
   ==================================== */

.about-section {
    background: var(--white);
    padding: 80px 0;
    border-top: 1px solid var(--light-gray);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-beige);
    border-radius: 2px;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--medium-gray);
    margin-bottom: 20px;
}

.about-image {
    min-height: 400px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-beige);
}

/* ====================================
   SECTION TITLES
   ==================================== */

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--dark-gray);
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-beige);
    border-radius: 2px;
}

/* ====================================
   SERVICES SECTION
   ==================================== */

.services-section {
    background: var(--light-gray);
    padding: 80px 0;
}

.card-service {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background: var(--white);
    height: 100%;
}

.card-service:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(212, 165, 116, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-beige) 0%, #c19561 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

/* ====================================
   BARBERS SECTION
   ==================================== */

.barbers-section {
    background: var(--white);
    padding: 80px 0;
}

.barber-card {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
    background: var(--white);
    height: 100%;
}

.barber-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(212, 165, 116, 0.2);
}

.barber-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-beige) 0%, #c19561 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    margin: 30px auto 20px;
}

.barber-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.barber-card h5 {
    color: var(--dark-gray);
    font-weight: 700;
    margin-bottom: 12px;
}

.barber-card p {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

/* ====================================
   GALLERY SECTION
   ==================================== */

.gallery-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

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

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(212, 165, 116, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-text {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

/* ====================================
   CTA SECTION
   ==================================== */

.cta-section {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* ====================================
   FOOTER
   ==================================== */

.footer-custom {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 20px;
    border-top: 2px solid var(--primary-beige);
}

.footer-section {
    margin-bottom: 40px;
}

.footer-section h6 {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-beige);
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.footer-section p {
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--medium-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: var(--primary-beige);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--dark-gray);
    border-radius: 50%;
    color: var(--primary-beige);
    margin: 0 8px 12px 0;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-beige);
    color: var(--black);
    transform: translateY(-3px);
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: var(--medium-gray);
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-day {
    font-weight: 600;
}

.schedule-hours {
    color: var(--primary-beige);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--medium-gray);
}

/* ====================================
   LEGAL PAGES
   ==================================== */

.legal-section {
    background: var(--white);
    padding: 60px 0;
    min-height: 100vh;
}

.legal-header {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 4px solid var(--primary-beige);
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.legal-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 10px 0 0;
}

.legal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.legal-content h2 {
    color: var(--dark-gray);
    font-weight: 700;
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-beige);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 1.3rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-content p {
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-content ul,
.legal-content ol {
    color: var(--medium-gray);
    line-height: 1.8;
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content strong {
    color: var(--dark-gray);
}

.legal-highlight {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 20px;
    border-left: 4px solid var(--primary-beige);
    border-radius: 8px;
    margin: 20px 0;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.legal-table th {
    background: var(--primary-beige);
    color: var(--white);
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.legal-table td {
    border-bottom: 1px solid var(--light-gray);
    padding: 12px;
    color: var(--medium-gray);
}

.legal-table tr:hover {
    background: #f9f9f9;
}

.back-button {
    display: inline-block;
    margin-bottom: 30px;
}

.back-button a {
    color: var(--primary-beige);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-button a:hover {
    color: var(--dark-gray);
    transform: translateX(-5px);
}

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

@media (max-width: 768px) {
    .navbar-custom .navbar-brand {
        font-size: 1rem;
    }

    .navbar-custom .nav-link {
        margin: 0;
        padding: 0.55rem 0;
    }

    .hero-section,
    .carousel-container,
    .carousel-item {
        min-height: 460px;
        height: 460px;
    }

    .carousel-content h1 {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .carousel-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .carousel-content .btn {
        display: block;
        width: min(280px, 92vw);
        margin: 0;
        padding: 10px 20px;
    }

    .carousel-actions {
        gap: 12px;
        margin-top: 14px;
    }

    .about-content {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .about-image {
        width: 100%;
        max-width: 240px;
        min-height: 180px;
        font-size: 2.4rem;
    }

    .about-text {
        width: 100%;
    }

    .about-text h2 {
        font-size: 1.5rem;
    }

    .about-section,
    .services-section,
    .barbers-section,
    .gallery-section,
    .cta-section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 28px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .schedule-item {
        font-size: 0.95rem;
    }

    .legal-header {
        padding: 28px 0;
        margin-bottom: 26px;
    }

    .legal-header h1 {
        font-size: 1.7rem;
    }

    .legal-content {
        padding: 20px;
        border-radius: 10px;
    }

    .legal-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .footer-section {
        margin-bottom: 30px;
    }

    .footer-bottom {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .barber-avatar {
        width: 96px;
        height: 96px;
        margin-top: 22px;
        margin-bottom: 14px;
    }

    .barber-card h5 {
        font-size: 1rem;
    }

    .barber-card .btn {
        font-size: 0.8rem;
        padding: 0.35rem 0.6rem;
    }

    .carousel-content h1 {
        font-size: 1.6rem;
    }

    .carousel-content p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.55rem;
    }

    .about-text p,
    .legal-content p,
    .legal-content li {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .social-icons a {
        width: 36px;
        height: 36px;
        margin-right: 6px;
    }

    .legal-content {
        padding: 20px;
    }

    .legal-content h2 {
        font-size: 1.4rem;
    }

    .legal-content h3 {
        font-size: 1.1rem;
    }
}
