/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

/*AJUSTES GENERALES DE LOS DOS HEADERS ---------------------*/

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/*MINI HEADER ---------------------*/
.mini-header{
    background-color: #1A2E41;
    color: white;
    display: flex;
    gap: 2%;
    justify-content: flex-end;
    padding: 1%;
}

.mini-header p {
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
}

.mini-header a{
    color: white;
    font-size: clamp(0.9rem, 1vw, 1rem); /*rem es relavito al vw base*/
    transition: all 0.3s ease;
}

.mini-header a:hover{
    transform: scale(1.05);
    text-decoration: underline;
}




/*MENU HAMBURGUESA :) ---------------------*/

/*HEADER PRINCIPAL ---------------------*/

.header {
    width: 100%;
    height: 73px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background-color: rgba(247, 248, 249, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid #ececec;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 10px 5px rgba(228, 228, 228, 0.2);
}

.header .logo {
    max-width: 150px;
    width: auto;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 75%;
}

.header-links {
    display: flex;
    gap: 30px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

.header-links a {
    color: #1A2E41;
}

.nav{
    display: flex;
}

.header-links a:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px; /*grosor*/
    text-underline-offset: 6px; /*espacio*/
    border-radius: 10px;
    color: #1A2E41;
}

/*MENU HAMBURGUESA :) ---------------------*/

.menu-icon{
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: auto;
    position: relative;
    padding: 15px;
    border-radius: 8px;
    z-index: 1;
}

.menu-icon .line{
    width: 30px;
    height: 3px;
    background: #1A2E41;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.5s ease;
}

#menu-toogle {
    display: none;
}

@media(max-width: 900px){

    .navbar{
        padding: 16px;
    }

    .menu-icon{
        display: flex;
    }

    .header-links{
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        height: 0;
        overflow: hidden;
        flex-direction: column;
        background-color: #bee2fc;
        text-align: center;
        transition: height 0.5s ease;
    }


    .header-links li{
        margin: 0;
        width: 100%;
    }

    .header-links li:hover {
        background-color: #bee2fc;
    }

    .header-links li a{
        display: block;
        font-size: 17px;
        width: 100%;
        padding: 20px;
        text-align: center;
    }

    #menu-toogle:checked + .menu-icon + .header-links{
        height: 100vh;
    }
}

@media(max-width: 1160px) {
    .header-links {
        gap: 20px;
    }

}

@media(max-width: 1086px) {
    .header-links {
        gap: 10px;
    }

}

@media(max-width: 1090px) {
    .header-links a {
       font-size: 14px;
    }
}




/* Contenedor principal de la sección de artículos */
.container-articulos {
    justify-content: space-between;
    display: flex;
    padding: 150px 50px;
    align-items: center;
    background-image: linear-gradient(to bottom, #DCECF8, #FFFFFF);
    min-height: 100vh;
    box-sizing: border-box;
    gap: 40px;
}

/* Contenedor de información del lado izquierdo */
.contenedor-informacion {
    flex: 1;
    margin-right: 40px;
}

/* Estilos para el título principal */
.contenedor-informacion .titulo-principal {
    font-family: Nunito;
    font-size: 45px;
    color: #1A2E41;
    line-height: 1.1;
}

/* Color para el texto principal destacado */
.color-principal {
    color: #7F52E8; /* Un color morado que combina con el triángulo */
}

/* Estilos para los párrafos de texto */
.texto-primario {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #3E4F5C;
    font-size: 20px;
}

/* Estilos para el texto secundario (dentro de la caja) */
.texto-secundario {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #3E4F5C;
    margin-top: 15px;
    padding: 20px;
    border: solid 2px #3E4F5C;
    border-radius: 20px;
    width: 70%;
    font-size: 20px;
}

/* Estilos para la imagen del triángulo */
.imagen-triangle-purple {
    margin-top: 20px;
    align-items: center;
    text-align: center;
}

/* Contenedor principal del formulario (la caja completa) */
.container-formulario {
    width: 40%;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 45px rgba(127, 82, 232, 0.4); /* Sombra que coincide con el color del tema */
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    padding: 30px;
}

/* Estilos para los elementos del formulario */
.form-input-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-family: Nunito;
    color: #3E4F5C;
    font-weight: bold;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
    border-color: #7F52E8;
}

.form-textarea {
    resize: vertical;
}

/* Estilos para el botón de enviar */
.form-button {
    width: 100%;
    padding: 15px;
    background-color: #7F52E8;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    font-family: Nunito;
    transition: background-color 0.3s ease;
}

.form-button:hover {
    background-color: #6A3AD8;
}

/*Estilos para las cajas y todos los demas de sessiones*/
body {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
            background-color: #F8F9FA;
            color: #3E4F5C;
            margin: 0;
        }

        /* Contenedores de secciones */
        .seccion-blog {
            padding: 50px 20px;
            text-align: center;
        }

        /* Títulos de sección */
        .titulo-seccion {
            font-family: 'Nunito', sans-serif;
            font-size: 38px;
            color: #1A2E41;
            margin-bottom: 40px;
        }

        /* --- Estilos de las Tarjetas (Cards) --- */
        .blog-card { 
            background-color: #fff;
            border-radius: 20px;
            box-shadow: 0 4px 10px rgba(127, 82, 232, 0.4); /* Sombra que coincide con el color del tema */
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
            text-align: left;
        }

        .blog-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 8px 20px rgba(127, 82, 232, 0.651); /* Sombra que coincide con el color del tema */
        }

        .blog-card-imagen {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .blog-card-contenido {
            padding: 20px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .blog-card-titulo {
            font-family: 'Nunito', sans-serif;
            font-size: 24px;
            font-weight: 700;
            color: #1A2E41;
            margin-top: 0;
        }

        .blog-card-extracto {
            font-size: 16px;
            color: #667280;
            line-height: 1.5;
            flex-grow: 1;
        }

        .blog-card-autor-categoria {
            font-size: 14px;
            color: #6a3ad8;
            font-weight: bold;
            margin-top: 15px;
            font-style: italic;
        }

        /* --- Estilos para la Cuadrícula (Grid) --- */
        .grid-layout {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        /* --- Estilos para el Carrusel --- */
        .contenedor-carrusel {
            display: flex;
            align-items: center;
            justify-content: center;
            max-width: 1200px;
            margin: 0 auto;
        }

        .carousel-container {
            display: flex;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            gap: 20px;
            padding: 10px;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }
        
        .carousel-container::-webkit-scrollbar {
            display: none;
        }

        .carousel-container .blog-card {
            min-width: 320px;
            scroll-snap-align: start;
        }

        .button-carrusel {
            background-color: #7F52E8;
            color: white;
            border: none;
            padding: 15px 20px;
            cursor: pointer;
            border-radius: 50%;
            font-size: 24px;
            margin: 0 10px;
            transition: background-color 0.3s ease;
        }

        .button-carrusel:hover {
            background-color: #4e02ff
        }
        