/* Variables de Color Estilo Caribeño */
:root {
    --primario: #008080; /* Azul Turquesa */
    --secundario: #e67e22; /* Naranja Atardecer */
    --oscuro: #2c3e50;
    --claro: #f4f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--claro);
    color: var(--oscuro);
    line-height: 1.6;
}

/* Encabezado / Navegación */
header {
    background-color: #ffffff;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primario);
}

nav a {
    text-decoration: none;
    color: var(--oscuro);
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primario);
}

/* Sección de Portada (Hero) */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("img/panama.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 70vh; 
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff; 
    padding: 0 20px;    
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 300;
    max-width: 600px;
}

.btn {
    background-color: var(--secundario);
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    transition: transform 0.3s, background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
    background-color: #d35400;
}

/* Contenedor General */
.container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
    color: var(--primario);
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secundario);
    margin: 10px auto 0 auto;
}

/* Sección Galería / Habitaciones */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
    color: var(--oscuro);
}

/* Sección Formulario de Reservas */
.booking-section {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primario);
}

/* Pie de página */
footer {
    background-color: var(--oscuro);
    color: #ffffff;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    font-size: 0.9rem;
}

/* Ajustes para Pantallas Celulares */
@media (max-width: 768px) {
    header { 
        flex-direction: column; 
        text-align: center; 
    }
    nav { 
        margin-top: 15px; 
    }
    nav a { 
        display: inline-block;
        margin: 5px 8px; 
    }
    .hero h1 { 
        font-size: 2rem; 
    }
    
}


/* =========================================
   BOTÓN FLOTANTE DE WHATSAPP
========================================= */

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;

    display: flex;
    align-items: center;
    gap: 10px;

    background-color: #25D366;
    color: #ffffff;

    padding: 14px 20px;
    border-radius: 50px;

    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);

    z-index: 2000;

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Ajuste para celulares */
@media (max-width: 768px) {

    .whatsapp-float {
        bottom: 20px;
        right: 20px;

        width: 60px;
        height: 60px;

        padding: 0;
        border-radius: 50%;

        justify-content: center;
    }

    .whatsapp-float span {
        display: none;
    }

    .whatsapp-float svg {
        width: 32px;
        height: 32px;
    }
}
