/* ==========================================
   1. RESETEO Y ESTILOS GENERALES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    transition: background 0.4s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ==========================================
   2. CABECERA Y NAVEGACIÓN
   ========================================== */
header {
    background-color: #0b2240;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.logo img {
    height: 30px;
    object-fit: contain;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav ul li a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav ul li a:hover, 
nav ul li a.active {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 4px;
}

/* ==========================================
   3. SECCIÓN HERO
   ========================================== */
.hero {
    height: 60vh;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-content p {
    font-size: 1.2rem;
    font-style: italic;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-inicio { background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('img/atun-fondo.jpg'); }
.hero-casa { background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img/salon1.jpg'); }
.hero-galeria { background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img/terraza1.jpg'); }
.hero-precios { background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img/precios-fondo.jpg'); }
.hero-info { background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img/info-fondo.jpg'); }
.hero-contacto { background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img/contacto-fondo.jpg'); }
.hero-checkin { background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img/checkin-fondo.jpg'); }

/* ==========================================
   4. CONTENIDO PRINCIPAL
   ========================================== */
.section-title {
    text-align: center;
    font-weight: 300;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #555555;
}

.grid-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.card { text-align: center; }

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover; 
    border-radius: 2px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95rem;
    color: #666666;
}

.intro-text {
    max-width: 850px;
    margin: 0 auto;
    text-align: justify;
}

.intro-text p {
    margin-bottom: 20px;
    color: #555555;
    font-size: 0.95rem;
}

/* ==========================================
   5. CARRUSELES DE LA GALERÍA
   ========================================== */
.carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 20px auto 40px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    background-color: #f5f5f5;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    width: 100%;
}

.carousel-track img {
    width: 100% !important;
    max-width: 100% !important;
    height: 380px;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11, 34, 64, 0.75);
    color: #ffffff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.2s, transform 0.2s;
}

.carousel-btn:hover {
    background: #d1417a;
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

/* ==========================================
   6. SECCIÓN RESEÑAS (BOOKING / AIRBNB)
   ========================================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.review-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.platform-badge {
    font-size: 0.8rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    color: #ffffff;
}

.platform-badge.booking { background-color: #003580; }
.platform-badge.airbnb { background-color: #ff5a5f; }

.review-score {
    font-weight: bold;
    font-size: 0.95rem;
    color: #333333;
}

.review-comment {
    font-style: italic;
    font-size: 0.9rem;
    color: #555555;
    margin-bottom: 15px;
}

.review-author {
    font-size: 0.8rem;
    color: #888888;
    text-align: right;
}

/* ==========================================
   7. INTEGRACIÓN PLAGAS EN SERVICIOS
   ========================================== */
.servicios-plagas-box {
    margin: 15px 0 35px 20px;
    padding: 12px 18px;
    background-color: #f8f9fa;
    border-left: 3px solid #0b2240;
    font-size: 0.85rem;
    color: #555555;
    border-radius: 0 4px 4px 0;
}

.servicios-plagas-box a {
    color: #d1417a;
    text-decoration: underline;
    font-weight: 600;
    margin-left: 5px;
}

/* ==========================================
   8. FOOTER Y CHECK-IN
   ========================================== */
footer {
    background-color: #d1417a; 
    color: #ffffff;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    position: relative;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-text-container {
    flex: 1;
    text-align: center;
}

footer a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: bold;
}

.lang-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn {
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 4px;
    padding: 4px 6px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flag-img {
    width: 35px !important; 
    height: auto !important;
    display: block;
}

.checkin-main-wrapper {
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

body.bg-checkin-active {
    background: url('img/formulario-fondo.jpg') no-repeat center center fixed;
    background-size: cover;
}

.checkin-btn {
    display: inline-block;
    background-color: #d1417a;
    color: white;
    text-decoration: none;
    padding: 16px 40px;
    font-weight: bold;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin: auto;
    max-width: 90%;
}

.form-checkin-card {
    display: none;
    width: 100%;
    max-width: 680px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: left;
    margin: 30px auto;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.form-header-graphics {
    text-align: center;
    margin-bottom: 25px;
}

.form-top-logo {
    max-width: 100%;
    height: auto;
}

.form-main-title {
    font-size: 1.75rem;
    color: #000000;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-subtitle {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: bold;
    color: #222222;
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 0.95rem;
}

.row-flex {
    display: flex;
    gap: 10px;
}

.row-flex > div { flex: 1; }

.legal-notice-box {
    background-color: #ffffff;
    border-left: 4px solid #0b2240;
    padding: 12px;
    margin: 20px 0;
}

.legal-notice-box p {
    font-size: 0.75rem;
    font-weight: bold;
    color: #000000;
}

.terms-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-submit-form {
    display: block;
    width: 100%;
    max-width: 200px;
    background-color: #0a193d;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin: 0 auto;
}

/* ==========================================
   9. TARJETAS VIEWINFO (ANIMACIÓN)
   ========================================== */
body.info-page-bg {
    background: linear-gradient(rgba(255, 255, 255, 0.60), rgba(255, 255, 255, 0.88)), 
                url('img/info-tarjetas.jpg') no-repeat center center fixed;
    background-size: cover;
}

.pueblos-section { margin-top: 40px; }

.pueblo-card {
    display: flex;
    align-items: center;
    gap: 25px;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.pueblo-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.pueblo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.pueblo-info { flex: 1; }

.pueblo-info h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #0b2240;
    margin-bottom: 8px;
}

.pueblo-info p {
    font-size: 0.95rem;
    color: #555555;
}

.pueblo-img { flex: 0 0 220px; }

.pueblo-img img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

/* ==========================================
   10. RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 820px) {
    header {
        flex-direction: column;
        padding: 15px 20px;
        gap: 12px;
    }

    nav ul {
        justify-content: center;
        gap: 12px 15px;
    }

    nav ul li a { font-size: 0.85rem; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    .container { padding: 25px 15px; }

    .pueblo-card {
        flex-direction: column;
        text-align: left;
        padding: 16px;
    }

    .pueblo-img {
        width: 100%;
        flex: none;
    }

    .pueblo-img img { height: 180px; }
    .carousel-track img { height: 250px; }
    .row-flex { flex-direction: column; gap: 10px; }
    footer { flex-direction: column; text-align: center; }
    .footer-text-container { margin-left: 0; }
}

/* ==========================================
   ESTILOS DE MANUALES DE ELECTRODOMÉSTICOS
   ========================================== */
.inline-link {
    color: #d1417a;
    text-decoration: underline;
    font-weight: 600;
}

.inline-link:hover {
    color: #0b2240;
}

.manuales-box {
    margin: 20px 0 30px 0;
    padding: 24px;
    background: #fdfdfd;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.manuales-box h3 {
    color: #0b2240;
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.manuales-box p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 16px;
}

.manuales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.manual-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.2s ease;
}

.manual-card:hover {
    border-color: #d1417a;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(209, 65, 122, 0.12);
}

.manual-icon {
    font-size: 1.6rem;
}

.manual-model {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
}


.section-title-dark {
    color: #0b2240 !important; /* Azul marino profundo de la marca */
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* ==========================================
   ESTILOS DE SECCIÓN RESTAURANTES (INICIO)
   ========================================== */
.card-clickable {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-clickable:hover {
    transform: translateY(-4px);
}

.restaurantes-intro-text {
    text-align: center;
    color: #555555;
    font-size: 1rem;
    margin-bottom: 25px;
}

.restaurante-cat-title {
    font-size: 1.3rem;
    color: #0b2240;
    margin-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 5px;
}

.restaurantes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.restaurante-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.restaurante-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.restaurante-card h4 {
    font-size: 1.15rem;
    color: #0b2240;
    margin-bottom: 8px;
}

.rest-desc {
    font-size: 0.9rem;
    color: #555555;
    margin-bottom: 15px;
    line-height: 1.4;
    flex-grow: 1;
}

.rest-details p {
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: #444444;
}

.rest-details a {
    color: #d1417a;
    text-decoration: underline;
    font-weight: 600;
}

.rest-details a:hover {
    color: #0b2240;
}

/* ==========================================
   BOTÓN VOLVER AL INICIO (REDONDEADO)
   ========================================== */
.btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background-color: #0b2240;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px; /* Bordes completamente circulares/píldora */
    box-shadow: 0 4px 10px rgba(11, 34, 64, 0.15);
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-volver:hover {
    background-color: #d1417a;
    transform: translateX(-4px);
    box-shadow: 0 6px 14px rgba(209, 65, 122, 0.25);
    text-decoration: none !important;
}

/* ==========================================
   BOTONES REDONDEADOS DE BOOKING Y AIRBNB
   ========================================== */
.reviews-badges-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Separación entre los dos botones */
    flex-wrap: wrap;
    margin: 25px auto 30px auto;
}

.platform-link-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 50px; /* Bordes totalmente redondeados / píldora */
    text-decoration: none !important; /* Elimina cualquier subrayado */
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

.platform-link-badge strong {
    color: #ffffff;
}

.platform-link-badge:hover {
    transform: translateY(-3px);
    text-decoration: none !important;
    filter: brightness(1.1);
}

/* Color azul oficial de Booking */
.booking-badge {
    background-color: #003580;
    box-shadow: 0 4px 14px rgba(0, 53, 128, 0.25);
}

/* Color rojo/coral oficial de Airbnb */
.airbnb-badge {
    background-color: #ff5a5f;
    box-shadow: 0 4px 14px rgba(255, 90, 95, 0.25);
}

/* ==========================================
   HOMOGENEIZACIÓN DE INPUTS Y FORMULARIOS
   ========================================== */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #222222;
    margin-bottom: 6px;
}

/* Todos los inputs, selects y datepickers con el mismo tamaño y altura */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    height: 48px; /* Altura estándar idéntica */
    padding: 0 14px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0b2240;
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 34, 64, 0.1);
}

.row-flex {
    display: flex;
    gap: 16px;
}

.row-flex > .form-group {
    flex: 1;
}

@media (max-width: 768px) {
    .row-flex {
        flex-direction: column;
        gap: 0;
    }
}

.form-inicio-card {
    width: 100%;
    max-width: 800px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px; /* Bordes redondeados elegantes */
    padding: 40px 35px;
    margin: 35px auto;
    /* Sombra propia multicapa y suave */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04);
    text-align: left;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .form-inicio-card {
        padding: 25px 20px;
        margin: 25px auto;
        border-radius: 12px;
    }
}