* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
}

.container {
    max-width: 1200px;
    margin: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    margin-bottom: 40px;
    box-sizing: border-box;
}

.content-info {
    margin-bottom: 20px;
    padding: 10px;
}

.content-info h2 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.content-info label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.content-info input[type="text"],
.content-info input[type="file"],
.content-info input[type="tel"],
.content-info textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.content-info textarea {
    resize: vertical;
    min-height: 100px;
}

.content-info button {
    display: block;
    margin: 0 auto;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.content-info button:hover {
    background-color: #0056b3;
}

.error-message {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
}

.content-info select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
}

/* Contenedor principal de la galería */
.content-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Tres columnas iguales */
    gap: 10px; /* Espacio entre las imágenes */
    align-items: center; /* Centra las imágenes verticalmente en su celda */
    justify-content: center; /* Alinea el contenido al centro */
    margin: 0px 30px; /* Márgenes de 30px en los laterales */
    max-width: 1000px; /* Máximo ancho del contenedor */
    margin-left: auto; /* Centrado automático */
    margin-right: auto; /* Centrado automático */
    margin-bottom: 2%;
}

/* Estilos generales para las imágenes */
.gallery-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid #ddd;
    cursor: pointer;
    object-fit: cover;
}

/* Contenedor para la imagen "Antes y Después" */
.contenedor {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* Mantener proporción */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    user-select: none;
}

/* Imagen dentro del contenedor */
.imagen {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Contenedor "Después" */
.despues {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.despues img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estilos del slider */
.slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 5px;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transform: translateX(-50%);
}

.handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.handle::after {
    content: "⇔";
    font-size: 20px;
    color: black;
    font-weight: bold;
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
    .parent {
        grid-template-columns: 1fr 1fr; /* En pantallas pequeñas, 2 columnas */
    }
}

@media (max-width: 480px) {
    .parent {
        grid-template-columns: 1fr; /* En pantallas muy pequeñas, una columna */
    }
}

.video-container {
    width: 80%;
    max-width: 800px;  /* Limita el ancho máximo del contenedor */
    margin: 20px auto;  /* Centra el contenedor y agrega espacio alrededor */
    padding: 10px;
    border-radius: 10px;
    background-color: #000;  /* Fondo negro para el contenedor */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);  /* Sombra para el contenedor */
    display: flex;
    justify-content: center;
}

.video {
    width: 100%;  /* El video ocupará el 100% del ancho del contenedor */
    border-radius: 8px;
}


#zoomOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#zoomOverlay img {
    max-width: 90%;
    max-height: 90%;
    transform: scale(1.1); /* Aumenta el tamaño durante el zoom */
    transition: transform 0.2s ease;
}

#zoomOverlay .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: white;
    cursor: pointer;
}