:root {
    --bg-body: #f3f3f3;
    --header-bg: #003a63;
    --header-text: #ffffff;

    --nav-bg: #005a99;
    --nav-text: #ffffff;

    --section-bg: #ffffff;

    --article-bg: #e6f2ff;
    --article-border: #005a99;

    --card-bg: #005a99;
    --card-border: #003a63;
    --card-text: #ffffff;

    --footer-bg: #003a63;
    --footer-text: #ffffff;

    --shadow-color: rgba(0, 0, 0, 0.55);
}

/* GENERAL */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-body);
}

header {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 20px;
    text-align: center;
}

/* MENÚ */
nav {
    background: var(--nav-bg);
    padding: 10px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 0;
    margin: 0;
}

nav ul li a {
    color: var(--nav-text);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
}

nav ul li a:hover,
nav ul li a.active {
    background: #003a63;
}

/*  SECCIONES */
section {
    padding: 30px;
    background: var(--section-bg);
}

.card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    margin: 30px auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* ARTÍCULOS */
article {
    background: var(--article-bg);
    padding: 20px;
    margin: 20px;
    border-left: 5px solid var(--article-border);
}

/* LISTAS */
.lista-simple li {
    margin: 10px 0;
    font-size: 18px;
}

.materiales ul {
    margin-top: 10px;
    padding-left: 20px;
}

/* TABLAS */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #ccc;
}

th {
    background: var(--nav-bg);
    color: white;
    text-align: left;
}

/* TARJETAS  */
.cartas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 200px);
    gap: 20px;
}

.cards {
    background-color: var(--card-bg);
    padding: 1rem;
    color: var(--card-text);
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;

    border-bottom: 1rem solid var(--card-border);
    border-left: 1rem solid var(--card-border);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cards:hover {
    transform: translateY(-10px);
    box-shadow: 0px 15px 20px var(--shadow-color);
}

.cardOne { grid-column: 1 / 3; grid-row: 1 / 3; }
.cardTwo { grid-column: 3 / 4; grid-row: 1 / 2; }
.cardThree { grid-column: 3 / 4; grid-row: 2 / 3; }
.cardFour { grid-column: 1 / 2; grid-row: 3 / 5; }
.cardFive { grid-column: 2 / 4; grid-row: 3 / 5; }

/* CARRUSELES */
.carousel {
    position: relative;
    width: 100%;
    max-width: 820px;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.slide img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
}

button.prev, 
button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 5px;
}
button.prev { left: 10px; }
button.next { right: 10px; }

/*  TITULO  */
.titulo-galeria {
    text-align: center;
    margin-top: 50px;
    font-size: 32px;
    font-weight: bold;
    color: var(--nav-bg);
}   

footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 15px;
    text-align: center;
    margin-top: 30px;
}