/* CSS General */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    color: #333;
    background-image: url("media/fondo.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

h1 { font-size: 3.5em; }
h2 { font-size: 2.7em; }
h3 { font-size: 2em; }
p { font-size: 1.25em; }
ul { list-style: none; }
li { font-size: 1.25em; }

button {
    font-size: 1.25em;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 8px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
    color: white;
    background-color: #048eff;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    background-color: #048eff;
    transform: translateY(-4%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.container {
    max-width: 1400px;
    margin: auto;
}

.color-acento { color: #048eff; }

/* Encabezado */
header {
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 100;
    transition: all 0.4s ease;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

header .logo-img {
    height: 50px;
    margin: 10px 15px;
}

header .logo {
    margin: 0;
    padding: 15px 5px;
    font-weight: bold;
    color: #ffffff;
    font-size: 1.8em;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

header nav {
    display: flex;
    margin-left: auto;
}

header a {
    padding: 8px 15px;
    text-decoration: none;
    font-weight: bold;
    color: #ffffff; /* Cambia el color del enlace en el encabezado */
    transition: color 0.3s ease;
}

header a:hover {
    color: #bb86fc;
}

/* Hero Section */
#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    height: 90vh;
    background-color: rgba(0, 0, 0, 0);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    width: 200px;
    margin-right: 20px;
}

#hero h1 {
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 3.5em;
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Sección de Programas */
#nuestros-programas {
    background-color: rgba(20, 20, 20, 0.74);
    color: #f8f8f8;
    text-align: center;
    padding: 80px 0;
    font-family: 'Oswald', sans-serif;
}

#nuestros-programas .container {
    padding: 80px 12px;
}

#nuestros-programas h2 {
    margin-top: 0;
    font-size: 3.2em;
}

#nuestros-programas .programas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

#nuestros-programas .carta {
    position: relative;
    background-color: rgb(10, 10, 10);
    border-radius: 15px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 400ms ease;
    overflow: hidden;
    text-align: center;
}

.carta-img {
    width: 100%; 
    height: auto; 
    border-radius: 15px 15px 0 0; 
}

#nuestros-programas .carta:hover {
    box-shadow: 5px 5px 10px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-3%);
}

/* Sección de IA en General */
#ia-general {
    background-color: rgba(30, 30, 30, 0.8);
    color: #f8f8f8;
    text-align: center;
    padding: 80px 0;
    font-family: 'Oswald', sans-serif;
}

#ia-general h2 {
    font-size: 3.2em;
    margin-top: 0;
}

#ia-general .programas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

#ia-general .carta {
    background-color: rgb(20, 20, 20);
    border-radius: 15px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 400ms ease;
    overflow: hidden;
    text-align: center;
    padding: 20px;
    cursor: pointer;
}

#ia-general .carta:hover {
    box-shadow: 5px 5px 10px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-3%);
}

#ia-general .carta h3 {
    font-size: 2em;
    margin: 0.5em 0;
}

#ia-general .carta p {
    font-size: 1.25em;
}

/* Estilo para los enlaces de tarjetas en IA General */
#ia-general .carta a {
    display: block;
    color: inherit; /* Hereda el color del texto del contenedor */
    text-decoration: none; /* Elimina el subrayado */
    width: 100%;
    height: 100%;
}

/* Elimina el color morado en todos los enlaces */
a {
    color: inherit; /* Cambia el color a heredado para que coincida con el texto */
    text-decoration: none; /* Elimina el subrayado de todos los enlaces */
}
