/* ================================
   RESET GLOBAL
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Configuración base del body */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #e9e9e9;
    color: #333;
}

/* ================================
   CABECERA
================================ */
.cabecera {
    background-color: #2c2c2c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

.cabecera div > img {
    width: 43px;
    height: 40px;
}

h1 {
    color: white;
    display: inline;
}

span {
    color: orange;
}

.menu_navegacion a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.menu_navegacion a:hover {
    color: #f7941d;
}

/* ================================
   CONTENEDOR GENERAL
================================ */
.contenedor_principal {
    width: 96%;
    margin: 30px auto; /* Centrado horizontal */
}

.titulo_seccion {
    text-align: center;
    margin: 30px 0;
    font-size: 28px;
    font-weight: bold;
    padding: 2%;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    font-size: xx-large;
}

/* Control de desbordamientos y Layout para ocupar toda la altura */
html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Layout para ocupar altura completa */
body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Contenedores flex que se adapten */
.seccion_inicio,
.seccion_sobre,
.seccion_curso,
.seccion_contacto,
.grid_productos {
    flex-wrap: wrap;
}