* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
} 

h1 { font-size: 3.2em; }
h2 { font-size: 2.7em; }
h3 { font-size: 2em; }
p { font-size: 1.25em; }

button {
    font-size: 1.5em;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.5);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    color: white;
    background: linear-gradient(to right, #0070C0, #03A64A);
}

button:hover {
    background: linear-gradient(to right, #014678, #026d31);
}

.contenedor {
    max-width: 100%;
    margin: auto;
}

.color_degradado_icsi {
    color: transparent; 
    background: linear-gradient(to right, #0070C0, #03A64A); 
    -webkit-background-clip: text; 
    background-clip: text;
}

header {
    background-color: rgb(30, 30, 30);
    padding: 10px 20px; /* Añade un poco de padding en la parte superior e inferior */
}

header .textologo {
    font-weight: bold;
    font-size: 1.2em;
}

.contenedor_logo_y_texto {
    display: flex; /* Mantén flex para alinear los elementos en una fila */
    align-items: center; /* Alinea verticalmente los elementos en el centro */
    justify-content: space-between; /* Añade espacio entre los elementos */
}

.contenedor_imagen_logo_header {
    background-image: url("../Recursos_Media/logoicsi.png");
    background-size: contain; /* Ajusta la imagen para que se contenga dentro del contenedor */
    background-repeat: no-repeat;
    background-position: right;
    width: 70px; /* Ajusta el tamaño del contenedor */
    height: 50px; /* Ajusta el tamaño del contenedor */
}

#menu_principal {
    display: flex; /* Utiliza flex para alinear los enlaces en una fila */
    gap: 20px; /* Añade espacio entre los elementos */
    padding: 0; /* Elimina el padding automático */
    margin: 0; /* Elimina el margen predeterminado */
}

header a {
    font-size: 14px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    padding: 5px 10px; /* Ajusta el padding para los enlaces */
    transition: color 0.3s ease, background 0.3s ease; /* Transiciones suaves para los hover */
}

header a:hover {
    background: linear-gradient(to right, #0070C0, #03A64A);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* BOTON BUSCAR */
.btn {
    padding: 5px 10px; /* Ajusta el espacio interno del botón (alto y ancho) */
    font-size: 10px; /* Ajusta el tamaño de la fuente */
    border-radius: 5px; /* Redondea las esquinas del botón */
    width: 90px; /* Ajusta el ancho del botón */
    height: 30px; /* Ajusta la altura del botón */
}

.contenedor_banner {
    max-width: 100%;
    text-align: center;
}

#imageninicio{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    height: 90vh;
    background-image: url("../Recursos_Media/CAL3.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.contenedor_inicioO {
    display: flex;
    flex-direction: column; /* Hace que los elementos se apilen verticalmente */
    align-items: flex-start; /* Alinea los elementos al inicio (izquierda) del contenedor */
}

.contenedor_inicio {
    display: flex;
    justify-content: flex-start; /* Alinea el contenido al inicio (izquierda) del contenedor */
    align-items: center; /* Centra verticalmente el contenido dentro del contenedor */
    padding-left: 50px; /* Añade un espacio de 50px al lado izquierdo del contenedor */
    margin-bottom: 40px; /* Espacio entre los contenedores de imágenes */
    width: 100%; /* Asegura que cada contenedor de imagen ocupe toda la anchura disponible */
}

.contenedor_inicio a {
    color: white;           /* Cambia el color del texto a blanco */
    font-size: 3rem;        /* Ajusta el tamaño de la fuente a 2rem */
    text-decoration: none;  /* Elimina el subrayado predeterminado de los enlaces */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Sombra sutil para mejorar legibilidad */
}

#imageninicio h1{
    color: white;
}

#imageninicio button{
    font-size: 2em;
}

#textoicsi{
    text-align: center;
    background-color: rgb(240, 240, 240);
}

#textoicsi .contenedor{
    padding: 30px 20px;
}

/*OTRA SECCION */
#boton_proyectos{
    background: #0070C0;
    color: white;
}

#boton_proyectos:hover{
    background:#014678;
    color: rgba(255, 255, 255, 0.811);
}

.contenedor_sec{
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
     padding: 30px 0;  /*Espacio de 50px arriba y abajo */
    background-color: #ffffff; /* Color de fondo para diferenciar la sección*/
}

.contenedor_erm {
    font-size: 1.6rem; /* Tamaño de la letra */
    font-weight: bold; /* Negrita para destacar el título */
    text-align: center; /* Centrado del texto */
}

.contenedor_XD p{
    font-size: 1rem; /* Tamaño de la letra */
    text-align: justify; /* Texto justificado */
    text-align-last: center; /* Para que la última línea del texto esté centrada */
}

footer{
    background-color: rgb(230,230,230);
}

footer p{
    margin: 0;
    padding: 12px;
    color: rgb(100,100,100);
}

footer .contenedor{
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.contenedor_banner {
    max-width: 100%;
    text-align: center;
    background-color: rgb(230,230,230); /* Fondo de color claro para el footer */
    color: white; /* Cambia el color del texto a blanco */
}

/* CARTA 1 *//* Sección que contiene las cartas */
.card-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Tres columnas */
    grid-template-rows: auto auto auto; /* Tres filas */
    gap: 20px; /* Espacio entre las cartas */
    width: 80%;
    margin: 0 auto; /* Centrar la sección horizontalmente */
    margin-bottom: 2%;
}

/* Estilos previos de la carta (sin cambios) */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 450px;
    perspective: 1000px;
    font-family: sans-serif;
}

/* Para la última carta de la tercera fila */
.flip-card:nth-child(10) {
    grid-column: 2; /* Hace que la séptima carta esté centrada en la tercera fila */
}

.title {
    font-size: 1.5em;
    font-weight: 900;
    text-align: center;
    margin: 0;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/*flip-card-front-1*/
.flip-card-front-1, .flip-card-back {
    box-shadow: 0 8px 14px 0 rgba(0,0,0,0.2);
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
}

.flip-card-front-1 {
    background-image: url(../Recursos_Media/CARD1.png); /*Coloca la ruta de la imagen*/
    color: rgb(255, 255, 255);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 80);
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.flip-card-front-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
    border-radius: 8px;
}

.flip-card-front-1 * {
    position: relative;
    z-index: 2;
}

/*flip-card-front-2*/
.flip-card-front-2, .flip-card-back {
    box-shadow: 0 8px 14px 0 rgba(0,0,0,0.2);
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
}

.flip-card-front-2 {
    background-image: url(../Recursos_Media/img1.png); /*Coloca la ruta de la imagen*/
    color: rgb(255, 255, 255);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 80);
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.flip-card-front-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
    border-radius: 8px;
}

.flip-card-front-2 * {
    position: relative;
    z-index: 2;
}

/*flip-card-front-3*/
.flip-card-front-3, .flip-card-back {
    box-shadow: 0 8px 14px 0 rgba(0,0,0,0.2);
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
}

.flip-card-front-3 {
    background-image: url(../Recursos_Media/CARD2.png); /*Coloca la ruta de la imagen*/
    color: rgb(255, 255, 255);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 80);
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.flip-card-front-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
    border-radius: 8px;
}

.flip-card-front-3 * {
    position: relative;
    z-index: 2;
}

/*flip-card-front-4*/
.flip-card-front-4, .flip-card-back {
    box-shadow: 0 8px 14px 0 rgba(0,0,0,0.2);
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
}

.flip-card-front-4 {
    background-image: url(../Recursos_Media/img2.png); /*Coloca la ruta de la imagen*/
    color: rgb(255, 255, 255);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 80);
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.flip-card-front-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
    border-radius: 8px;
}

.flip-card-front-4 * {
    position: relative;
    z-index: 2;
}

/*flip-card-front-5*/
.flip-card-front-5, .flip-card-back {
    box-shadow: 0 8px 14px 0 rgba(0,0,0,0.2);
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
}

.flip-card-front-5 {
    background-image: url(../Recursos_Media/CARD3.png); /*Coloca la ruta de la imagen*/
    color: rgb(255, 255, 255);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 80);
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.flip-card-front-5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
    border-radius: 8px;
}

.flip-card-front-5 * {
    position: relative;
    z-index: 2;
}

/*flip-card-front-6*/
.flip-card-front-6, .flip-card-back {
    box-shadow: 0 8px 14px 0 rgba(0,0,0,0.2);
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
}

.flip-card-front-6 {
    background-image: url(../Recursos_Media/img4.png); /*Coloca la ruta de la imagen*/
    color: rgb(255, 255, 255);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 80);
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.flip-card-front-6::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
    border-radius: 8px;
}

.flip-card-front-6 * {
    position: relative;
    z-index: 2;
}

/*flip-card-front-7*/
.flip-card-front-7, .flip-card-back {
    box-shadow: 0 8px 14px 0 rgba(0,0,0,0.2);
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
}

.flip-card-front-7 {
    background-image: url(../Recursos_Media/img6.png); /*Coloca la ruta de la imagen*/
    color: rgb(255, 255, 255);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 80);
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.flip-card-front-7::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
    border-radius: 8px;
}

.flip-card-front-7 * {
    position: relative;
    z-index: 2;
}
/*flip-card-front-8*/
.flip-card-front-8, .flip-card-back {
    box-shadow: 0 8px 14px 0 rgba(0,0,0,0.2);
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
}

.flip-card-front-8 {
    background-image: url(../Recursos_Media/CARD3.png); /*Coloca la ruta de la imagen*/
    color: rgb(255, 255, 255);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 80);
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.flip-card-front-8::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
    border-radius: 8px;
}

.flip-card-front-8 * {
    position: relative;
    z-index: 2;
}

/*flip-card-front-9*/
.flip-card-front-9, .flip-card-back {
    box-shadow: 0 8px 14px 0 rgba(0,0,0,0.2);
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
}

.flip-card-front-9 {
    background-image: url(../Recursos_Media/CARD3.png); /*Coloca la ruta de la imagen*/
    color: rgb(255, 255, 255);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 80);
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.flip-card-front-9::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
    border-radius: 8px;
}

.flip-card-front-9 * {
    position: relative;
    z-index: 2;
}

/*flip-card-front-10*/
.flip-card-front-10, .flip-card-back {
    box-shadow: 0 8px 14px 0 rgba(0,0,0,0.2);
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
}

.flip-card-front-10 {
    background-image: url(../Recursos_Media/CARD3.png); /*Coloca la ruta de la imagen*/
    color: rgb(255, 255, 255);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 80);
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.flip-card-front-10::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
    border-radius: 8px;
}

.flip-card-front-10 * {
    position: relative;
    z-index: 2;
}
.flip-card-back {
    background: linear-gradient(120deg, #0070C0 30%, #03A64A 88%, #0070C0 40%, #03A64A 78%);
    color: white;
    transform: rotateY(180deg);
}

