/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #cf1c1c;
    --secondary-color: #000;
    --accent-color: #852f29;
    --light-color: #fff;
    --dark-color: #333;
    --gray-color: #f5f5f5;
    --dark-gray: #807c7c;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--gray-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    background-color: var(--light-color);
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

nav.scrolled {
    height: 70px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.logoNav img {
    width: 90px;
    transition: transform 0.3s ease;
}

.logoNav img:hover {
    transform: scale(1.05);
}

.listNav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.menuNav {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    color: var(--secondary-color);
    font-size: 18px;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
}

.menuNav::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.menuNav:hover::after, 
.menuNav.activate::after {
    width: 80%;
}

.menuNav:hover, 
.menuNav.activate {
    color: var(--primary-color);
}

.menuNav.highlight {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
}

.menuNav.highlight:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,0,0,0.3);
}

.menuNav.highlight::after {
    display: none;
}

.mobileMenu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Header */
header {
    position: relative;
    height: 100vh;
    min-height: 25rem;
    width: 100%;
    overflow: hidden;
    background-color: var(--secondary-color);
    margin-top: 90px;
}

header video{
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translateX(-50%) translateY(-50%);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-color);
}

.h1Banner {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInDown 1s ease;
}

.line {
    font-weight: bold;
    color: var(--light-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    border-right: 2px solid rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    overflow: hidden;
    margin: 0 auto;
}

.typing-animation {
    animation: typing 4s steps(40) 1s infinite,
               blink 500ms steps(40) infinite normal;
}

@keyframes typing {
    from { width: 0 }
    to { width: 16em }
}

@keyframes blink {
    from { border-right-color: rgba(255, 255, 255, 0.75); }
    to { border-right-color: transparent; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.buttons {
    margin-top: 2rem;
    animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.btns {
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    padding: 1rem 2rem;
    margin: 0 1rem;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--light-color);
    background-color: var(--primary-color);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btns:hover {
    background-color: var(--light-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,0,0,0.3);
}

.btns::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 100%;
    width: 200px;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.7s;
    z-index: -1;
}

.btns:hover::before {
    top: -30px;
    left: -30px;
}

/* Section Styles */
.section-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    position: relative;
    text-transform: uppercase;
}

.section-title.light {
    color: var(--light-color);
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Team Section */
.equipe {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.equipe-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.equipe-card {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.equipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.equipe-card:nth-child(even) {
    background-color: var(--secondary-color);
    color: var(--light-color);
    flex-direction: row-reverse;
}

.equipe-card:nth-child(odd) {
    background-color: var(--gray-color);
    color: var(--secondary-color);
}

.equipe-image-container {
    position: relative;
    width: 300px;
    height: 400px;
    overflow: hidden;
}

.equipe-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.equipe-card:hover .equipe-image {
    transform: scale(1.05);
}

.equipe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
}

.equipe-card:hover .equipe-overlay {
    opacity: 1;
}

.equipe-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.barberNames {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.barberNames::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
}

.equipe-bio {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dark-gray);
    color: var(--light-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.agendar-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.agendar-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,0,0,0.3);
}

/* Services Section */
.nossosCortes {
    padding: 5rem 0;
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.cortesPromotion {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    position: relative;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.card:hover img {
    transform: scale(1.1);
}

.card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: var(--light-color);
    transform: translateY(70%);
    transition: transform 0.3s ease;
}

.card:hover .card__content {
    transform: translateY(0);
}

.card__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--light-color);
    font-family: 'Oswald', sans-serif;
}

.card__description {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
}

.card:hover .card__description {
    opacity: 1;
    transform: translateY(0);
}

.card__price {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.2s;
}

.card:hover .card__price {
    opacity: 1;
    transform: translateY(0);
}

.card__btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 30px;
    font-size: 0.9rem;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.3s;
}

.card:hover .card__btn {
    opacity: 1;
    transform: translateY(0);
}

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

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    text-align: center;
}

.stat {
    flex: 1;
    padding: 1.5rem;
    border-radius: 10px;
    background-color: var(--gray-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 1rem;
    color: var(--dark-color);
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 5px solid var(--primary-color);
    border-left: 5px solid var(--primary-color);
    z-index: -1;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-bottom: 5px solid var(--primary-color);
    border-right: 5px solid var(--primary-color);
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Oswald', sans-serif;
}

.contact-item p {
    color: #ccc;
}

.contact-form form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--light-color);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.submit-btn {
    justify-self: start;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-weight: bold;
}

.submit-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,0,0,0.3);
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: var(--light-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-logo img {
    width: 120px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

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

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--light-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .about-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .stat {
        flex: 0 0 calc(50% - 0.5rem);
    }
}

@media (max-width: 768px) {
    .h1Banner {
        font-size: 2.5rem;
    }

    .line {
        font-size: 2rem;
    }

    .listNav {
        display: none;
    }
    
    .mobileMenu {
        display: block;
    }
    
    .equipe-card {
        flex-direction: column !important;
    }
    
    .equipe-image-container {
        width: 100%;
        height: 300px;
    }
    
    .about-stats {
        flex-direction: column;
    }
    
    .stat {
        flex: 0 0 100%;
        margin-bottom: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }
    
    .buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .btns {
        margin: 0;
    }
}