/*estilos generales*/

html {
  scroll-behavior: smooth;  
}


:root {
    --primary-color: #8ACDEB;      
    --secondary-color: #F4978E;    
    --accent-color: #FF69B4;       
    --text-color: #9D7E6A;
    --text-color-2: #FAF9F6;
    --background-color: #F5E9DA;         
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    margin-top: -30px;
}
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.875rem;
}
hr {
    border: none;
    height: 1px;
    background-color: var(--text-color);
}
a{
    color: var(--text-color-2);
    border-bottom: none;
    text-decoration: none;
}
a:hover{
    color: var(--accent-color);
    border-bottom: none;
    text-decoration: none;
}

/*estilos header*/

header {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    font-size: 1.2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 70%;
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    width: 70%;
}

/*estilos main*/

main {
    min-height: calc(100vh - 400px); /* Asegura que el contenido ocupe al menos el alto de la pantalla menos el header y footer */
    padding: 2rem 0;
    background-color: var(--background-color); /* Fondo suave para el área principal */
    position: relative;
    overflow-x: hidden; /* Evita desbordamiento horizontal */
}

/* Estilos para la imagen hero */
.hero-image {
    position: relative;
    width: 100%;
    height: 400px; /* Ajusta según necesites */
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-color-2);
    background-color: rgb(41 40 39 / 50%);
    padding: 2rem;
    border-radius: 10px;
    max-width: 80%;
}


.hero-text {
    transition: all 0.3s ease;
}

.hero-text:hover {
    background-color: rgba(245, 233, 218, 0.5);
    transform: translate(-50%, -50%) scale(1.02);
}


.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.2rem;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.contact-btn {
    /* Estilos base */
    background-color: #ff8e00; 
    color: var(--text-color-2);
    border: none;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    
    /* Efecto hover */
    &:hover {
        background-color: var(--primary-color);
        transform: translateY(-3px);
        box-shadow: 0 7px 20px rgba(0, 0, 0, 0.25);
    }
    
    /* Efecto activo */
    &:active {
        transform: translateY(1px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    
    /* Efecto de brillo al pasar el ratón */
    &::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 5px;
        height: 5px;
        background: var(--text-color-2);
        opacity: 0;
        border-radius: 100%;
        transform: scale(1, 1) translate(-50%, -50%);
        transform-origin: 50% 50%;
    }
    
    &:hover::after {
        animation: ripple 1s ease-out;
    }
}

/* Animación del efecto ripple */
@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(30, 30);
        opacity: 0;
    }
}

/* Asegurar que el botón destaque en la hero */
.hero-text .contact-btn {
    margin-top: 20px;
    z-index: 2;
    position: relative;
}

.paneo {
    animation: 1s ease-out 0s 1 slideInFromLeft;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.paneo h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.paneo p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Animación para el paneo */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
/*estilos actividades*/
.actividadesContainer{
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;

}

.actividadesContainerDerecha{
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;

}

.actividadesContainer img , .actividadesContainerDerecha img{
    height: 30rem;
    width: 50%;
}

.actividadesContainer .actividadesBloque {
    position: relative;
    top: -145px;
    right: 20%;
    background-color: var(--primary-color);
    padding: 1%;
}
.actividadesContainerDerecha .actividadesBloque{
    position: relative;
    top: -145px;
    left: 20%;
    background-color: var(--secondary-color);
    padding: 1%;
}

/* Estilo para el bloque desplegable */
.desplegable {
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Contenido que se mostrará/ocultará */
.desplegable .contenido {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contenido p{
    font-size: 1.1rem;
}

/* Cuando el bloque está activo */
.desplegable.activo .contenido {
    max-height: 500px; /* Ajusta según necesites */
    opacity: 1;
    padding: 10px 0;
}

/* Flecha indicadora */
.desplegable h2::after {
    content: ' ▼';
    font-size: 0.8em;
    transition: transform 0.3s ease;
    display: inline-block;
}

.desplegable.activo h2::after {
    transform: rotate(180deg);
}

.Articulos-container {
    display: flex;
    justify-content: flex-end;
    margin-left: 4%;
    gap: 4%;
    animation: 1s ease-out 0s 1 slideInFromLeft;
}

.Articulos-container-derecha {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin-right: 4%;
    gap: 4%;
    animation: 1s ease-out 0s 1 slideInFromLeft;
}

.Articulos-container img {
    width: 100%;
    height: 251.58px;
    clip-path: polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);
}
.Articulos-container-derecha img {
    width: 100%;
    height: 251.58px;
    clip-path: polygon(100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%, 25% 0%);
}


.articulos {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    width: fit-content;
    padding: 1%;
}
.articulosderecha{
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    background-color: var(--secondary-color);
    width: fit-content;
    padding: 1%;
}

.articulos p{
    font-size: 1.1rem;
}

/* Animaciones al hacer scroll */
.elemento-oculto {
    opacity: 0;
    transform: translateX(-30px); /* Comienza ligeramente a la izquierda */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    height: 450px;
}
.elemento-oculto2 {
    opacity: 0;
    transform: translateX(100px); /* Comienza fuera de la pantalla a la derecha */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.elemento-oculto.derecha {
    transform: translateX(30px); /* Para elementos que vengan de la derecha */
}
.elemento-oculto2derecha {
    transform: translateX(30px); /* Para elementos que vengan de la derecha */
}

.elemento-visible {
    opacity: 1;
    transform: translateX(0) !important; /* !important para sobrescribir las otras transformaciones */
}

/*estilos footer*/

footer {
    background-color: #3faa96;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 2rem;
    justify-items: center;
    align-items: baseline;
    display: flex;
    justify-content: space-between;
}

.footer-section h3 {
    font-family: 'Roboto', cursive;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.social-links img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    margin-top: 3rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}
/* Estilos para el pop-up de cookies */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 2rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    max-width: 100%;
    border-top: 1px solid #e0e0e0;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-text {
    flex: 1;
    min-width: 280px;
}

.cookie-text h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.cookie-text p {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-cookie.accept {
    background-color: var(--primary-color);
    color: white;
}

.btn-cookie.reject {
    background-color: #f0f0f0;
    color: #555;
}

.btn-cookie.settings {
    background: transparent;
    color: var(--primary-color);
    text-decoration: underline;
}

.btn-cookie:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Estilos para la configuración de cookies */
.cookie-settings {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cookie-settings h4 {
    margin-top: 0;
    color: #333;
    font-size: 1.1rem;
}

.cookie-option {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

/* Switch personalizado */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}
/* Estilos del Popup de Contacto */
.popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
  }
  
  .popup-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .popup-container {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
  }
  
  .popup-overlay.active .popup-container {
    transform: translateY(0);
  }
  
  .popup-close {
    position: absolute;
    top: 15px; right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 10;
    padding: 5px;
    line-height: 1;
  }
  
  .contact-form {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .contact-form h2 {
    color: #1a237e;
    margin: 0 0 20px 0;
    text-align: center;
  }
  #checkActividades {
    margin: 10px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#checkActividades input[type="checkbox"] {
    margin: 0;
    width: auto;
    position: relative;
    left: 36%;
    top: -1rem;
}

#checkActividades label {
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
  
  .form-group {
    margin-bottom: 10px;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
  }
  
  .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
  }
  
  textarea.form-control {
    min-height: 120px;
    resize: vertical;
  }

  .actividades-checkbox {
    margin-top: 10px;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.actividades-checkbox div {
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.actividades-checkbox input[type="checkbox"] {
    margin-right: 10px;
}

.actividades-checkbox label {
    margin: 0;
    cursor: pointer;
}

.checkbox-container {
    display: flex;
}
  
  
  .btn-submit {
    background: #1a237e;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
  }

  
/* Botón volver arriba */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    transition: transform 0.2s ease-in-out;
}

