/* Variables globales */
:root {
    --color-principal: black;
    --color-secundario: #828282;
    --color-fondo: #e7e5e5;
    --color-galeria: #e4b1b1;
    --color-destacados: #b18f8f;
    --color-contactos: #dddddd;
    --color-hover: #a8d4e7;
    --color-contacto: #eeeae9;
    --fuente-principal: 'Inter', sans-serif;
    --fuente-detalle: 'Inter', monospace;
}


body {
    padding-top: 80px; 
    font-family: var(--fuente-principal);
    background: var(--color-fondo);
}

/* Header */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    height: 70px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Logo */
.logo img {
    flex: 1;
    width: 90px;
    border-radius: 15px;
}

/* Menú de navegación */

/*Menú para hacer el efecto de Scroll*/
#encabezado {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

#encabezado.scrolled {
    background-color: rgb(155, 152, 152);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    justify-content: flex-end;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding-right: 20px;
}

nav a {
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    color: var(--color-principa);
    transition-duration:0.3s;
}
nav a:hover {
    color: var(--color-hover); /* Cambia el color al pasar el cursor */
    transform: scale(1.1); /* Aumenta ligeramente el tamaño */
    
}

/* Estilos del título principal */
.titulo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: calc(100vh - 80px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
    background-image: url('includes/img/heroImagen.jpg');
    transition: background-image 1s ease-in-out;
}

h1 {
    font-family: 'Dancing Script';
    font-size: 100px;
    color: black;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3),
                 -2px -2px 0px #ffffff;
    margin: 0;
}

h2 {
    font-family: 'Dancing Script';
    font-size: 40px;
    color: black;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3),
                 -1px -1px 0px #ffffff;
    text-align: center;
    width: 100%;
}
.titulo h1 {
    opacity: 0;
    animation: aparecerDesdeArriba 2s ease-out forwards;
}

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

.titulo h2{
    opacity: 0;
    transform: translateY(-30px);
    animation: aparecerDesdeAbajo 1.2s ease-out forwards;
    animation-delay: 1s; /* retrasa la aparición después del h1 */
}

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


/* Estilos para "Destacados" */
#destacados {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    width: 100%;
    padding: 50px 0; 
    background: var(--color-destacados);
}

#destacados h2 {
    margin-bottom: 20px; 
    font-size: 32px; 
    padding: 25px;
   
}
/* Contenedor de pestañas (las <p> que actúan como botones) */
.pestanas {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

/* Cada pestaña */
.etiquetaPestanas {
    cursor: pointer;
    padding: 10px 20px;
    background: #eaeaea;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

/* Al pasar el ratón por encima */
.etiquetaPestanas:hover {
    background-color: #ccc;
}

/* Pestaña activa (seleccionada) */
.pestanaActiva {
    background-color: #999;
    color: #fff;
}

/* ContenedorGeneral: agrupa todos los contenedores de pestañas */
.contenedorGeneral {
    width: 80%; /* Ajusta según tu diseño */
    margin: 0 auto;
}

/* Contenedores de cada pestaña (ocultos por defecto) */
.contenedorPestanas {
    display: none;
}

/* El contenedor activo se muestra */
.contenedorPestanas.activo {
    display: block;
}

.img-destacados {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
   
}
.img-destacados img.imagen-secundaria {
    width: 300px;
    height: auto;
    
}


.img-destacados img {
    width: 30%; /* Tamaño fijo o relativo */
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 40px 0;
}


.img-destacados img:hover {
    transform: scale(1.2);
}
/* Galería */
.galeria {
    background-color: var (--color-galeria);
    padding: 40px 20px;
    text-align: center;
}

.img-wrapper {
    overflow: hidden;
    border-radius: 15px;
    display: inline-block;
    margin: 10px 0;
}

.img-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.img-wrapper:hover img {
    transform: scale(1.1);
}

.imagen-principal {
    width: 1000px;
}

.imagen-pequena {
    width: 420px;
}

.imagen-mediana {
    width: 600px;
}

.fila {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Parte que pertenece a lightbox de la sección galería*/
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
    animation: fadeIn 0.3s ease;
}

.cerrar-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    z-index: 10001;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}



/* Formulario de contacto */
.contacto {
    padding: 50px;
    background: var(--color-contactos);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.contacto h2 {
    text-align: center;
    font-size: 28px;
}

form {
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20;
}

.input-group {
    display: flex;
    flex-direction: column;
}

input, textarea {
    padding: 10px;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
}

/*Modales para recoger la información del usuario para el contactos*/

.modal{
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}
#modalBoxR{
    background-color: #ac8b8b;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    padding: 30px;
    text-align: center;
    border-radius: 25px;
}


/* Botón general */
button {
    padding: 10px;
    background: var(--color-principal);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition-duration:0.3s;
}

button:hover {
    background: var(--color-hover);
}

/* Footer */
footer {
    background: #f5f5f5;
    padding: 20px 0;
    text-align: center;
}

.img-footer {
    width: 100px; /* Ajusta el tamaño de las imágenes si es necesario */
    margin: 10px;
}

.redes-sociales {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.redes-sociales a {
    font-size: 30px;
    color: #333;
}

.redes-sociales a:hover {
    transform: scale(1.2); /* Hace un ligero zoom */
}