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

/* === BODY === */
body {
    font-family: Arial, sans-serif;
    background-color: #f5ede8;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === HEADER === */
header {
    background-color: #2aa8a8;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 28px;
}

header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

header h1 {
    color: white;
    font-size: 1.8rem;
}

header p {
    color: white;
    font-style: italic;
    font-size: 1rem;
}

/* === NAV === */
nav {
    background-color: white;
    border-bottom: 3px solid #2aa8a8;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
}

nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #1a7a7a;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.3s;
}

nav a img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

nav a:hover,
nav a.active {
    background-color: #2aa8a8;
    color: white;
}

/* === HERO (index) === */
.hero {
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 32px;
}

.hero img {
    width: 380px;
    border-radius: 10px;
    object-fit: cover;
}

.hero h2 {
    font-size: 1.7rem;
    color: #1a7a7a;
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.2rem;
    color: #0b0b0b;
    line-height: 1.7;
}

/* === BANNER (páginas interiores) === */
.banner {
    background-color: #2aa8a8;
    color: white;
    text-align: center;
    padding: 44px 20px;
}

.banner h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.banner p {
    font-size: 1rem;
    opacity: 0.85;
    font-style: italic;
}

/* === CONTENIDO GENERAL === */
.contenido {
    max-width: 1000px;
    margin: 48px auto;
    padding: 0 28px;
}

/* === TARJETA BLANCA === */
.tarjeta {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.09);
    padding: 32px;
    margin-bottom: 28px;
}

/* === GRILLA DE SERVICIOS/PRODUCTOS === */
.grilla {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.item-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.09);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.2s;
}

.item-card:hover {
    transform: translateY(-5px);
}

.item-card .icono {
    font-size: 2.5rem;
}

.item-card h3 {
    font-size: 1rem;
    color: #1a7a7a;
    font-weight: bold;
}

.item-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.item-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
}

/* === BOTÓN === */
button, .btn {
    background-color: #2aa8a8;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    background-color: #1a7a7a;
}

/* === FORMULARIO === */
form label {
    display: block;
    font-weight: bold;
    font-size: 0.88rem;
    color: #444;
    margin-bottom: 5px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form select,
form textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #cce6e6;
    border-radius: 6px;
    font-size: 0.92rem;
    background: #f8fafa;
    margin-bottom: 18px;
    outline: none;
    transition: border 0.2s;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: #2aa8a8;
}

form textarea {
    height: 120px;
    resize: vertical;
}

/* === LOGIN CENTRADO === */
body.login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    background-color: #f5ede8;
}

.login-card {
    background: white;
    padding: 36px 32px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    width: 320px;
}

.login-card h2 {
    text-align: center;
    color: #1a7a7a;
    margin-bottom: 22px;
}

/* === ESTRELLAS === */
.estrellas {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 20px;
}

.estrellas input { display: none; }

.estrellas label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
}

.estrellas:hover label          { color: #f5c518; }
.estrellas label:hover ~ label  { color: #ddd !important; }
.estrellas input:checked ~ label{ color: #f5c518; }

/* === TABLA INTRANET === */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

thead {
    background-color: #2aa8a8;
    color: white;
}

th, td {
    padding: 11px 16px;
    text-align: left;
    border-bottom: 1px solid #e0f0f0;
}

tbody tr:hover { background-color: #f0fafa; }

/* === FOOTER === */
footer {
    background-color: #2aa8a8;
    color: white;
    text-align: center;
    padding: 18px;
    font-size: 0.88rem;
    margin-top: auto;
}

