/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f7fa;
}

/* ===== CONTENEDOR ===== */
.contenedor {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ===== HEADER ===== */
.header {
    background: #002855;
    color: white;
    padding: 15px 0;
}

/* ORGANIZAR HEADER */
.header .contenedor {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== MENU PRINCIPAL ===== */
.menu {
    margin-top: 10px;
}

.menu-principal {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.menu-principal li {
    position: relative;
}

.menu-principal a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    display: block;
}

/* ===== SUBMENU ===== */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #002855;
    list-style: none;
    padding: 10px 0;
    min-width: 220px;
    border-radius: 5px;

    display: none;
    z-index: 1000;
}

/* ITEMS SUBMENU */
.submenu li a {
    padding: 10px 15px;
}

/* HOVER SUBMENU */
.submenu li a:hover {
    background: #00509d;
}

/* MOSTRAR SUBMENU */
.has-submenu:hover .submenu {
    display: block;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(rgba(0,40,85,0.8), rgba(0,40,85,0.8)),
                url('../img/fondo.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 20px;
}

/* ===== CARDS ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px auto;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 25px rgba(0,0,0,0.2);
}

.card a {
    display: inline-block;
    margin-top: 10px;
    background: #00509d;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
}

/* ===== GALERIA (YA LISTA) ===== */
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.post {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.post:hover {
    transform: scale(1.03);
}

.post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post h3 {
    padding: 10px;
}

.post p {
    padding: 0 10px 10px;
}

/* ===== FOOTER ===== */
footer {
    background: #002855;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
}

/* ===== WHATSAPP ===== */
.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    font-size: 25px;
    padding: 15px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0px 5px 10px rgba(0,0,0,0.3);
}