/* GLOBAL #f8f4ee-----------------------------------------------------------*/
body{
    background-color: #ffffff;
    font-family: lato;
    margin: 0;
    color: #112256;
    overflow-x: hidden;
}
fieldset{
    margin: 30px;
    color:#277740;
    border: 1px solid #112959;
    font-size: 30px;
    font-weight: bold;
    border-radius: 4px;
}
legend{
    padding: 0 20px 0 20px;
}
label{
    font-size: 18px;
    line-height: 2;
}

/* FONTS -----------------------------------------------------------*/

.tittle__font{
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-style: normal;

}
.font__subtittle{
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-style: normal;
}
.main__tittle{
    text-align: center;
    font-size: 48px;
    margin-top: 50px;
}
.font--green{
color: #277740;
}
.font--blue{
    color: #112256;
}

.font--text{
    width: 80vw;
    margin: 40px;
    font-size: 25px;
    font-weight: bold;
}

/*-----------------------------------HERO SECTION--------------------------------------------*/
:root {
    --crystal-blue: #112959;
    --crystal-light-blue: #1e3a70;
    --crystal-white: #ffffff;
    --crystal-light-gray: #f8f9fa;
}
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(17, 41, 89, 0.85) 0%, rgba(17, 41, 89, 0.7) 100%);
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    color: var(--crystal-white);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}
.hero-title {
    font-weight: 700;
    font-size: 5rem;
    margin-bottom: 1.5rem;
    color: var(--crystal-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--crystal-white);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 10px 10px 10px;
}

.btn-crystal-primary {
    background-color: var(--crystal-white);
    color: var(--crystal-blue);
    border: 2px solid var(--crystal-white);
}

.btn-crystal-primary:hover {
    background-color: transparent;
    color: var(--crystal-white);
}

.btn-crystal-outline {
    background-color: transparent;
    color: var(--crystal-white);
    border: 2px solid var(--crystal-white);
}

.btn-crystal-outline:hover {
    background-color: var(--crystal-white);
    color: var(--crystal-blue);
}

.floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-icon {
    width: 60px;  /* Ajusta el tamaño de la imagen */
    height: 60px;
    object-fit: contain; /* Evita recortes no deseados */
    border-radius: 50%; /* Hace que la imagen sea circular */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}
.floating-button span {
    visibility: hidden;
    opacity: 0;
    background-color: #277740;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    position: absolute;
    right: 70px; /* Espaciado respecto al icono */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    white-space: nowrap;
}
.floating-button:hover .whatsapp-icon {
    transform: scale(1.1);
}
.floating-button:hover span {
    visibility: visible;
    opacity: 1;
}
/*-----------------------------------NAVBAR--------------------------------------------*/
.navbar{
    background-color: transparent !important;
}
.nav__list{
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: right;
    display: flex;
    flex-wrap: wrap;
}

.nav__link {
    color: #277740;
    font-size: 19px;
    font-weight: bold;
    text-decoration: none;  
    transition: color 1s ease;
}
.nav__link:hover{
    color: #112256;
    font-weight: bold;
}
.icon{
    height: 75px;
    width:52px;
    margin-left: 40px;
    margin-top: 10px;
}
.active-link {
    position: relative;
    font-weight: bold;
    color: #277740; /* Verde Crystal, también puedes dejarlo si ya tiene esa clase */
}

.active-link::after {
content: "";
position: absolute;
bottom: -6px; /* más espacio debajo del texto */
left: 0;
width: 100%;
height: 3px;
background-color: #277740;
}

/*-----------------------------------SEPARADOR--------------------------------------------*/
.separador {
    width: 100%; /* Ocupa todo el ancho de la pantalla */
    height: 50px; /* Altura del separador */
    background-color: #112256; /* Azul oscuro */
    box-shadow: 0px 4px 15px rgba(255, 255, 255, 0.8); /* Sombra blanca */
    margin: 50px 0; /* Espaciado arriba y abajo */
}
/*-----------------------------------INICIO--------------------------------------------*/
/* -------CARDS y  DE VER MAS -------*/
/* Contenedor de la imagen para el hover */
.img-container {
    position: relative;
    width: 100%;
    height: 400px; /* Ajusta la altura según el diseño */
    background-color: white; /* Fondo blanco */
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ajusta la imagen sin recortar */
    aspect-ratio: 9 / 16; /* Mantiene la proporción vertical */
}


/* Imagen principal */
.img-container .img-default {
    display: block;
    width: 100%;
    transition: opacity 0.3s ease-in-out;
}

/* Imagen que aparecerá en hover */
.img-container .img-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Cuando pasas el mouse, cambia la imagen 
.img-container:hover .img-default {
    opacity: 0;
    transform: scale(1.1);
}*/

/* Estilos para el botón */
.btn-custom {
    display: block;
    text-align: center;
    background-color: #112959;
    color: white;
    padding: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
    border-radius: 50px;
}

/* Hover del botón */
.btn-custom:hover {
    background-color: #277740;
    color: white;
    transform: scale(1.1);
}
/*-----PREGUTANS FRECUENTES----- */
/* Descripción */
.faq-description {
    text-align: center;
    font-size: 1.1rem;
    color: #5a5a5a; /* Gris medio */
    margin-bottom: 30px;
}

/* Estilos del acordeón */
.accordion {
    max-width: 700px;
    margin: 0 auto;
}

/* Cada pregunta con margen para separarlas */
.accordion-item {
    border: none;
    margin-bottom: 15px; /* Espaciado entre preguntas */
}

/* Botones del acordeón */
.accordion-button {
    background: none !important;
    color: #112256 !important; /* Azul */
    font-size: 1.2rem;
    font-weight: bold;
    padding: 15px;
    border: none;
    box-shadow: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: none !important;
}

/* Hover en las preguntas */
.accordion-button:hover {
    color: #277740 !important; /* Verde */
}

/* Ícono "+" alineado a la derecha */
.accordion-button::after {
    content: "\002B"; /* "+" */
    font-size: 1.5rem;
    font-weight: bold;
    color: #112256;
    transition: transform 0.3s ease;
    background-image: none !important;
    width: auto !important;
    height: auto !important;
    margin-left: 0 !important;
    transform: none !important; /* Importante para animaciones */
}

/* Cambiar icono al abrir */
.accordion-button:not(.collapsed)::after {
    content: "\2212"; /* "-" */
    color: #277740;
    transform: none !important;
}

/* Cuerpo del acordeón */
.accordion-body {
    font-size: 1.1rem;
    color: #444; /* Texto gris oscuro */
    background-color: transparent;
    padding: 15px;
    border-top: 1px solid #ddd;
}
/* ---TESTIMONIOS ------*/
.testimonios-container {
    position: relative;
    max-width: 500px;
    margin: auto;
    margin-bottom: 50px;
}

.testimonio-card {
    display: none;
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.5s ease;
}

.testimonio-card.active {
    display: block;
}

.testimonio-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #277740; /* Verde elegante */
}

.testimonio-content .nombre {
    font-weight: 600;
    margin-bottom: 8px;
    color: #112256;
}

.estrellas i {
    color: #f7c948;
    margin: 0 2px;
}

.comentario {
    font-style: italic;
    color: #555;
    margin-top: 10px;
}
/*-----------------------------------SERVICIOS--------------------------------------------*/
/* GALERIA */
.seccion-eventos {
    background-color: #ffffff;
}

/* Contenedor general */
.contenedor-eventos {
    max-width: 1200px;
    margin: auto;
}

/* Estilos del título */
.titulo-eventos {
    font-size: 2.5rem;
    font-weight: bold;
    color: #475d4d; /* Verde elegante */
}

/* Subtítulos */
.subtitulo-eventos {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6c8b72;
}

/* Texto de la descripción */
.texto-eventos {
    font-size: 1.1rem;
    color: #555;
}

/* Botón */
.btn-mas-info {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: #6c8b72;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-mas-info:hover {
    background-color: #475d4d;
}

/* Contenedor de la imagen */
.contenedor-imagen-eventos {
    width: 100%;
    aspect-ratio: 19 / 11 ;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Imagen dentro del contenedor */
.imagen-eventos {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen sin distorsionarla */
    border-radius: 10px; /* Bordes redondeados opcionales */
}
.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen */
    border-radius: 15px; /* Bordes redondeados */
}
/* Ajustes generales */
.gallery-container {
    background-color: #f2f2f2; /* Fondo oscuro */
    padding: 20px;
}

/*-----------------------------------CONTACTO--------------------------------------------*/


/*-----------------------------------NOSTROS--------------------------------------------*/
/*NUESTRA MISION VISION VALORES */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
.card-custom {
    height: 400px; /* Ajusta la altura según lo que necesites */
    overflow: hidden;
}

.card-custom .overflow-auto {
    max-height: 250px; /* Espacio disponible para el texto con scroll */
    overflow-y: auto;
    padding-right: 10px; /* Evita que el texto quede pegado al borde */
}

/*NUESTRA HISTORIA*/
.justificado {
    text-align: justify;
}
.history-image {
    width: 100%;
    border-radius: 14px;
}
.history-text {
    text-align: justify;
}
    .custom-bg-primary {
        background-color: #112256;
    }
    .custom-text-primary {
        color: #112256;
    }
    .custom-bg-secondary {
        background-color: #277740;
    }
    .custom-text-secondary {
        color: #277740;
    }
    

/*-----------------------------------CATALOGO--------------------------------------------*/
.carousel-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}
.featurette-divider {
    margin: 5rem 0;
}

.img-fixed {
    width: 300px;
    height: 300px;
    object-fit: contain; /* Mantiene la imagen completa sin cortes */
    background-color: white; /* O cualquier color de fondo si la imagen no llena el espacio */
}
.card-title,
.card-text {
color: #112256; /* azul crystal */
}

.catalogo-wrapper {
padding: 0 2rem; /* separación de los bordes de la página */
}

.row.g-4 > [class*='col'] {
padding-left: 1rem;
padding-right: 1rem;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.card-custom {
padding: 1rem;
border-radius: 1rem;
border: 1px solid #ccc;
transition: transform 0.3s ease;
background-color: #fff;
height: 100%;
max-width: 100%;
margin: auto;
display: flex;
flex-direction: column;
}

.card-img-top {
width: 100%;
height: 200px;
object-fit: contain;
background-color: white;
border-radius: 0.5rem;
padding: 10px;
}
.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #ccc;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-dot:hover {
transform: scale(1.1);
}

.color-dot.selected {
box-shadow: 0 0 0 2px #112256;
}

@media (min-width: 576px) {
.card-img-top {
    height: 220px;
}
}

@media (min-width: 768px) {
.card-img-top {
    height: 240px;
}
}

@media (min-width: 992px) {
.card-img-top {
    height: 260px;
}
}
.card-body {
display: flex;
flex-direction: column;
justify-content: space-between;
}
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
  }
  
  .fade-in.delay {
    animation-delay: 0.2s;
  }
  
  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  #ver-mas-btn {
    background-color: #2e7d32; /* Verde tipo material design */
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 999px; /* Borde completamente redondeado */
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s;
  }
  
  #ver-mas-btn:hover {
    background-color: #1b5e20;
    transform: scale(1.03);
  }
  
  #ver-mas-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.4);
  }
/* Asegura espaciado entre tarjetas en móvil */
@media (max-width: 575.98px) {
    .card-custom {
      margin-bottom: 1rem;
    }
  }
      

/*-----------------------------------FOOTER--------------------------------------------*/

footer {
    color: #112256; /* Color del texto */
    width: 100%;
    padding: 20px 0;
}
.carousel img {
height: 20%;
width: auto;
}
.social-icons {
    margin-top: 10px;
}

.social-icons a {
    display: inline-block;
    margin-right: 10px;
}

.social-icons img {
    width: 30px; /* Ajusta el tamaño de los iconos */
    height: 30px;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.2); /* Efecto de zoom al pasar el cursor */
}
.direccion:hover,
.direccion-link:hover {
    color: #277740; /* Verde */
    transition: color 0.3s ease-in-out;
}

.direccion-link{
    text-decoration: none;
}
.logo-img {
    max-width: 100%; /* Se adapta al contenedor */
    height: auto; /* Mantiene la proporción */
}
/*-----------TITTLE---------------------*/
@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-btn {
        display: block;
        width: 100%;
        margin: 0 0 15px 0;
    }
}
/*-----------NAVBAR---------------------*/
@media (max-width: 768px) {
    .nav {
        flex-direction: column; /* Cambia la dirección a columna en dispositivos pequeños */
        align-items: flex-start; /* Alinea los elementos a la izquierda */
    }
    .nav__item {
        margin-right: 10px;
        margin-bottom: 10px; /* Espacio entre elementos en dispositivos pequeños */
    }
    .nav__link  { 
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .navbar-menu a {
        width: 100%;
        padding: 10px 0;
    }
    .logo-img {
        max-width: 250px; /* Reduce el tamaño del logo en pantallas pequeñas */
    }
}

/*-----------------------------------INICIO | DISEÑO MOVIL--------------------------------------------*/
/*----------- GALERIA---------------------*/
@media (max-width: 768px) {
    .row.row-cols-1 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr); /* 2 columnas */
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .row.row-cols-1 > .col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .row.row-cols-1 .card {
        width: 100%;
    }
    
    .row.row-cols-1 .btn-custom {
        width: 100%;        /* Que el botón use todo el ancho disponible */
        text-align: center; /* Centrado del texto */
        padding: 10px;      /* Espaciado cómodo */
        font-size: 14px;    /* Tamaño adaptable */
    }
    }


@media (max-width: 768px) {
    .gallery {
        gap: 15px; /* Separa imágenes entre sí */
    }
    
    .gallery img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 8px;
    }
    
    /* Ajuste del texto */
    .texto-eventos {
        font-size: 1rem;
        line-height: 1.6; /* Mayor separación de líneas */
        text-align: center;
        padding: 10px;
    }

    /* Separar texto e imágenes */
    .row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Ajuste de imágenes dentro de la galería */
    .gallery div {
        width: 100%;
    }

    /* Separar botones de imágenes */
    .btn {
        margin-top: 10px;
        padding: 12px 20px;
        font-size: 1rem;
    }
}







