@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');

/* ---------- RESET ---------- */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    font-size: 16px;
    background-color: #000;
    animation: fadePage 1s ease;
}

@keyframes fadePage {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

/* ---------- HERO (SECCIÓN CON IMAGEN) ---------- */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 120px 5% 60px 5%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 140%;
    /* Más alto para tener margen de movimiento */
    background-image: url("../images/peluquería/foto3.2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    will-change: transform;
    pointer-events: none;
}

/* Overlay oscuro encima de la imagen */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0, 0, 0, 0.4);
    /* Opcional: ajustar intensidad */
}

/* ---------- LOGO EN HERO ---------- */

.logo {
    width: 80%;
    max-width: 360px;
    height: auto;
    margin: 0 auto 2rem auto;
    display: block;
    filter: drop-shadow(0 4px 24px rgba(33, 189, 236, 0.18));
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }

    100% {
        transform: translateY(0)
    }
}

/* ---------- INTRO TEXT ---------- */

.Introduccion {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.15rem;
    margin: 0 auto;
    max-width: 780px;
    text-align: justify;
    font-family: "Noto Serif", serif;
    line-height: 1.8;

    /* Glassmorphism card */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    opacity: 0;
    animation: fadeUp 1.5s ease forwards;
    animation-delay: .5s;
}

/* Ajuste específico para evitar saltos de línea extraños en móviles */
@media (max-width: 768px) {
    .Introduccion {
        text-align: center;
        hyphens: auto;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- SECCIÓN CONTENIDO CLARO ---------- */

.contenido1 {
    background: #ffffff;
    padding: 6rem 5%;
    min-height: 50vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.medio {
    color: #111;
    font-size: 1.15rem;
    max-width: 860px;
    margin: 0 auto 2.5rem auto;
    padding-bottom: 2rem;
    border-bottom: 2px solid #21bdec;
    font-family: "Noto Serif", serif;
    line-height: 1.8;
}

/* ---------- BOTÓN RESERVA ---------- */

.botonReserva {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    background: #21bdec;
    color: white;
    border: none;
    border-radius: 8px;
    padding: .85rem 2.8rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(33, 189, 236, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    font-size: 1.1rem;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 1px;
    text-decoration: none;
}

.botonReserva:hover {
    background: #0da8cb;
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 14px 32px rgba(33, 189, 236, 0.45);
    color: #fff;
}

/* ---------- SECCIÓN OSCURA (horario + mapa) ---------- */

.contenido2 {
    position: relative;
    background: #111;
    padding: 7rem 5%;
    min-height: 50vh;
    color: white;
    overflow: hidden;
}

/* Fila con separación entre columnas en PC */
.contenido2 .row {
    gap: 2.5rem 3rem;
    display: flex;
    align-items: stretch; /* Esto hace que ambos midan lo mismo */
}

/* Línea decorativa superior */
.contenido2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #21bdec, transparent);
}

.horario,
.ubicacion {
    font-family: "Noto Serif", serif;
    padding: 36px 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    transition: .4s;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: 100%;
}

.horario:hover,
.ubicacion:hover {
    background: rgba(33, 189, 236, 0.08);
    border-color: rgba(33, 189, 236, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.horario h2,
.ubicacion h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    color: #fff;
}

.horario p,
.ubicacion p {
    margin-bottom: .5rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: .98rem;
}

/* ---------- MAPA Y UBICACIÓN ---------- */
.direccion-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.ubicacion:hover .direccion-info {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(33, 189, 236, 0.2);
}

.mapa-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.mapa iframe {
    width: 100%;
    max-width: 100%;
    height: 300px;
    border-radius: 12px;
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(100%) contrast(1.1);
    border: 0;
    display: block;
}

.ubicacion:hover .mapa iframe {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.02);
}

.btn-maps {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #21bdec;
    border: 1px solid #21bdec;
    padding: 10px 25px;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 700;
    transition: all 0.3s ease;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(33, 189, 236, 0.1);
}

.btn-maps:hover {
    background: #21bdec;
    color: #000 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33, 189, 236, 0.4);
}

.btn-admin-horario {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #21bdec;
    border: 1px solid #21bdec;
    font-weight: 700;
    border-radius: 10px;
    padding: 10px 25px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 189, 236, 0.1);
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
}

.btn-admin-horario:hover {
    background: #21bdec;
    color: #000 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33, 189, 236, 0.4);
}

.btn-admin-horario i {
    font-size: 1.1rem;
}

/* ---------- SECCIÓN CORTES ---------- */

.cortes {
    background: #ffffff;
    padding: 6rem 5%;
    min-height: 50vh;
}

.cortes h2 {
    text-align: center;
    font-family: "Noto Serif", serif;
    font-size: 3rem;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    color: #111;
    position: relative;
}

/* Línea decorativa bajo título CORTES */
.cortes h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #21bdec;
    margin: 12px auto 0;
    border-radius: 2px;
    transition: width 0.6s ease;
}

.cortes h2.reveal.active::after {
    width: 120px;
}

/* ---------- MOSAICO GRID ---------- */
.cortes-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 15px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    background-color: #111;
}

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

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

.overlay-corte {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.overlay-corte i {
    color: #fff;
    font-size: 3rem;
    background: rgba(33, 189, 236, 0.8);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.gallery-item:hover .overlay-corte i {
    transform: scale(1);
}

/* Configuramos el mosaico: 1 foto grande a la izquierda, 2 pequeñas a la derecha y otra extra si queremos */
.item-1 {
    grid-column: span 2;
    grid-row: span 2;
}

.item-2,
.item-3,
.item-4 {
    grid-column: span 1;
    grid-row: span 1;
}

/* Mosaico asimétrico de 4 ítems */
.cortes-gallery {
    grid-template-areas:
        "corte1 corte2 corte3"
        "corte1 corte4 corte4";
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 250px 250px;
}

.item-1 {
    grid-area: corte1;
}

.item-2 {
    grid-area: corte2;
}

.item-3 {
    grid-area: corte3;
}

.item-4 {
    grid-area: corte4;
    display: block;
}

/* Custom Pagination styles */
.swiper-pagination-bullet {
    background: #21bdec;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #1999bf;
    width: 28px;
    border-radius: 10px;
}


/* ---------- FOOTER ---------- */

.footer {
    background: #e6e6e6;
    padding: 60px 5%;
    color: #444;
    font-family: 'Raleway', sans-serif;
}

.footer img {
    margin-bottom: 20px;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 15px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer a {
    text-decoration: none;
    color: #555;
    transition: .3s;
}

.footer a:hover {
    color: #000;
    transform: translateX(3px);
    display: inline-block;
}

.social {
    display: flex;
    gap: 35px;
    margin-top: 6%;
    font-size: 150%;
}

.social a:hover {
    transform: scale(1.15);
    color: #000;
    display: inline-block;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: .9rem;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- TABLET ---------- */

@media(max-width:992px) {
    .hero {
        text-align: center;
    }

    .logoNav img {
        width: 75px;
    }

    .Introduccion {
        font-size: 1.05rem;
    }

    header nav ul.menu {
        gap: 2rem;
    }

    .contenido1,
    .cortes,
    .contenido2 {
        padding: 4rem 5%;
    }
}

/* ---------- MÓVIL ---------- */

@media(max-width:768px) {

    .contenido1,
    .cortes,
    .contenido2 {
        padding: 3.5rem 5%;
    }

    .Introduccion {
        font-size: 1rem;
        padding: 1.5rem;
        margin-top: 1rem;
    }

    .medio {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .botonReserva {
        width: 100%;
        max-width: 100%;
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
        text-align: center;
    }

    .mapa iframe {
        width: 100%;
        height: 260px;
    }

    .horario,
    .ubicacion {
        padding: 24px 20px;
    }

    .horario {
        margin-bottom: 0;
    }

    .contenido2 .row {
        gap: 2rem 0;
    }

    .cortes h2 {
        font-size: 2.2rem;
    }

    .cortes-gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas: none !important;
        grid-template-rows: auto;
        gap: 15px;
        padding: 0 10px;
    }

    .gallery-item {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        position: relative;
        /* Necesario para el fallback absolute de abajo */

        /* Fallback para Safari antiguo */
        @supports not (aspect-ratio: 1/1) {
            height: 0;
            padding-bottom: 100%;
        }
    }

    /* Corrección crítica Safari: si la altura es 0 (por el fallback), 
       la imagen DEBE ser absoluta para llenar el contenedor */
    @supports not (aspect-ratio: 1/1) {
        .gallery-item img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
    }

    /* Reseteo explícito de áreas para evitar conflictos en Safari */
    .item-1,
    .item-2,
    .item-3,
    .item-4 {
        grid-area: auto !important;
        grid-column: auto !important;
        grid-row: auto !important;
        display: block !important;
    }

    .overlay-corte i {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
}

/* ---------- FIX SAFARI IPHONE ---------- */

@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: calc(100vh - 80px);
    }

    .hero::before {
        background-attachment: scroll !important;
    }
}

/* ---------- REVEAL ON SCROLL PREMIUM ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(10px);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity, filter;
}

.reveal-left {
    transform: translateX(-50px) rotate(-1deg);
}

.reveal-right {
    transform: translateX(50px) rotate(1deg);
}

.reveal-scale {
    transform: scale(0.9) translateY(20px);
}

.reveal-blur {
    transform: translateY(0);
    filter: blur(15px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0) rotate(0);
    filter: blur(0);
}

/* Staggered Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

.delay-600 {
    transition-delay: 0.6s;
}

/* SOLUCIÓN IPHONE BACKGROUND JUMP */
@media (max-width: 768px) {
    .hero::before {
        background-attachment: scroll !important;
        position: absolute !important;
        height: 120% !important;
        /* Un poco más alto para cubrir rebotes de scroll */
    }
}