/*
GENERAL.CSS
Estilos base y layout común para toda la aplicación.
Incluye tipografía, colores, botones, header, footer, layout general, etc.
*/

:root {
    --p1: #FFE9EF;
    --p2: #FFC9D7;
    --p3: #FFBCCD;
    --p4: #FF9CB5;
    --p5: #FC809F;
    --g1: #002400;
    --g2: #273B09;
    --g3: #58641D;
    --g4: #7B904B;
    --g5: #BBCF8D;
    --card-bg: #FFFFFF;
    --muted: #f7f3f4;
}

/* RESET GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    background: linear-gradient(135deg, var(--p1), var(--p4));
    color: var(--g1);
    min-height: 100vh;
}

/* TITULOS */
h1, h2, h3, h4 {
    font-family: "Lora", serif;
    color: var(--g2);
    font-weight: 700;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }

/* BOTONES */
button, .btn {
    font-family: "Roboto", sans-serif;
    font-size: 1rem;
    background: var(--g2);
    color: var(--p1);
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    font-weight: 600;
}

button:hover, .btn:hover {
    background: var(--g3);
    transform: translateY(-2px);
}

.btn.secondary {
    background: var(--p4);
    color: var(--g1);
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: url('../img/header.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFE9EF;
    z-index: 100;
}

.header h1 {
    position: relative;
    font-family: "Lora", serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* CAMPOS DE FORMULARIO */
input, textarea, select {
    font-family: "Roboto", sans-serif;
    font-size: 1rem;
    border-radius: 8px;
    padding: 8px;
    border: 1px solid #ccc;
    width: 100%;
    margin: 8px 0;
}

/* FOOTER */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background-color: var(--g4);
    color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 3px solid var(--p5);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--g5);
    position: relative;
    transition: color 0.3s;
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.nav-item.active, .nav-item:hover {
    color: var(--p4);
}

/* MENÚ DE ACCIONES */
.menu-acciones ul {
    position: absolute;
    bottom: 85px;
    background-color: var(--g2);
    border-radius: 10px;
    min-width: 160px;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    z-index: 9999;
}

.menu-acciones ul:not([hidden]) { display: block; }

.menu-acciones ul li a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
    text-align: center;
    font-size: 0.9rem;
}

.menu-acciones ul li a:hover {
    background-color: var(--g3);
    color: var(--p4);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header h1 { font-size: 1.6rem; }
    .nav-item i { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .footer { height: 65px; }
    .nav-item span { font-size: 0.7rem; }
}
