/* -------------------------------------------------------------------------- */
/* 1. RESET & VARIABLES                                                       */
/* -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;    
    --secondary-color: #f7f5f0;  
    --accent-color: #d4af37;     
    --text-dark: #333333;
    --text-light: #777777;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* -------------------------------------------------------------------------- */
/* 2. COMPONENTES / BOTONES                                                   */
/* -------------------------------------------------------------------------- */
.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 1px solid var(--accent-color);
}

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

.btn-primary-sm {
    display: inline-block;
    padding: 8px 20px;
    background-color: transparent;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border: 1px solid var(--accent-color);
    transition: var(--transition);
}

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

.btn-accent {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

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

.subtitle {
    display: block;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* -------------------------------------------------------------------------- */
/* 3. HEADER & NAVBAR - LOGO IZQ / HAMBURGUESA DER                            */
/* -------------------------------------------------------------------------- */
header {
    background-color: var(--primary-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.nav-menu ul li a img {
    filter: brightness(0) saturate(100%) invert(76%) sepia(22%) saturate(1234%) hue-rotate(358deg) brightness(91%) contrast(87%);
    width: 16px;
    vertical-align: middle;
    margin-right: 8px;
}

.nav-menu ul li a:hover img {
    filter: brightness(0) invert(1); /* Se ponen blancos al hacer hover */
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px; /* espacio entre logo y texto */
}

.logo-img {
    height: 70px;
    width: auto;
}

.logo-texto h1 {
    color: #fff;
    font-size: 24px;
    margin: 0;
    line-height: 1.1;
    font-weight: 700;
}

.logo-sub {
    color: #D4A017;
    font-size: 14px;
    display: block;
    margin-top: 2px;
}
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: 2px solid #fff;
    border-radius: 8px;
    padding: 10px 12px;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 2px;
}

/* -------------------------------------------------------------------------- */
/* 4. HERO SECTION                                                            */
/* -------------------------------------------------------------------------- */
.hero {
    height: 100vh;
    background: url('img/fondo-peluqueria.png') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #ffffff;
    max-width: 700px;
    padding: 0 20px;
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: #dddddd;
}

/* -------------------------------------------------------------------------- */
/* 5. NOSOTROS                                                                */
/* -------------------------------------------------------------------------- */
.nosotros {
    padding: 100px 0;
    display: flex;
    align-items: center;
    gap: 50px;
}

.nosotros-text {
    flex: 1;
}

.nosotros-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.nosotros-text p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.nosotros-img {
    flex: 1;
}

.placeholder-img {
    height: 400px;
    background: url('img/logo2.png') center/cover no-repeat;
    color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    font-family: var(--font-heading);
    font-size: 3.0rem;
    font-style: italic;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* -------------------------------------------------------------------------- */
/* 6. SERVICIOS                                                               */
/* -------------------------------------------------------------------------- */
.servicios-section {
    background-color: var(--secondary-color);
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
}

.servicios-grid {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.servicio-card {
    background-color: #ffffff;
    padding: 40px 30px;
    flex: 1;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: var(--transition);
    border-top: 3px solid transparent;
}

.servicio-card:hover {
    transform: translateY(-5px);
    border-top: 3px solid var(--accent-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.servicio-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.servicio-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 25px;
    min-height: 70px;
}

.servicio-card .precio {
    display: block;
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* -------------------------------------------------------------------------- */
/* 7. CONTACTO & RESERVAS                                                     */
/* -------------------------------------------------------------------------- */
.contacto {
    padding: 100px 0;
    display: flex;
    gap: 50px;
}

.contacto-info {
    flex: 1;
}

.contacto-info h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contacto-info p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 20px;
    font-size: 1rem;
}

.info-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contacto-form {
    flex: 1;
    background-color: var(--secondary-color);
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #dddddd;
    background-color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

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

/* -------------------------------------------------------------------------- */
/* 8. FOOTER                                                                  */
/* -------------------------------------------------------------------------- */
footer {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 40px 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    color: #888888;
}

/* -------------------------------------------------------------------------- */
/* SECCIÓN TRABAJOS & CARRUSEL                                                */
/* -------------------------------------------------------------------------- */
.trabajos-section {
    background-color: #ffffff;
    padding: 100px 0;
}

.carrusel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.carrusel-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; 
    padding: 10px 5px;
}

.carrusel-container::-webkit-scrollbar {
    display: none; 
}

.carrusel-item {
    min-width: calc(33.333% - 14px); 
    height: 400px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.carrusel-item:hover {
    transform: translateY(-5px);
}

.carrusel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

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

.carrusel-footer {
    text-align: center;
    margin-top: 30px;
}

.instagram-link {
    font-family: var(--font-body);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    transition: var(--transition);
    position: relative;
}

.instagram-link:hover {
    color: var(--accent-color);
}

.carrusel-btn.prev { left: -25px; }
.carrusel-btn.next { right: -25px; }

/* -------------------------------------------------------------------------- */
/* BOTONES FLOTANTES DE WHATSAPP & INSTAGRAM                                  */
/* -------------------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF !important;
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

.instagram-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 95px;
    right: 25px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #FFF !important;
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.instagram-float:hover {
    transform: scale(1.1);
}

.mapa-container {
    width: 100%;
    height: 280px;
    margin-top: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    overflow: hidden;
    border-radius: 4px;
    transition: var(--transition);
}

.mapa-container:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* -------------------------------------------------------------------------- */
/* COMPLEMENTOS PARA EL CARRUSEL                                              */
/* -------------------------------------------------------------------------- */
.loading-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--secondary-color);
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-left-color: var(--accent-color);
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#carousel .carrusel-item {
  flex: 0 0 300px;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
}

#carousel .carrusel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#instagram-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 25px;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
  color: white;
  box-sizing: border-box;
}

#instagram-card img, 
#instagram-card .emoji {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

#instagram-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 20px 0;
}

#instagram-card .btn-instagram,
#instagram-card button {
  background: white;
  color: #dd2a7b;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s;
}

#instagram-card .btn-instagram:hover {
  transform: scale(1.05);
}

/* -------------------------------------------------------------------------- */
/* MEDIA QUERIES - RESPONSIVE                                                 */
/* -------------------------------------------------------------------------- */
@media (max-width: 968px) {
    .container {
        width: 92%;
    }
    
    #contacto {
        scroll-margin-top: 140px; 
    }
    
    .menu-toggle { 
        display: flex; 
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        text-align: center;
        padding: 20px 0;
    }

    .nav-menu.active { display: block; }
    
    .nav-menu ul { 
        flex-direction: column; 
    }
    
    .nav-menu ul li { 
        margin: 15px 0; 
    }

    .hero {
        padding-top: 160px;
    }

    .hero-content h2 {
        font-size: 2.8rem;
    }

    .nosotros, .contacto {
        flex-direction: column;
        gap: 40px;
        padding: 60px 0;
    }

    .nosotros-img, .contacto-info, .contacto-form {
        width: 100%;
    }

    .servicios-grid {
        flex-direction: column;
        gap: 25px;
    }

    .carrusel-item {
        min-width: calc(50% - 10px); 
        height: 320px;
    }
    .carrusel-btn.prev { left: -10px; }
    .carrusel-btn.next { right: -10px; }
    .trabajos-section { padding: 60px 0; }
}

@media (max-width: 768px) {
    .mapa-container {
        height: 240px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    #carousel .carrusel-item {
        flex: 0 0 85vw;
        height: 85vw;
        max-height: 350px;
    }

    #instagram-card {
        padding: 15px;
    }

    #instagram-card .icono-ig,
    #instagram-card .fab.fa-instagram {
        font-size: 3rem;
        margin-bottom: 8px;
    }

    #instagram-card p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    #instagram-card .btn-instagram {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .nosotros-text h2, 
    .section-header h2, 
    .contacto-info h2 {
        font-size: 2rem;
    }

    nav ul li {
        margin: 5px 8px;
    }
    
    nav ul li a {
        font-size: 0.8rem;
    }
nav ul li a i {
    color: #B0611A; /* Tu color personalizado */
    margin-right: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

/* Opcional: Para que al pasar el mouse tengan un efecto visual */
nav ul li a:hover i {
    color: #ffffff; /* Puedes ponerlo blanco o cualquier otro color al hacer hover */
}
    .contacto-form {
        padding: 25px 20px;
    }

    .nosotros-img .placeholder-img {
        height: 250px;
        font-size: 1.4rem;
    }

    .carrusel-item {
        min-width: 85%; 
        height: 300px;
    }
    .carrusel-btn {
        display: flex;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .carrusel-btn.prev { left: 5px; }
    .carrusel-btn.next { right: 5px; }
    
    .carrusel-footer {
        margin-top: 20px;
        padding: 0 10px;
    }
    .instagram-link {
        font-size: 0.95rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .instagram-float {
        width: 50px;
        height: 50px;
        bottom: 80px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    #carousel .carrusel-item {
        flex: 0 0 90vw;
        height: 90vw;
        max-height: 320px;
    }
    
    #instagram-card .icono-ig,
    #instagram-card .fab.fa-instagram {
        font-size: 2.5rem;
    }
}
.social-icons {
    display: flex;
    gap: 16px;
    margin: 15px 0;
}

.social-icons a {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--primary-color);
    font-size: 24px; /* Tamaño del icono */
}

.social-icons a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: scale(1.1);
}
