/* ============================================
   JDSERVICES - STYLE.CSS VERSIÓN PREMIUM
   ============================================ */

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    overflow-x: hidden;
}

/* ── HEADER ── */
header {
    background-color: #ffffff;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    border-bottom: 3px solid #0056b3;
    position: relative;
    z-index: 200;
}

.logo { height: 45px; width: auto; }
.logo-link { display: flex; align-items: center; }

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #0056b3;
}

/* ── NAV ── */
nav {
    background-color: #0056b3;
    width: 100%;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 100;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    height: 45px;
    align-items: center;
}

nav > ul > li {
    position: relative;
    padding: 0 15px;
    height: 45px;
    display: flex;
    align-items: center;
}

nav > ul > li > a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    transition: color 0.2s;
}

nav > ul > li > a:hover { color: #ffd700; }

/* ── DROPDOWN PRIMER NIVEL ── */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 45px;
    left: 0;
    background: #ffffff;
    min-width: 230px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-top: 3px solid #0056b3;
    padding: 8px 0;
    z-index: 1000;
    list-style: none;
    margin: 0;
}

.has-dropdown:hover > .dropdown-menu { display: block; }

.dropdown-menu > li { position: relative; }

.dropdown-menu > li > a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-menu > li > a:hover {
    background-color: #f0f5ff;
    color: #0056b3;
}

/* ── MEGA MENÚ ── */
.mega-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: #ffffff;
    min-width: 580px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-top: 3px solid #0056b3;
    padding: 20px;
    z-index: 2000;
    flex-direction: row;
    gap: 20px;
}

.has-mega:hover > .mega-menu { display: flex; }

.mega-col { flex: 1; min-width: 150px; }

.mega-col a {
    display: block;
    padding: 6px 0;
    color: #333;
    font-size: 13px;
    text-decoration: none;
}

.mega-col a:hover { color: #0056b3; }

.col-title {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #0056b3;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e0e0e0;
}

/* ── HERO ── */
.hero {
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin-bottom: -50px;
}

/* Degradado solo abajo — imagen brillante arriba */
.hero::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.20) 60%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px 80px;
    text-align: center;
    max-width: 750px;
    width: 100%;
}

.hero-content h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 1px 2px 8px rgba(0,0,0,0.6);
    margin-bottom: 8px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1rem;
    color: #f0f0f0;
    margin-bottom: 25px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.btn {
    background-color: #00c06b;
    color: white;
    padding: 14px 38px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn:hover {
    background-color: #00a85c;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ── INDICADORES DE CONFIANZA ── */
.trust-indicators {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 18px;
}

.trust-indicators span {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
}

/* ── BUSCADOR — superpuesto al hero estilo Booking ── */
.search-container {
    background: #ffffff;
    padding: 20px 5%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 50;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.search-input-group .icon { color: #0056b3; font-size: 16px; }

.search-input-group input,
.search-input-group select {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    padding: 5px 0;
    color: #333;
}

.search-input-group input::placeholder { color: #666; }

.search-divider {
    width: 1px;
    height: 40px;
    background: #ddd;
}

.btn-search {
    background: #0056b3;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background 0.2s;
}

.btn-search:hover { background: #004494; }

/* Espacio después del buscador */
.search-wrapper {
    padding-bottom: 40px;
    background: #f4f4f4;
}

/* ── OFERTAS ── */
.offers-section {
    padding: 60px 5%;
    background: #f4f4f4;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.offer-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 4px solid #0056b3;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,86,179,0.15);
}

.offer-image { position: relative; }

.offer-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.offer-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #00c06b;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.offer-content { padding: 20px; }
.offer-content h3 { font-size: 1.1rem; font-weight: 700; color: #0056b3; margin: 0 0 8px; }
.offer-location { color: #666; font-size: 13px; margin-bottom: 12px; }

.offer-features { list-style: none; padding: 0; margin: 0 0 15px; }
.offer-features li { font-size: 13px; color: #555; padding: 3px 0; }
.offer-features li i { color: #0056b3; margin-right: 6px; }

.offer-price { margin-bottom: 15px; }
.price-from { font-size: 12px; color: #999; display: block; }
.price-amount { font-size: 1.4rem; font-weight: 700; color: #0056b3; }

.btn-offer {
    display: block;
    text-align: center;
    background: #0056b3;
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-offer:hover { background: #004494; }

/* ── SOBRE NOSOTROS ── */
.about-section { padding: 60px 5%; background: #ffffff; }

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.about-text { flex: 1; min-width: 280px; }
.about-text h3 { color: #0056b3; font-size: 1.4rem; margin-bottom: 15px; }
.about-text p { color: #555; line-height: 1.7; margin-bottom: 15px; }

.about-image { flex: 1; min-width: 280px; position: relative; }
.about-image img { width: 100%; border-radius: 12px; }

.experience-badge {
    position: absolute;
    bottom: -15px;
    right: 20px;
    background: #0056b3;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
}

.experience-badge .number { display: block; font-size: 1.8rem; font-weight: 800; }
.experience-badge .text { font-size: 12px; }

/* ── ALIADOS ── */
.partners-section { padding: 40px 5%; background: #f8f8f8; text-align: center; }
.partners-title { font-size: 1.5rem; font-weight: 700; color: #0056b3; margin-bottom: 25px; }

.partners-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.partner-logo {
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    font-weight: 600;
    color: #444;
}

/* ── FOOTER ── */
footer { background: #003580; color: white; padding: 40px 5% 0; }
.footer-content { text-align: center; padding-bottom: 30px; }
.footer-content h2 { font-size: 1.8rem; margin-bottom: 10px; }
.footer-content p { color: #ccc; margin: 6px 0; font-size: 14px; }

.social-links { margin-top: 20px; }
.social-links a { color: white; font-size: 1.4rem; margin: 0 10px; text-decoration: none; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.2); text-align: center; padding: 15px 0; }
.footer-bottom p { color: #aaa; font-size: 13px; margin: 0; }

/* ── WHATSAPP FLOTANTE ── */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    z-index: 9999;
    transition: transform 0.3s;
}

.whatsapp-float i { font-size: 30px; }
.whatsapp-float span { display: none; }
.whatsapp-float:hover { transform: scale(1.1); background: #1ebe5d; }

/* ── RESPONSIVE MÓVIL ── */
@media (max-width: 768px) {
    .menu-toggle { display: block; }

    nav {
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
    }

    nav.open { height: auto; }

    nav ul {
        flex-direction: column;
        height: auto;
        width: 100%;
        padding: 10px 0;
    }

    nav > ul > li {
        width: 100%;
        height: auto;
        padding: 10px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .dropdown-menu,
    .mega-menu {
        position: static;
        box-shadow: none;
        min-width: unset;
        border-top: none;
        flex-direction: column;
    }

    .has-dropdown:hover > .dropdown-menu,
    .has-mega:hover > .mega-menu { display: block; }

    .hero { min-height: 450px; margin-bottom: -30px; }

    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p { font-size: 0.95rem; }
    .hero-content { padding: 0 20px 60px; }

    .trust-indicators { gap: 8px; }
    .trust-indicators span { font-size: 11px; padding: 5px 10px; }

    .search-container {
        width: 95%;
        padding: 15px;
        border-radius: 10px;
    }

    .search-form { flex-direction: column; gap: 12px; }

    .search-input-group {
        width: 100%;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px 12px;
    }

    .search-divider { display: none; }

    .btn-search { width: 100%; padding: 14px; font-size: 15px; }

    .offers-grid { grid-template-columns: 1fr; }
    .about-content { flex-direction: column; }

    .hero-content h1 { font-size: 1.8rem; }
}
