@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    display: block;
    width: 100%;
    height: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #51a4d8 60%, #f57c00 100%);
}


section {
    width: 100%;
    padding: 20px;
}

.swiper {
    margin: 50px auto;
    padding-bottom: 60px;
    user-select: none;
}

.swiper-slide {
    position: relative;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    filter: grayscale(20%) brightness(80%);
    pointer-events: none;
    will-change: transform;
}

.swiper-slide-active {
    perspective: 1000px;
    filter: grayscale(0) brightness(100%);
    pointer-events: auto;
    padding: 10px 0;
    transition: all 0.3s ease-in-out;
}

.swiper-slide-active .card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.swiper-slide.flipped .card {
    transform: rotateY(180deg);
}

.swiper-slide .front,
.swiper-slide .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 30px;
}

.swiper-slide .front::before{
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle closest-site,
            #658bd9 3px,
                transparent 3px
    );
                background-size: 8px 8px;
                transition: opacity 0.2s cubic-bezier(0.86, 0, 0.07, 1);
                opacity: 0.3;  
}

.swiper-slide-active .front::before {
    opacity: 0;
}

.swiper-slide .back {
    opacity: 0;
}

.swiper-slide .back::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(35, 35, 39, 0.7);
    border-radius: inherit;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    mix-blend-mode: darken;
}

.swiper-slide .back {
    transform: rotateY(180deg);
    opacity: 0;
}

.swiper-slide.flipped .back {
    opacity: 1;
}

.swiper-slide-active .back p {
    position:   absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Roboto", sans-serif;
    font-size:1rem;
    line-height: 1.5;
    color: #fff;
    width: 80%; 
}

.swiper-slide img {
    object-fit: cover;
    border-radius: 30px;
    pointer-events: none;
}

.swiper-slide button {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) scale(1);
    box-shadow: 0 7px 30px 0 rgba(100, 100, 111, 0.2);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #fff;
    font-family: "Roboto", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 8px 0;
    text-align: center;
    width: 60%;
    outline: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    user-select: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    opacity: 0;
    pointer-events: none;
    will-change: transform;
}

.swiper-slide-active button {
    opacity: 1;
    pointer-events: auto;
}

.swiper-slide button:hover {
    transform: translateX(-50%) scale(0.98);
}

.swiper-pagination-bullet {
    width: 18px;
    height: 18px;
    background-color: #7e7e7e;
    border-radius: 50%;
    transition: all 0.6s ease-in-out;
}

.swiper-pagination-bullet-active {
    width: 36px;
    background-color: #717271;
    border-radius: 14px;
}



.galeria-header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(8, 11, 67, 0.6); /* fondo oscuro translúcido */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(8, 11, 67, 0.6);
}

.galeria-header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: #e0e0e0;
    font-family: "Roboto", sans-serif;
    animation: fadeInDown 1s ease-out;
}

.galeria-header-content h1 {
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
    background: linear-gradient(to right, #2b6cb0, #718096);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.galeria-header-content .light-text {
    font-weight: 300;
    font-size: 1.2rem;
    display: block;
    color: #cbd5e0;
    -webkit-text-fill-color: initial;
    background: none;
}

.galeria-header-content .highlight {
    font-weight: 900;
    font-size: 2.5rem;
    display: inline-block;
    background: linear-gradient(to right, #2c5282, #63b3ed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.galeria-header-content p {
    font-size: 1rem;
    color: #a0aec0;
    margin-top: 8px;
}

/* animación de entrada */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* espacio superior para no tapar el swiper */
section {
    padding-top: 140px; /* ajusta según altura del header */
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    z-index: 1000;
    transition: background-color 0.3s, color 0.3s;
  }
  
  .whatsapp-button:hover {
    background-color: white;
    color: #25D366;
  }
  
  .whatsapp-button .whatsapp-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }
  
  .logo-footer {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  
  .logo-footer img {
    height: 75px; /* ajusta según el tamaño que quieras */
    width: auto;
    border-radius: 8px; /* opcional si deseas bordes redondeados */
  }
  
  /* */
  .card .back {
  padding: 20px;
  overflow-y: auto; /* Por si el contenido es alto */
  text-align: left;
}

.card .back ul {
  padding-left: 20px; /* espacio para viñetas */
  margin-top: 0;
  margin-bottom: 0;
}

.card .back li {
  list-style-type: disc; /* viñetas normales */
  margin-left: 10px;
  margin-bottom: 5px;
}
