/* === 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: 1rem;
    color: #555;
    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: 1200px;
    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(4, 1fr);
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    align-items: stretch; /* todas las tarjetas de la fila con la misma altura */
}

.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;
    justify-content: space-between;
    gap: 8px;
    height: 100%;
    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: 0.85rem;
    color: #666;
    line-height: 1.6;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    flex-grow: 1; /* ocupa el espacio disponible para que el botón quede alineado abajo */
}

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

.item-card .btn {
    margin-top: auto;
}

/* === 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;
}

input[type="date"],
input[type="time"]{

    width:100%;
    padding:10px 13px;
    border:1.5px solid #cce6e6;
    border-radius:6px;
    font-size:.92rem;
    background:#f8fafa;
    margin-bottom:18px;
    outline:none;

}

input[type="date"]:focus,
input[type="time"]:focus{

    border-color:#2aa8a8;

}

/* === 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; }

/* === SLIDER DE IMÁGENES (páginas de servicio) === */
.slider {
    width: 400px;
    max-width: 90%;
    height: 300px;
    margin: 30px auto 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    animation: slide 10s infinite;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes slide {
    0%   { margin-left: 0%; }
    30%  { margin-left: 0%; }
    35%  { margin-left: -100%; }
    65%  { margin-left: -100%; }
    70%  { margin-left: -200%; }
    100% { margin-left: -200%; }
}

/* === INFORMACIÓN DEBAJO DEL SLIDER (páginas de servicio individuales) === */
.info-servicio {
    max-width: 900px;
    margin: 32px auto 0;
}

.info-servicio h2 {
    color: #1a7a7a;
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.info-servicio p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;      /* margenes parejos: sin líneas "cortas" sueltas */
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

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