/* Contenedor principal */
.content {
    margin-top: 130px; /* Para que el contenido no se esconda bajo el header */
    width: 100%; /* Asegura que el contenido no exceda el tamaño de la pantalla */
}

/*Para cuando algo tarde en cargar*/
#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #0078d7;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sección de introducción */
.intro-section {
    position: relative;
    height: 50vh;
    text-align: center;
    color: #fff;
    width: 100%;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Imagen de fondo */
.intro-section .background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Contenido sobre la imagen */
.intro-content {
    position: absolute; /* Posiciona el contenido encima de la imagen */
    top: 50%; /* Centra verticalmente */
    left: 5%; /* Margen izquierdo del 5% */
    transform: translateY(-50%); /* Ajusta el centrado vertical */
    color: white; /* Color del texto (ajusta según tu diseño) */
    text-align: left;
}

/* Títulos y textos */
.intro-section h1 {
    font-size: 60px;
    margin-bottom: 22px;
    font-family: 'Montserrat';
    line-height: 1;
}

.intro-section p {
    font-size: 22px;
    margin-bottom: 30px;
}

/* Botón */
.btn-primary {
    background-color: #405D72;
    color: #fff;
    padding: 15px 30px;
    font-size: 20px;
    border-radius: 5px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: #2c455a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .intro-section {
        height: 50vh; /* Aumenta un poco la altura en móviles */
    }
    
    .intro-content {
        width: 95%;
        /*padding: 22px;*/
        margin-top: 5px;
        left: 2.5%;
    }

    .intro-section h1 {
        font-size: 34px;
    }

    .intro-section p {
        font-size: 22px;
    }

    .intro-section a {
        font-size: 16px;
    }

    .btn-primary {
        padding: 12px 25px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .intro-section {
        height: 50vh; /* Más espacio en móviles más pequeños */
        padding-top: 20px;
    }

    .intro-content {
        max-width: 95%;
        padding: 15px;
        top: 30%;
    }

    .intro-section p {
        font-size: 22px;
    }

    .btn-primary {
        padding: 10px 22px;
        font-size: 20px;
    }
}


/* Apartado de presentación de nosotros */
.intro-nosotros {
    display: flex; 
    flex-wrap: wrap; /* Añadir flex-wrap para asegurar que las columnas se ajusten */
    padding: 80px 22px; 
    background-color: #f4f4f4; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    width: 100%;
}

.intro-nosotros-inversion {
    background-color: #ffffff; 
    padding: 40px; 
    border-radius: 15px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 90%;  /* Limita el ancho máximo para una mejor presentación */
    text-align: left;
}

.intro-nosotros-inversion p {
    font-family: 'Sans-serif';
    font-size: 22px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    margin-left: 122px;
}

.intro-nosotros-inversion strong {
    font-family: 'Sans-serif';
    font-size: 40px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.intro-nosotros h1 {
    font-family: 'Sans-serif';
    font-size: 40px; 
    font-weight: 700;
    color: #333;
    margin-bottom: 22px;
}

.intro-nosotros h2 {
    font-family: 'Sans-serif';
    font-size: 28px; 
    font-weight: 600;
    color: #405D72;
    margin-top: 30px;
    margin-bottom: 15px;
}

.intro-nosotros p {
    font-family: 'Sans-serif';
    font-size: 25px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.arrow-container {
    text-align: right; /* Alinea la flecha a la derecha */
    margin-top: 22px;
}

.arrow {
    font-size: 40px; /* Tamaño de la flecha */
    color: #333; /* Color de la flecha */
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.arrow:hover {
    transform: translate(5px, -5px); /* Movimiento en diagonal arriba a la derecha */
    color: #405D72; /* Cambia el color al pasar el mouse */
}


/* Ajustes responsivos */
@media (max-width: 768px) {
    .intro-nosotros {
        padding: 50px 10px; 
    }
    .intro-nosotros-inversion {
        padding: 22px; 
        width: 95%; /* Aumentar el ancho en dispositivos pequeños */
    }

    .intro-nosotros-inversion p {
        margin-left: 0px;
    }

    .intro-nosotros h1 {
        font-size: 28px; 
    }
    .intro-nosotros h2 {
        font-size: 24px; 
    }
    .intro-nosotros p {
        font-size: 18px; 
    }

    /* Reducir tamaño de "Descúbrela ↗" en móviles */
    .arrow-container {
        text-align: right; 
        margin-top: 15px; 
    }

    .arrow {
        font-size: 24px; /* Tamaño reducido para pantallas medianas */
    }
}

@media (max-width: 480px) {
    .arrow {
        font-size: 22px; /* Aún más pequeño en móviles */
    }
}


/* Apartado de invertir en nosotros */
.how-to-invest {
    display: flex; 
    flex-wrap: wrap;
    padding: 80px 22px; 
    background-color: #405D72; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    width: 100%;
}

.container-invest {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center; /* Centra las columnas */
    width: 90%;
    align-items: stretch;
}

/* Estilo de las columnas */
.column {
    flex: 1;
    min-width: 222px;
    background-color: #fff;
    padding: 22px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: calc(33.33% - 22px); /* Asegura que haya 3 columnas con espacio entre ellas */
    opacity: 0; /* Comienza invisible */
    transform: translateY(50px); /* Comienza desplazado hacia abajo */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Animación de desvanecimiento y desplazamiento */
    text-align: left;
}

.column:first-child {
    height: auto; /* Ajusta la altura al contenido */
    opacity: 1; /* Hace la primera columna visible inmediatamente */
    transform: translateY(0); /* La primera columna no estará desplazada */
    align-self: flex-start; 
}

/* Animación cuando el elemento entra en la vista */
.column.visible {
    opacity: 1; /* Se vuelve completamente visible */
    transform: translateY(0); /* Vuelve a su posición original */
}


/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .container-invest {
        flex-direction: column;
        width: 95%;
    }
    .column {
        width: 100%; /* Las columnas se apilan en pantallas pequeñas */
    }
}

/*Contacta con nosotros*/
/* Estilo para la sección de contacto */
.index-contact-section {
    background-color: #f4f4f4;
    padding: 50px 22px;
    margin-top: 50px;
    border-top: 4px solid #405D72;
    border-bottom: 4px solid #405D72;
}

.index-contact-container {
    width: 90%;
    margin: 0 auto;
}

.index-contact-title {
    text-align: left;
}

.index-contact-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: #405D72;
    margin-bottom: 22px;
}

.index-contact-section p {
    font-size: 20px;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Disposición de las columnas principales */
.index-contact-content {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: flex-start;
}

/* Columna de texto */
.index-text-column {
    flex: 1;
    text-align: left;
    width: 50%;
}

.index-text-column img{
    max-height: 300px; /* Aumenta el tamaño del logo */
    width: auto;
}


/* Sección central para nombre, email y teléfono */
.center-section {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 22px;
    justify-content: center;
}

/* Sección derecha para mensaje y botón */
.right-section {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 22px;
    justify-content: flex-start;
    align-items: flex-end;
    text-align: right;
}

/* Estilo del formulario */
.index-form-text {
    width: 100%;
    text-align: left;
}

/* Estilo para los campos */
.index-form-text input, .index-form-text textarea {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border: none;
    border-bottom: 2px solid #ddd;
    border-radius: 0;
    outline: none;
    background-color: transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.index-form-text input:focus, .index-form-text textarea:focus {
    border-bottom: 2px solid #6E8CA0;
    box-shadow: 0 1px 0px 0px #6E8CA0;
    background-color: #f9f9f9;
}

.index-form-text textarea {
    resize: vertical;
    min-height: 122px;
}

.index-form-text textarea::placeholder {
    color: #aaa;
    font-style: italic;
}

/* Estilo para el botón */
.index-button-contact {
    display: flex;
    justify-content: flex-end;
    padding-top: 22px;
    max-width: 1220px;
    text-align: left;
}

.index-button-contact button {
    background-color: #405D72;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: auto;
    cursor: pointer;
}

.index-button-contact button:hover {
    background-color: #6E8CA0;
    transform: translateY(-3px);
}

.index-button-contact button:active {
    background-color: #3e5d72;
    transform: translateY(0);
}

.index-form-checkbox {
    display: flex;
    flex-direction: row; /* Cambio de flex-direction a row para alinearlo correctamente */
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #333;
    margin-top: 22px; /* Añadido margen para separar del mensaje */
}

.index-form-checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 20px;
    height: 20px;
}

.index-form-checkbox label {
    font-size: 14px;
    line-height: 1.4;
    color: #555;
}

.index-form-checkbox a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.index-form-checkbox a:hover {
    color: #6E8CA0;
}



/* Media Queries para Responsividad */

/* Pantallas medianas (tablets) */
@media (max-width: 768px) {
    .index-contact-content {
        flex-direction: column;
        align-items: stretch;
    }

    .center-section, .right-section, .index-text-column {
        flex: 1;
        width: 100%;
        text-align: left;
    }

    .right-section {
        align-items: stretch;
    }

    .index-button-contact {
        justify-content: center;
    }
}

/* Pantallas pequeñas (móviles) */
@media (max-width: 480px) {
    .index-contact-section h2 {
        font-size: 24px;
    }

    .index-contact-section p {
        font-size: 18px;
    }

    .index-form-text input, .index-form-text textarea {
        font-size: 14px;
        padding: 10px;
    }

    .index-button-contact button {
        padding: 10px 22px;
        font-size: 14px;
    }
}





/* === CONTENEDOR GENERAL DEL CARRUSEL === */
.carrusel-container {
    position: relative;
    width: 90%;
    margin: 40px auto;
    overflow: hidden;
  }
  
  /* === CARRUSEL INTERNO (IMÁGENES DESLIZABLES) === */
  .carrusel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }
  
  .carrusel::-webkit-scrollbar {
    display: none;
  }
  
  /* === CADA IMAGEN / ITEM === */
  .carrusel img,
  .imagen-con-texto img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
  }
  
  .imagen-con-texto {
    position: relative;
    flex: 0 0 calc(25% - 15px);
  }
  
  /* === EFECTO HOVER EN IMÁGENES === */
  .carrusel img:hover {
    transform: scale(1.05);
  }
  
  /* === TEXTO SUPERPUESTO SOBRE IMAGEN === */
  .texto-superpuesto {
    position: absolute;
    bottom: 12px;
    left: 12px;
    color: #6E8CA0;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
  }
  
  /* === BOTONES DE FLECHA (MEDIA CIRCUNFERENCIA) === */
  .carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 200px;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Fondo translúcido curvado */
  .btn-fondo {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    transition: background 0.3s ease;
  }
  
  .prev-fondo {
    border-top-right-radius: 200px;
    border-bottom-right-radius: 200px;
    left: 0;
  }
  
  .next-fondo {
    border-top-left-radius: 200px;
    border-bottom-left-radius: 200px;
    right: 0;
  }
  
  /* Flecha interna */
  .flecha {
    position: relative;
    font-size: 3rem;
    color: white;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    z-index: 2;
    pointer-events: none;
    transition: transform 0.2s ease;
  }
  
  /* Hover sobre las flechas */
  .carrusel-btn:hover .btn-fondo {
    background: rgba(255, 255, 255, 0.4);
  }
  
  .carrusel-btn:hover .flecha {
    transform: scale(1.1);
  }
  
  /* Posiciones */
  .carrusel-btn.prev {
    left: 0;
    justify-content: flex-start;
  }
  
  .carrusel-btn.next {
    right: 0;
    justify-content: flex-end;
  }
  
  /* === RESPONSIVE === */
  @media (max-width: 1024px) {
    .imagen-con-texto {
      flex: 0 0 calc(33.33% - 15px);
    }
    .carrusel img,
    .imagen-con-texto img {
      height: 220px;
    }
    .carrusel-btn {
      width: 80px;
      height: 160px;
    }
    .flecha {
      font-size: 2.5rem;
    }
  }
  
  @media (max-width: 768px) {
    .imagen-con-texto {
      flex: 0 0 calc(50% - 15px);
    }
    .carrusel img,
    .imagen-con-texto img {
      height: 200px;
    }
    .carrusel-btn {
      width: 70px;
    }  
  }

  
/* Flechas de navegación */
button.prev, button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

button.prev {
    left: 10px;
}

button.next {
    right: 10px;
}

.carousel-container:hover button.prev,
.carousel-container:hover button.next {
    opacity: 1;
}

button.prev, button.next {
    opacity: 0;
}

button.prev:hover, button.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Botón "Subir arriba" */
#btn-subir {
    display: none; /* Oculto por defecto */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #405D72;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
}

#btn-subir:hover {
    background-color: #2c3e50;
    opacity: 1;
}




/* Estilos para el banner de cookies */
.cookie-banner {
    position: fixed; /* Fija el banner en la pantalla */
    bottom: 0; /* Lo coloca en la parte inferior */
    left: 0;
    right: 0;
    background: #333; /* Color de fondo */
    color: #fff; /* Color del texto */
    padding: 15px;
    text-align: center;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
    flex: 1;
    font-size: 14px;
}

.cookie-banner button {
    margin: 5px;
    padding: 8px 15px;
    border: none;
    background: #4CAF50; /* Color del botón Aceptar */
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.cookie-banner button.reject {
    background: #f44336; /* Color del botón Rechazar */
}