@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 ---------- */

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

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/peluquería/foto2.2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;

}






h1 {
    text-align: center;
    font-family: "Noto Serif", serif;
    font-size: 390%;
    margin-top: 4%;
}

h4 {
    text-align: center;
    font-family: "Noto Serif", serif;
    font-size: 100%;
}

/* ---------- CONTENEDORES ---------- */
.servicios-container {
    padding: 40px 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 5%;
}

.section-title {
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cards-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* ---------- ESTILO DE TARJETA ---------- */
/* ---------- ESTILO DE TARJETA CON EFECTO CRISTAL (Glassmorphism) ---------- */
.card-servicio {
    /* Fondo blanco con 15% de opacidad */
    background: rgba(255, 255, 255, 0.15);

    /* El efecto de desenfoque de lo que hay detrás */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* Soporte para Safari */

    /* Borde sutil para que resalte sobre el fondo */
    border: 1px solid rgba(255, 255, 255, 0.2);

    /* Cambiamos el color del texto a blanco para que se lea sobre el fondo oscuro */
    color: #ffffff;

    padding: 80px 30px;
    border-radius: 15px;
    /* Bordes redondeados */
    width: 320px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s ease;
}

/* Ajustes para que los textos internos se vean bien con el fondo transparente */
.card-servicio .precio {
    color: #ffffff;
    font-weight: 700;
}

.card-servicio .tagline {
    color: rgba(255, 255, 255, 0.7);
}

.card-servicio .features li::before {
    color: #21bdec;
    /* Usamos el azul de tu web para los puntos de la lista */
}

/* Efecto al pasar el mouse */
.card-servicio:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.25);
    /* Se aclara un poco al pasar el mouse */
    border: 1px solid rgba(33, 189, 236, 0.5);
    /* Borde azul sutil */
}

/* Aplicamos una sombra sutil pero efectiva a todo el texto dentro de la tarjeta */
.card-servicio {
    /* ... (mantén tus estilos anteriores de glassmorphism) ... */

    /* Sombra de texto por defecto para todo el contenedor */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Refuerzo específico para el Título (Servicio) si decides ponerlo */
.card-servicio h2.precio {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    /* Sombra un poco más marcada para el número */
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

/* Mejora de legibilidad para el Tagline y la lista */
.card-servicio .tagline,
.card-servicio .features li {
    color: #ffffff;
    font-weight: 500;
    /* Un poco más de grosor ayuda al contraste */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Importante: Quitamos la sombra del texto al BOTÓN para que se vea limpio */
.btn-reservar {
    text-shadow: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    /* Sombra pero al botón, no al texto */
}

/* Ajuste para los puntos (bullets) de la lista */
.card-servicio .features li::before {
    color: #21bdec;
    text-shadow: none;
    /* El color sólido del azul resalta mejor solo */
    font-weight: bold;
}


/* Estilo para el botón dentro de la tarjeta de cristal */
.btn-reservar {
    display: inline-block;
    background-color: #ffffff;
    /* Botón blanco para que contraste */
    color: #000;
    padding: 12px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-reservar:hover {
    background-color: #21bdec;
    color: #fff;
}

.tagline {
    font-size: 0.9rem;
    color: #777;
    display: block;
    margin-bottom: 15px;
}

.precio {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #000;
}

.features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.features li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    position: relative;
    padding-left: 20px;
}

.features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #333;
}

/* ---------- BOTÓN RESERVAR ---------- */
.btn-reservar {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 12px 35px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-reservar:hover {
    background-color: #21bdec;
    /* Color azul de tu menú */
    color: white;
}

/* ---------- VARIACIÓN OTROS SERVICIOS (Más pequeños) ---------- */
.card-servicio.small {
    width: 220px;
    padding: 25px 20px;
}

.card-servicio.small .precio {
    font-size: 2rem;
}

/* Ajuste para que el Hero no corte el contenido */
.hero {
    height: auto;
    padding: 150px 5% 50px 5%;
    /* Espacio para el header fixed */
}

/* ---------- ANIMACIÓN---------- */

.titulo-servicios {
    letter-spacing: 4px;
    animation: tituloEntrada 1.2s ease;
}

@keyframes tituloEntrada {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

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

.card-servicio.reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
}

.card-servicio.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.8s ease;
}

.section-title {
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: #21bdec;
    margin: 10px auto 0;
    transition: width 0.8s ease;
}

.section-title.reveal.active::after {
    width: 80px;
}

/* ---------- 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);
}

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

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

.social a:hover {
    transform: scale(1.1);
    color: #000;
}





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

@media(max-width:992px) {

    .hero {
        text-align: center;
    }

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

}

/* ---------- MOVIL ---------- */
@media(max-width:768px) {
    .hero {
        padding: 100px 5% 40px;
    }

    .servicios-container {
        padding: 30px 10px 20px;
    }

    h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
        text-align: center;
    }

    h4 {
        font-size: 0.95rem;
        text-align: center;
        padding: 0 10px;
    }

    .cards-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Dos columnas */
        gap: 12px;
        padding: 0 5px;
        margin-top: 15px;
    }

    .card-servicio {
        width: 100% !important;
        padding: 20px 15px !important; /* Padding mucho más compacto */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 180px; /* Asegura que todas tengan la misma altura */
        background: rgba(255, 255, 255, 0.12) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }

    .card-servicio::before {
        display: none !important;
    }

    .card-servicio .tagline {
        font-size: 0.85rem !important;
        line-height: 1.2;
        margin-bottom: 10px !important;
        min-height: 2.4rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: #fff !important;
        font-weight: 500 !important;
        text-transform: none !important;
        letter-spacing: normal !important;
    }

    .card-servicio .precio {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
        font-weight: 800;
        color: #fff !important;
    }

    .card-servicio p {
        font-size: 0.75rem !important;
        opacity: 0.8;
        margin-bottom: 15px !important;
        color: #fff !important;
    }

    .btn-reservar {
        background: #21bdec !important;
        color: #fff !important;
        padding: 8px 10px !important;
        font-size: 0.8rem !important;
        width: 100%;
        border-radius: 6px;
        margin-top: auto;
    }

    .section-title {
        font-size: 1.4rem;
        text-align: center;
        margin-top: 20px;
    }

    .card-servicio.small {
        min-height: 160px;
    }
}

@media(max-width:480px) {
    h1 {
        font-size: 2rem;
    }
}



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

@supports (-webkit-touch-callout: none) {

    .hero {
        min-height: -webkit-fill-available;
    }

}

/* ELEMENTOS QUE APARECEN CON SCROLL */

.reveal {
    opacity: 0;
    transform: translateY(70px);
    transition: opacity 1s ease, transform 1s ease;
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- FIX SAFARI IPHONE ---------- */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: calc(100vh - 80px);
    }
    .hero::before {
        background-attachment: scroll !important;
    }
}
/* 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 */
    }
}
