/* estilo.css - CSS compartido para todas las páginas */

/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CUERPO GENERAL */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f8;
    color: #333;
    text-align: center;
    padding-top: 120px; /* espacio inicial para nav fijo */
}

/* ENCABEZADOS */
h1, h2, h3 {
    color: #198754;
    margin-bottom: 20px;
}

/* PÁRRAFOS */
p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* BOTONES Y ENLACES */
a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #198754;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

a:hover {
    background-color: #145c36;
}

/* CONTENEDORES */
.container {
    max-width: 800px;
    margin: 0 auto;
}

/* FOOTER */
footer {
    margin-top: 50px;
    padding: 15px;
    background-color: #222;
    color: #ccc;
    font-size: 0.9em;
}

/* ========================================================= */
/* BARRA DE NAVEGACIÓN SUPERIOR */
nav {
    background: url('img/lakeintheshape.jpg') center/cover no-repeat;
    background-color: #198754;
    display: flex;
    justify-content: space-between; /* logo izquierda, menú derecha */
    align-items: center;
    padding: 15px 25px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 70px;
    z-index: 1000;
}

/* Logo */
nav .logo {
    color: #fff;
    font-size: 1.4em;
    font-weight: bold;
    text-decoration: none;
}

/* Menú principal */
nav ul {
    list-style: none;
    display: flex; /* visible en PC */
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    background: none;
    color: #fff;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Botón hamburguesa (solo móvil) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    background: #fff;
    height: 3px;
    width: 25px;
    margin: 4px 0;
}

/* LOGIN CONTENEDOR */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.login-container h2 {
    margin-bottom: 20px;
    color: #198754;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-container input[type="submit"] {
    width: 100%;
    background-color: #198754;
    color: white;
    border: none;
    padding: 10px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
}

.login-container input[type="submit"]:hover {
    background-color: #145c36;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    body {
        padding-top: 140px; /* espacio nav móvil */
    }

    nav {
        flex-direction: column;
        min-height: 120px;
        justify-content: center;
    }

    nav ul {
        display: none; /* oculto en móvil */
        flex-direction: column;
        width: 100%;
        background-color: #198754;
        position: absolute;
        top: 60px;
        right: 0;
        text-align: center;
    }

    nav ul.show {
        display: flex;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        top: 15px;
        right: 25px;
    }

    nav ul li {
        margin: 10px 0;
    }
}

@media (min-width: 769px) {
    body {
        padding-top: 110px; /* espacio nav PC */
    }

    nav ul {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }
}

.error-box {
    background: #ffe5e5;
    color: #900;
    border: 1px solid #f5b5b5;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0066cc;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background-color: #004999;
}

/* ==== DASHBOARD - MÓDULOS ==== */
.module-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.module-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    padding: 25px 15px;
    text-align: center;
    width: 220px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0,0,0,0.25);
}

.module-card a {
    display: block;
    font-size: 1.1em;
    font-weight: bold;
    color: #0066cc; /* mismo color que tu .btn */
    margin-bottom: 8px;
    text-decoration: none;
}

.module-card a:hover {
    color: #004999; /* efecto hover igual que tu .btn */
}

.module-card p {
    font-size: 0.95em;
    color: #666;
    margin: 0;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .module-card {
        width: 90%;
    }
}

/* Contenedor general de páginas internas */
.content-container {
    max-width: 95%;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    overflow-x: auto;
}

/* ==== CATÁLOGO DE PERFILES ==== */
.productos {
    padding: 40px 5%;
    background-color: #f4f6f8;
    color: #333;
}

.productos .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.producto {
    background: #fff;
    border: 1px solid #c8e2d3;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.producto:hover {
    background: #e9f5ef;
    border-color: #198754;
    transform: scale(1.03);
}

.producto h3 {
    font-size: 1.1em;
    color: #198754;
    margin-bottom: 5px;
}

.producto p {
    font-size: 0.9em;
    color: #555;
}

/* ==== SECCIÓN DE PEDIDO ==== */
.pedido {
    background: #198754;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}

.pedido h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.pedido p {
    font-size: 1.1em;
    margin-bottom: 5px;
}

.pedido .nota {
    font-size: 0.95em;
    color: #d1f0de;
    font-style: italic;
}
