/* ====== ESTILO GENERAL ====== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* ====== ENCABEZADO ====== */
header {
    background-color: #333;
    color: #fff;
    padding: 1em 0;
    text-align: center;
}

nav ul {
    padding: 0;
    list-style: none;
    margin: 0;
}

nav ul li {
    display: inline-block;
    margin: 0 1em;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #ffcc00;
}

/* ====== SECCIÓN HERO ====== */
#hero {
    background: url('puertollano.jpg') no-repeat center center/cover;
    height: 80vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.35);
    padding: 20px 25px;
    border-radius: 10px;
    animation: fadeInUp 1.2s ease forwards;
    opacity: 0;
}

.hero-content h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5em;
}

.hero-content p {
    font-size: 0.95rem;
    margin-bottom: 1em;
}

.button {
    font-size: 0.9rem;
    padding: 0.7em 1.3em;
    background-color: #ffcc00;
    color: #333;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover {
    background-color: #e6b800;
    transform: scale(1.05);
}

/* ====== HABITACIONES ====== */
#habitaciones {
    padding: 3em 1em;
    text-align: center;
}

.habitaciones-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.habitacion {
    width: 320px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.habitacion img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.habitacion img:hover {
    transform: scale(1.05);
}

.habitacion h3,
.habitacion p {
    padding: 0.8em 1em;
}

/* ====== SERVICIOS ====== */
#servicios {
    padding: 3em 1em;
    text-align: center;
    background-color: #eee;
}

#servicios ul {
    list-style: none;
    padding: 0;
}

#servicios li {
    margin-bottom: 0.5em;
    font-size: 1.1rem;
}

/* ====== CONTACTO ====== */
#contacto {
    padding: 3em 1em;
    text-align: center;
}

/* ====== FORMULARIO DE RESERVAS ====== */
#reservas {
    padding: 3em 1em;
    text-align: center;
    background-color: #f9f9f9;
}

.reserva-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reserva-form label {
    font-weight: bold;
}

.reserva-form input,
.reserva-form select,
.reserva-form textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.reserva-form button {
    align-self: center;
    padding: 0.8em 1.5em;
    background-color: #ffcc00;
    color: #333;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.reserva-form button:hover {
    background-color: #e6b800;
    transform: scale(1.05);
}

/* ====== FOOTER ====== */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    font-size: 0.9rem;
}

/* ====== ANIMACIÓN ====== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px);}
    to { opacity: 1; transform: translateY(0);}
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    #hero { height: 50vh; }
    .hero-content { padding: 15px 20px; }
    .hero-content h2 { font-size: 1.3rem; }
    .hero-content p { font-size: 0.85rem; }
    .habitacion { width: 90%; }
    .reserva-form { width: 90%; }
}

@media (max-width: 480px) {
    nav ul li { display: block; margin: 0.5em 0; }
    .habitaciones-grid { flex-direction: column; align-items: center; }
}
