*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Importar las fuentes personalizadas */
@font-face {
    font-family: 'MiFuente';
    src: url('../fonts/QwitcherGrypen-Regular.ttf') format('truetype'),
         url('../fonts/QwitcherGrypen-Bold.ttf') format('truetype');
}

body {
    font-family: 'MiFuente', sans-serif;
    margin: 0;
    font-weight: bold;
    overflow-x: hidden;
}

/* Corrección Key para Safari */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h1{ font-size: 4.5em;}
h2{ font-size: 3.7em;}
h3{ font-size: 3em}
p{ font-size: 2.5em}
ul{ list-style: none;}
li{ font-size: 2em;}

.container{
    max-width: 1300px;
    margin: auto;
}

/* Estilo base para los botones */
button {
    font-family: 'MiFuente', Arial, sans-serif; 
    font-weight: bold;
    background: transparent; 
    color: black; 
    border: 2px solid black; 
    padding: 5px 10px; 
    font-size: 2em; 
    cursor: pointer; 
    border-radius: 5px; 
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s, color 0.3s; 
}

/* Efecto hover para los botones */
button:hover {
    background: linear-gradient(to right, #40E0D0, #FF69B4, #8A2BE2); 
    color: white; 
    border: none; 
} 

#hero {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    justify-content: center;
    align-items: center;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Carrusel principal */
.carousel { 
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden; 
    display: flex;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

/* Reflejos Optimizados */
.side-image {
    position: absolute;
    width: 20%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    filter: blur(1px) brightness(0.8);
    z-index: 1;
}

.left-reflection {
    left: 0;
    transform: scaleX(-1);
}

.right-reflection {
    right: 0;
}

/* Ajustes Específicos para Safari */
@supports (-webkit-touch-callout: none) {
    .carousel-image {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .side-image {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Contenido hero */
.hero-content {
    position: absolute;
    z-index: 2;
    max-width: 85%;
    margin: 0 auto;
    text-align: center;
    top: 50%; /* Centra verticalmente */
    left: 50%; /* Centra horizontalmente */
    transform: translate(-50%, -50%); /* Ajusta el centro */
}

/* Estilos del contenedor del texto */
#painted-text {
    font-size: 4em;
    color: #FFFFFF; 
    text-shadow: 5px 5px 12px rgba(0, 0, 0, 0.9), 0px 0px 15px #FF69B4, 0px 0px 20px #8A2BE2;
    animation: shadowPulse 1.5s infinite alternate, colorChange 5s infinite linear;
}

/* Sombra pulsante más intensa */
@keyframes shadowPulse {
    0% { text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8), 0px 0px 10px #FF69B4, 0px 0px 15px #8A2BE2; }
    100% { text-shadow: 5px 5px 15px rgba(0, 0, 0, 1), 0px 0px 20px #FF69B4, 0px 0px 30px #8A2BE2; }
}

/* Cambio de color en el texto */
@keyframes colorChange {
    0% { color: #FF69B4; }
    33% { color: #8A2BE2; }
    66% { color: #40E0D0; }
    100% { color: #FF69B4; }
}

#painted-text span {
    display: block;
    text-align: center;
}

/* Contenedor principal de la sección de reseña */
#reseña {
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 228, 225, 0.9), rgba(240, 240, 245, 0.9));
    border-radius: 10px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    color: #333;
    text-align: center;
    overflow: hidden;
}

/* Logo como marca de agua en el fondo */
#reseña::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px; 
    height: 300px;
    background-image: url('../image/_ultimo_.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1; 
    transform: translate(-50%, -50%) scale(1.2); 
    z-index: 0; 
    filter: blur(1px); 
}

/* Estilo del contenido para que esté encima del logo */
#reseña .container {
    position: relative;
    z-index: 1;
}

#reseña .color-acento{ 
    color: darkcyan;
}

/* Estilo principal de la sección #Menu */
#Menu {
    position: relative;
    background-color: rgb(30, 30, 30);
    color: white;
    text-align: center;
    padding: 20px;
}

#Menu h2 {
    margin-top: 0;
    font-size: 5em;
    padding-bottom: 10px;
}

#Menu .color-acento{ 
    color: darkcyan;
}

#Menu .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

/* Estilos para cada carta individual */
.carta {
    position: relative;
    color: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex ;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    background-size: cover;
    background-position: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.carta h3 {
    font-size: 3.5em;
    margin-top: 10px;
    position: relative;
    z-index: 1;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    }

.carta p{
    display: none;
}

.carta:hover {
    transform: scale(1.03);
}

/* Estilos específicos para cada carta según su posición */
#manicura {
    background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../image/IMG-20241011-WA0030.jpg);
}

#promociones {
    background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../image/octubre.jpg);
}

#contacto {
    background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../image/estudio.jpg);
}

/* Botón de información */
.carta button {
    position: center;
    bottom: 20px;
    padding: 10px 20px;
    font-size: 1.5em;
    color: white;
    background-color: #8A2BE2;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carta button:hover {
    background-color: #FF69B4;
}

/* Efecto de fondo similar al de #reseña para #caracteristicas */
#caracteristicas {
    position: relative;
    padding: 50px 20px;
    background: linear-gradient(135deg, rgba(255, 228, 225, 0.9), rgba(240, 240, 245, 0.9));
    border-radius: 10px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    color: #333;
    text-align: center;
    overflow: hidden;
}

/* Fondo de marca de agua para #caracteristicas */
#caracteristicas::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background-image: url('../image/_ultimo_.jpg'); 
    background-size: cover;
    background-position: center;
    opacity: 0.1; 
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 0;
    filter: blur(1px); 
}

/* Estilos para centrar el contenido sobre el fondo */
#caracteristicas .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Estilo para cada ítem de la lista */
#caracteristicas li {
    margin: 10px 0px;
    font-size: 2em; 
    color: #333;
}

/* Estilos para el footer */
footer {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.9), rgba(60, 60, 60, 0.9));
    color: #fff;
    text-align: center;
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Estilo del texto principal */
footer p {
    margin: 0;
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

footer .color-acento{ 
    color: darkcyan;
}

/* Animación de un brillo sutil en el texto */
footer p::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    opacity: 0.3;
    transform: translateY(-50%);
    animation: shine 5s infinite;
}

/* Keyframe para el efecto de brillo */
@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Redes sociales como iconos en el footer*/ 
footer .social-links {
    font-size: 1.7em;
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

footer .social-links a {
    color: #FF69B4;
    font-size: 1.8em;
    transition: color 0.3s;
}

footer .social-links a:hover {
    color: #40E0D0;
}

@media (min-width: 720px){
    header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .menu {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .carta {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 400px; 
        height: 600px; 
        padding: 20px;
        color: white;
        background-size: cover;
        background-position: center;
        border-radius: 8px;
        overflow: hidden;
        transition: transform 0.3s ease;
        text-align: center;
    }

    .carta h3 {
        font-size: 3em;
        margin: 10px 0;
        align-self: center; 
    }

    .carta p {
        font-size: clamp(1.3em, 2.4vw, 2em);
        display: block;
        margin: 10px 0; 
        padding: 0 10px; 
        flex-grow: 1; 
        overflow-y: auto; 
    }

    .carta button {
        font-size: 1.5em;
        padding: 10px 20px;
        margin-top: 10px;
        align-self: center;
        background-color: #8A2BE2;
        border: none;
        color: white;
        border-radius: 5px;
        cursor: pointer;
    }

    .carta button:hover {
        background-color: #FF69B4;
    }


}
