/* ==========================================================================
   GT INMOB APP - Modern Dark UI Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-primary: #0a0d14;
    --bg-secondary: #121824;
    --bg-card: rgba(20, 27, 41, 0.85);
    --bg-card-hover: rgba(28, 38, 58, 0.95);
    --bg-glass: rgba(18, 24, 36, 0.95);
    
    --accent-blue: #009bf2;
    --accent-blue-hover: #0082cc;
    --accent-cyan: #00d2ff;
    --accent-green: #25d366;
    --accent-gradient: linear-gradient(135deg, #009bf2 0%, #00d2ff 100%);
    --accent-gradient-gold: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
    
    --text-main: #f0f4f8;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --border-highlight: rgba(0, 155, 242, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 25px rgba(0, 155, 242, 0.25);
    --backdrop-blur: blur(16px);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout Utilities */
.container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Header & Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-brand img {
    height: 40px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-glow);
}

/* Mobile Toggle Hamburger Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    z-index: 1002;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.mobile-only-btn {
    display: none;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    z-index: 9999;
    transition: var(--transition);
}

.whatsapp-float img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.7);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    outline: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 155, 242, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 155, 242, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-highlight);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(0, 155, 242, 0.1);
    border-color: var(--accent-blue);
}

/* Hero Section with Responsive Cover Image */
.hero {
    position: relative;
    padding: 85px 0 65px;
    background: #0a0d14 url('../img/portadagtinmob.jpeg') center center / cover no-repeat;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 13, 20, 0.78) 0%,
        rgba(10, 13, 20, 0.50) 40%,
        rgba(10, 13, 20, 0.88) 85%,
        var(--bg-primary) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 155, 242, 0.20);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-highlight);
    border-radius: 50px;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3rem;
    letter-spacing: -1px;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
}

.hero p {
    font-size: 1.15rem;
    color: #e2e8f0;
    max-width: 680px;
    margin: 0 auto 32px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

/* Dual Category Search Filter Box */
.search-filter-box {
    background: var(--bg-card);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    max-width: 980px;
    margin: 0 auto;
}

.search-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background: rgba(0, 155, 242, 0.15);
    color: var(--accent-cyan);
    border: 1px solid var(--border-highlight);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) 140px;
    gap: 16px;
    align-items: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.form-control {
    background: rgba(10, 13, 20, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 155, 242, 0.2);
}

/* Listings Grid & Cards */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-glow);
}

.card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.badge-featured {
    background: rgba(255, 183, 3, 0.85);
    color: #000;
}

.badge-operation {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 155, 242, 0.85);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 8px;
}

.card-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-location {
    color: var(--text-muted);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.card-features {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Pricing Plans */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border-color: var(--accent-blue);
    background: linear-gradient(180deg, rgba(0, 155, 242, 0.15) 0%, var(--bg-card) 100%);
    transform: scale(1.03);
}

.popular-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: #fff;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.plan-name {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 50px 0 24px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-desc {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 320px;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive Breakpoints - Perfect Mobile & Tablet Support */
@media (max-width: 1080px) {
    .menu-toggle {
        display: flex; /* Enable hamburger icon for screens <= 1080px */
    }

    .nav-actions {
        display: none !important; /* Ocultar de la barra superior en móvil para evitar amontonamiento */
    }

    .nav-menu {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background: #0d121d;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 30px 24px;
        gap: 16px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.15rem;
        padding: 12px;
        border-radius: var(--radius-sm);
        display: block;
        background: rgba(255, 255, 255, 0.03);
    }

    .nav-link.active::after {
        display: none;
    }

    .mobile-only-btn {
        display: block;
    }

    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .search-form { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .hero { 
        padding: 45px 0 30px; 
        background-position: center 20%;
    }
    .hero h1 { font-size: 1.8rem; }
    .search-filter-box { padding: 16px; }
    .search-tabs { flex-wrap: wrap; }
    .tab-btn { flex: 1; text-align: center; }
    .pricing-card.popular { transform: none; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .whatsapp-float {
        width: 54px;
        height: 54px;
        bottom: 20px;
        right: 20px;
    }

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

@media (max-width: 480px) {
    .logo-brand span {
        font-size: 1.05rem;
    }
}
