/*
 * Interlomas Online - Glamour Design System
 * Bling Bling Style - Vibrant & Luxurious
 */

/* ==========================================
   CSS VARIABLES - GLAMOUR PALETTE
   ========================================== */
:root {
    /* Primary Colors - Pink & Gold */
    --pink: #E91E8A;
    --pink-light: #FF4DA6;
    --pink-dark: #C41872;
    --gold: #FFD700;
    --gold-light: #FFE44D;
    --rose-gold: #E8B4B8;

    /* Gradients */
    --gradient-pink: linear-gradient(135deg, #E91E8A 0%, #FF6B9D 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --gradient-glamour: linear-gradient(135deg, #E91E8A 0%, #FF6B6B 50%, #FFD700 100%);
    --gradient-shine: linear-gradient(135deg, #fff 0%, #f8f8f8 50%, #fff 100%);

    /* Neutrals */
    --black: #2D2D2D;
    --white: #ffffff;
    --gray-100: #FAFAFA;
    --gray-200: #F5F5F5;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;

    /* Fonts */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-sans: 'Poppins', 'Inter', -apple-system, sans-serif;

    /* Layout */
    --max-width: 1200px;
    --header-height: 85px;
    --transition: 0.3s ease;
    --shadow: 0 10px 40px rgba(233, 30, 138, 0.15);
    --shadow-gold: 0 10px 40px rgba(255, 215, 0, 0.3);
}

/* ==========================================
   RESET - STRICT
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==========================================
   IMAGES - BULLETPROOF
   ========================================== */
img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Contenedor de imagen que NUNCA se rompe */
.img-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--gray-100);
}

.img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Aspect ratios fijos */
.img-container.ratio-16-9 { padding-bottom: 56.25%; }
.img-container.ratio-4-3 { padding-bottom: 75%; }
.img-container.ratio-1-1 { padding-bottom: 100%; }
.img-container.ratio-3-4 { padding-bottom: 133.33%; }

/* ==========================================
   LAYOUT BASE
   ========================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

main {
    min-height: calc(100vh - 300px);
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.3;
    color: var(--black);
    word-wrap: break-word;
}

h1 { font-size: clamp(1.75rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
    word-wrap: break-word;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* ==========================================
   HEADER - FIXED
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 1) 25%,
        rgba(255, 255, 255, 0.9) 35%,
        rgba(233, 30, 138, 0.9) 50%,
        rgba(233, 30, 138, 0.95) 65%,
        rgba(255, 107, 157, 0.95) 100%
    );
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.header.scrolled {
    box-shadow: 0 4px 25px rgba(233, 30, 138, 0.25);
}

.header > .container {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo img {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
}

/* Navigation */
.nav {
    display: none;
    align-items: center;
    gap: 30px;
}

@media (min-width: 992px) {
    .nav { display: flex; }
}

/* Hide nav on mobile - only show hamburger */
@media (max-width: 991px) {
    .nav {
        display: none !important;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links > li {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-link:hover {
    color: var(--gold);
}

.header.scrolled .nav-link {
    color: var(--white);
}

.header.scrolled .nav-link:hover {
    color: var(--gold);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-dropdown-toggle i {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

/* Invisible bridge to connect link to dropdown menu */
.nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 25px;
    background: transparent;
}

.nav-dropdown-toggle {
    position: relative;
}

/* Desktop dropdown - hidden by default, shown on hover */
.header .nav .nav-links .nav-dropdown .nav-dropdown-menu,
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 180px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(233, 30, 138, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    padding: 10px 0;
    z-index: 1001;
    list-style: none !important;
    list-style-type: none !important;
    margin: 0;
    display: block;
}

/* Ensure dropdown items have no bullets */
.nav-dropdown-menu,
.nav-dropdown-menu li,
.nav-dropdown-menu a {
    list-style: none !important;
    list-style-type: none !important;
}

ul.nav-dropdown-menu {
    list-style: none !important;
    padding-left: 0 !important;
}

ul.nav-dropdown-menu > li {
    list-style: none !important;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--white);
}

/* Show dropdown on hover */
.nav-dropdown:hover > .nav-dropdown-menu,
.header .nav .nav-links .nav-dropdown:hover > .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--black);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: linear-gradient(135deg, #FFF5F8 0%, #FFF 100%);
    color: var(--pink);
    padding-left: 25px;
}

.nav-dropdown-menu a i {
    color: var(--pink);
    font-size: 0.9rem;
    width: 20px;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-phone {
    font-size: 0.85rem;
    color: var(--white);
    display: none;
}

@media (min-width: 1100px) {
    .header-phone { display: block; }
}

.header.scrolled .header-phone {
    color: var(--white);
}

/* Mobile Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
}

@media (min-width: 992px) {
    .menu-toggle { display: none; }
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.header.scrolled .menu-toggle span {
    background: var(--white);
}

/* Hamburger animation */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: var(--white);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: var(--white);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--gradient-pink);
    padding: 90px 25px 30px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    right: 0;
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 25px;
    right: 20px;
    color: var(--white);
    font-size: 1.75rem;
    cursor: pointer;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav a {
    display: block;
    padding: 18px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a:active {
    color: var(--gold);
    padding-left: 10px;
}

/* Mobile Dropdown */
.mobile-dropdown {
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-dropdown-toggle i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.mobile-dropdown.active .mobile-dropdown-toggle i {
    transform: rotate(180deg);
}

.mobile-dropdown-toggle:hover,
.mobile-dropdown-toggle:active {
    color: var(--gold);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 15px;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 200px;
}

.mobile-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.mobile-dropdown-menu a:last-child {
    border-bottom: none;
}

.mobile-dropdown-menu a:hover,
.mobile-dropdown-menu a:active {
    color: var(--gold);
    padding-left: 10px;
}

.mobile-dropdown-menu a i {
    font-size: 0.9rem;
    width: 20px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-pink);
    color: var(--white);
    border: none;
    box-shadow: 0 8px 25px rgba(233, 30, 138, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(233, 30, 138, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--pink);
}

.btn-outline-dark {
    background: transparent;
    color: var(--pink);
    border-color: var(--pink);
}

.btn-outline-dark:hover {
    background: var(--gradient-pink);
    color: var(--white);
    border-color: transparent;
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--black);
    border: none;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.5);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.7rem;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 0.85rem;
}

/* ==========================================
   HERO - CONTROLLED HEIGHT
   ========================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider .swiper,
.hero-slider .swiper-wrapper,
.hero-slider .swiper-slide {
    width: 100%;
    height: 100%;
}

.hero-slider .swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slider .swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(233, 30, 138, 0.4) 0%, rgba(255, 107, 157, 0.3) 50%, rgba(255, 215, 0, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 20px;
}

.hero-eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero h1 {
    color: var(--white);
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   SEARCH BAR
   ========================================== */
.search-bar {
    background: var(--white);
    padding: 30px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    box-shadow: 0 15px 50px rgba(233, 30, 138, 0.15);
    border-radius: 20px;
}

.search-bar-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    align-items: end;
}

.search-bar label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pink);
    font-weight: 600;
    margin-bottom: 8px;
}

.search-bar select,
.search-bar input {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.9rem;
    border: 2px solid var(--gray-200);
    background: var(--gray-100);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.search-bar select:focus,
.search-bar input:focus {
    outline: none;
    border-color: var(--pink);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(233, 30, 138, 0.1);
}

/* ==========================================
   PROPERTY CARDS - BULLETPROOF & GLAMOROUS
   ========================================== */
.property-card {
    background: var(--white);
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(233, 30, 138, 0.2);
}

/* Imagen SIEMPRE controlada */
.property-card-image {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 ratio */
    overflow: hidden;
    background: var(--gray-200);
}

.property-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-card-image img {
    transform: scale(1.08);
}

.property-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-pink);
    color: var(--white);
    padding: 8px 16px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    z-index: 2;
}

.property-card-price {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--white);
    color: var(--pink);
    padding: 10px 18px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.property-card-body {
    padding: 20px 25px;
}

.property-card-location {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pink);
    font-weight: 600;
    margin-bottom: 8px;
}

.property-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--black);
}

.property-card-title a:hover {
    color: var(--pink);
}

.property-card-features {
    display: flex;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
    font-size: 0.85rem;
    color: var(--gray-500);
    flex-wrap: wrap;
}

.property-card-features span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-card-features i {
    color: var(--pink);
}

/* ==========================================
   GRID SYSTEM
   ========================================== */
.grid {
    display: grid;
    gap: 25px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   SECTION HEADER
   ========================================== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.section-header .eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--pink);
    font-weight: 600;
    margin-bottom: 12px;
}

.section-header h2 {
    margin-bottom: 15px;
    background: var(--gradient-glamour);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.05rem;
}

/* ==========================================
   CARDS
   ========================================== */
.card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(233, 30, 138, 0.12);
}

.card i {
    color: var(--pink);
}

.card-dark {
    background: var(--gradient-pink);
    color: var(--white);
}

/* ==========================================
   FORMS
   ========================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pink);
    font-weight: 600;
    margin-bottom: 10px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-family: inherit;
    border: 2px solid var(--gray-200);
    background: var(--gray-100);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--pink);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(233, 30, 138, 0.1);
}

textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23E91E8A' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
    cursor: pointer;
}

/* ==========================================
   ALERTS
   ========================================== */
.alert {
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-radius: 15px;
}

.alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
    color: #166534;
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fecaca;
    color: #991b1b;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: #000;
    color: var(--white);
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.footer-title {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--gray-400);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--pink-light);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-bottom: 10px;
}

.footer-contact i {
    color: var(--pink-light);
    width: 16px;
    margin-top: 3px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--gradient-pink);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: var(--gray-500);
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom a {
    color: var(--gray-400);
}

.footer-bottom a:hover {
    color: var(--pink-light);
}

/* ==========================================
   PAGE: CONTACT
   ========================================== */
.contact-section {
    padding: 120px 0 60px;
    min-height: 100vh;
    background: linear-gradient(135deg, #FFF5F8 0%, #FFF 50%, #FFFAF0 100%);
}

.contact-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 45px 60px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(233, 30, 138, 0.1);
}

@media (max-width: 576px) {
    .contact-card {
        padding: 25px;
        border-radius: 20px;
    }
}

.contact-title {
    text-align: center;
    margin-bottom: 8px;
    background: var(--gradient-glamour);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 35px;
}

.tipo-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tipo-option {
    flex: 1;
    min-width: 100px;
}

.tipo-option input {
    display: none;
}

.tipo-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 12px;
    border: 2px solid var(--gray-200);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
}

.tipo-option label i {
    font-size: 1.4rem;
    color: var(--gray-400);
}

.tipo-option input:checked + label {
    border-color: var(--pink);
    background: linear-gradient(135deg, #FFF5F8 0%, #FFF 100%);
    box-shadow: 0 5px 20px rgba(233, 30, 138, 0.15);
}

.tipo-option input:checked + label i {
    color: var(--pink);
}

/* ==========================================
   PAGE: SEARCH
   ========================================== */
.search-header {
    background: var(--gradient-pink);
    color: var(--white);
    padding: 50px 0;
    margin-top: var(--header-height);
}

.search-header h1 {
    color: var(--white);
    margin-bottom: 8px;
}

.search-header p {
    color: rgba(255,255,255,0.85);
    margin: 0;
}

.search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 40px 0;
}

@media (max-width: 992px) {
    .search-layout {
        grid-template-columns: 1fr;
    }
}

.search-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    align-self: start;
}

.search-results-count {
    margin-bottom: 20px;
    color: var(--gray-500);
}

/* ==========================================
   PAGE: DETAIL
   ========================================== */
.detail-page {
    padding-top: var(--header-height);
}

/* Gallery con altura fija */
.detail-gallery {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 300px;
    max-height: 500px;
    overflow: hidden;
    background: var(--gray-200);
}

.detail-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-price {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--white);
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 2;
}

.detail-price span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pink);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding: 40px 0;
}

@media (max-width: 992px) {
    .detail-content {
        grid-template-columns: 1fr;
    }
}

.detail-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #FFF5F8 0%, #FFF 100%);
    border-radius: 20px;
    margin-bottom: 30px;
}

@media (max-width: 576px) {
    .detail-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

.detail-feature {
    text-align: center;
}

.detail-feature i {
    font-size: 1.75rem;
    color: var(--pink);
    margin-bottom: 10px;
    display: block;
}

.detail-feature strong {
    display: block;
    font-size: 1.3rem;
    color: var(--black);
}

.detail-feature span {
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
    font-weight: 500;
}

/* ==========================================
   BADGES
   ========================================== */
.badge {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--gray-200);
    color: var(--gray-600);
    border-radius: 50px;
}

.badge-primary { background: var(--gradient-pink); color: var(--white); }
.badge-gold { background: var(--gradient-gold); color: var(--black); }
.badge-success { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); color: var(--white); }
.badge-warning { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: var(--white); }
.badge-info { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: var(--white); }

/* ==========================================
   UTILITIES
   ========================================== */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-pink { color: var(--pink); }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.1em; }

.bg-light { background: linear-gradient(135deg, #FFF5F8 0%, #FFF 50%, #FFFAF0 100%); }
.bg-dark { background: var(--gradient-pink); color: var(--white); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* ==========================================
   SCROLL TO TOP
   ========================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-pink);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 8px 25px rgba(233, 30, 138, 0.4);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(233, 30, 138, 0.5);
}

/* ==========================================
   RESPONSIVE IMAGES IN ABOUT SECTION
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.about-image {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    background: var(--gray-200);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(233, 30, 138, 0.15);
}

.about-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   SWIPER OVERRIDES
   ========================================== */
.swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background: var(--pink);
    opacity: 1;
}

/* ==========================================
   SPARKLE EFFECTS - Diamond Light Reflections
   ========================================== */

/* Keyframe animations */
@keyframes sparkle-shine {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes sparkle-burst {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    25% {
        opacity: 1;
        transform: scale(1) rotate(45deg);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.5) rotate(90deg);
    }
    75% {
        opacity: 1;
        transform: scale(1) rotate(135deg);
    }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes glow-soft {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Sparkle container */
.sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 3;
}

/* Sparkles in lighter backgrounds */
.contact-section .sparkle,
.bg-light .sparkle {
    box-shadow:
        0 0 10px 2px rgba(233, 30, 138, 0.6),
        0 0 20px 4px rgba(255, 107, 157, 0.3),
        0 0 30px 6px rgba(255, 215, 0, 0.2);
}

.contact-section .sparkle::before,
.contact-section .sparkle::after,
.bg-light .sparkle::before,
.bg-light .sparkle::after {
    background: linear-gradient(to bottom,
        transparent,
        rgba(233, 30, 138, 0.5) 40%,
        rgba(233, 30, 138, 0.8) 50%,
        rgba(233, 30, 138, 0.5) 60%,
        transparent
    );
}

/* Sparkles in detail gallery */
.detail-gallery .sparkles {
    z-index: 1;
}

.detail-gallery .sparkle {
    box-shadow:
        0 0 15px 3px rgba(255, 255, 255, 0.9),
        0 0 25px 5px rgba(255, 215, 0, 0.5),
        0 0 35px 7px rgba(233, 30, 138, 0.3);
}

/* Sparkles in search header */
.search-header .sparkle {
    box-shadow:
        0 0 12px 2px rgba(255, 255, 255, 0.8),
        0 0 22px 4px rgba(255, 215, 0, 0.4),
        0 0 32px 6px rgba(255, 255, 255, 0.2);
}

/* Sparkles in footer */
.footer .sparkles {
    z-index: 1;
}

.footer .sparkle {
    box-shadow:
        0 0 10px 2px rgba(255, 255, 255, 0.7),
        0 0 20px 4px rgba(233, 30, 138, 0.4),
        0 0 30px 6px rgba(255, 215, 0, 0.2);
}

/* Individual sparkle - 4-point star shape */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow:
        0 0 10px 2px rgba(255, 255, 255, 0.8),
        0 0 20px 4px rgba(255, 215, 0, 0.4),
        0 0 30px 6px rgba(233, 30, 138, 0.2);
    animation: sparkle-shine 3s ease-in-out infinite;
}

/* Cross/star burst effect */
.sparkle::before,
.sparkle::after {
    content: '';
    position: absolute;
    background: linear-gradient(to bottom,
        transparent,
        rgba(255, 255, 255, 0.8) 40%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 255, 255, 0.8) 60%,
        transparent
    );
}

.sparkle::before {
    width: 2px;
    height: 20px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.sparkle::after {
    width: 20px;
    height: 2px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Position and timing for each sparkle */
.sparkle:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; animation-duration: 2.5s; }
.sparkle:nth-child(2) { top: 25%; left: 85%; animation-delay: 0.8s; animation-duration: 3s; }
.sparkle:nth-child(3) { top: 60%; left: 15%; animation-delay: 1.5s; animation-duration: 2.8s; }
.sparkle:nth-child(4) { top: 70%; left: 90%; animation-delay: 0.3s; animation-duration: 3.2s; }
.sparkle:nth-child(5) { top: 40%; left: 5%; animation-delay: 2s; animation-duration: 2.6s; }
.sparkle:nth-child(6) { top: 80%; left: 30%; animation-delay: 1.2s; animation-duration: 3.5s; }
.sparkle:nth-child(7) { top: 20%; left: 60%; animation-delay: 0.5s; animation-duration: 2.4s; }
.sparkle:nth-child(8) { top: 50%; left: 75%; animation-delay: 1.8s; animation-duration: 3s; }

/* Larger sparkle variant */
.sparkle-diamond {
    width: 6px;
    height: 6px;
    box-shadow:
        0 0 15px 3px rgba(255, 255, 255, 0.9),
        0 0 30px 6px rgba(255, 215, 0, 0.5),
        0 0 45px 9px rgba(233, 30, 138, 0.3);
    animation: sparkle-burst 4s ease-in-out infinite;
}

.sparkle-diamond::before {
    height: 30px;
}

.sparkle-diamond::after {
    width: 30px;
}

/* Shimmer effect on buttons */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 2.5s ease-in-out infinite;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: shimmer 2s ease-in-out infinite;
}

/* Hero title glow */
.hero h1 {
    text-shadow:
        0 0 10px rgba(255, 215, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2);
}

/* Subtle glow on contact card */
.contact-card {
    position: relative;
}

/* Property card subtle glow on hover */
.property-card {
    position: relative;
    z-index: 1;
}

.property-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    box-shadow: 0 0 0 0 rgba(233, 30, 138, 0);
    transition: box-shadow 0.3s ease;
    pointer-events: none;
}

.property-card:hover::after {
    box-shadow:
        0 0 30px rgba(233, 30, 138, 0.2),
        0 0 60px rgba(255, 215, 0, 0.1);
}

/* Logo subtle glow */
.logo-text {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Header shimmer line */
.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 50%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(233, 30, 138, 0.5),
        rgba(255, 255, 255, 0.9),
        rgba(233, 30, 138, 0.5),
        transparent
    );
    animation: shimmer 3s ease-in-out infinite;
}

.header.scrolled::after {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        rgba(255, 255, 255, 0.9),
        rgba(255, 255, 255, 0.5),
        transparent
    );
}

/* Input focus sparkle */
.form-control:focus {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* Search bar subtle shimmer */
.search-bar {
    position: relative;
    overflow: hidden;
}

.search-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
    border-radius: 20px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .sparkle,
    .sparkle::before,
    .sparkle::after,
    .btn-primary::before,
    .btn-gold::before,
    .header::after,
    .search-bar::after {
        animation: none;
    }
}

/* Reduce sparkles on mobile for performance */
@media (max-width: 768px) {
    .sparkle:nth-child(n+5) {
        display: none;
    }

    .sparkle::before,
    .sparkle::after {
        height: 12px;
        width: 12px;
    }

    .sparkle-diamond::before,
    .sparkle-diamond::after {
        height: 18px;
        width: 18px;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE FIRST
   ========================================== */

/* Tablet - 768px */
@media (max-width: 768px) {
    :root {
        --header-height: 75px;
    }

    .section {
        padding: 40px 0;
    }

    .container {
        padding: 0 15px;
    }

    /* Hero */
    .hero {
        height: 80vh;
        min-height: 400px;
        max-height: 600px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Search Bar */
    .search-bar {
        margin-top: -30px;
        padding: 20px;
        border-radius: 15px;
    }

    .search-bar-inner {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Property Cards */
    .property-card {
        border-radius: 15px;
    }

    .property-card-body {
        padding: 15px 18px;
    }

    .property-card-title {
        font-size: 1rem;
    }

    .property-card-features {
        gap: 10px;
        font-size: 0.8rem;
    }

    /* Section Header */
    .section-header {
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    /* About Grid */
    .about-grid {
        gap: 30px;
    }

    /* Cards */
    .card {
        padding: 20px;
        border-radius: 15px;
    }

    /* Detail Page */
    .detail-gallery {
        height: 40vh;
        min-height: 250px;
        max-height: 350px;
    }

    .detail-price {
        padding: 12px 18px;
        border-radius: 12px;
    }

    .detail-price span {
        font-size: 1.25rem;
    }

    .detail-features {
        padding: 20px;
        border-radius: 15px;
        gap: 15px;
    }

    .detail-feature i {
        font-size: 1.5rem;
    }

    .detail-feature strong {
        font-size: 1.1rem;
    }

    /* Contact */
    .contact-section {
        padding: 100px 0 40px;
    }

    .contact-card {
        padding: 35px 30px;
        border-radius: 20px;
    }

    .contact-title {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 50px 0 25px;
    }

    .footer-grid {
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.75rem;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 0.8rem;
    }
}

/* Mobile Small - 576px */
@media (max-width: 576px) {
    :root {
        --header-height: 70px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1.15rem; }
    h4 { font-size: 1rem; }

    .section {
        padding: 35px 0;
    }

    /* Hero */
    .hero {
        height: 70vh;
        min-height: 350px;
        max-height: 500px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-eyebrow {
        font-size: 0.7rem;
        letter-spacing: 0.15em;
    }

    .hero p {
        font-size: 0.9rem;
    }

    /* Search Bar */
    .search-bar {
        margin-top: -25px;
        padding: 18px 15px;
    }

    .search-bar label {
        font-size: 0.65rem;
    }

    .search-bar select,
    .search-bar input {
        padding: 12px 14px;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    /* Property Cards */
    .property-card {
        border-radius: 12px;
    }

    .property-card-badge {
        padding: 6px 12px;
        font-size: 0.65rem;
    }

    .property-card-price {
        padding: 8px 14px;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .property-card-body {
        padding: 12px 15px;
    }

    .property-card-location {
        font-size: 0.7rem;
    }

    .property-card-title {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .property-card-features {
        padding-top: 12px;
        font-size: 0.75rem;
        gap: 8px;
    }

    /* Section Header */
    .section-header .eyebrow {
        font-size: 0.65rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    /* About */
    .about-grid {
        gap: 25px;
    }

    .about-image {
        border-radius: 15px;
    }

    /* Cards */
    .card {
        padding: 18px;
        border-radius: 12px;
    }

    .card h4 {
        font-size: 1rem;
    }

    .card p {
        font-size: 0.85rem;
    }

    /* Forms */
    .form-control {
        padding: 12px 15px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .form-label {
        font-size: 0.7rem;
    }

    /* Tipo Selector */
    .tipo-selector {
        gap: 8px;
    }

    .tipo-option label {
        padding: 14px 10px;
        border-radius: 12px;
        font-size: 0.8rem;
    }

    .tipo-option label i {
        font-size: 1.2rem;
    }

    /* Detail Page */
    .detail-gallery {
        height: 35vh;
        min-height: 220px;
        max-height: 300px;
    }

    .detail-price {
        bottom: 15px;
        left: 15px;
        padding: 10px 15px;
    }

    .detail-price span {
        font-size: 1.1rem;
    }

    .detail-features {
        padding: 18px 15px;
        gap: 12px;
    }

    .detail-feature i {
        font-size: 1.25rem;
        margin-bottom: 6px;
    }

    .detail-feature strong {
        font-size: 1rem;
    }

    .detail-feature span {
        font-size: 0.65rem;
    }

    /* Search Page */
    .search-header {
        padding: 35px 0;
    }

    .search-header h1 {
        font-size: 1.35rem;
    }

    .search-layout {
        padding: 25px 0;
        gap: 20px;
    }

    .search-sidebar {
        position: static;
    }

    /* Contact */
    .contact-section {
        padding: 90px 0 30px;
    }

    .contact-card {
        padding: 20px 15px;
        border-radius: 15px;
    }

    .contact-title {
        font-size: 1.35rem;
    }

    .contact-subtitle {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    /* Alerts */
    .alert {
        padding: 15px;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    /* Badges */
    .badge {
        padding: 6px 12px;
        font-size: 0.65rem;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-brand p {
        font-size: 0.85rem;
    }

    .footer-title {
        font-size: 0.65rem;
        margin-bottom: 15px;
    }

    .footer-links a {
        padding: 6px 0;
        font-size: 0.85rem;
    }

    .footer-contact p {
        font-size: 0.85rem;
    }

    .footer-social a {
        width: 38px;
        height: 38px;
    }

    .footer-bottom {
        padding-top: 20px;
        font-size: 0.75rem;
    }

    /* Buttons */
    .btn {
        padding: 11px 20px;
        font-size: 0.7rem;
        border-radius: 40px;
    }

    .btn-lg {
        padding: 13px 25px;
        font-size: 0.75rem;
    }

    .btn-sm {
        padding: 9px 16px;
        font-size: 0.65rem;
    }

    /* Scroll to Top */
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    /* Header */
    .logo-text {
        font-size: 1.1rem;
    }

    .logo img {
        height: 45px;
    }
}

/* Extra Small - 375px */
@media (max-width: 375px) {
    .container {
        padding: 0 12px;
    }

    .hero h1 {
        font-size: 1.35rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .search-bar {
        padding: 15px 12px;
    }

    .property-card-price {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .contact-card {
        padding: 18px 12px;
    }

    .tipo-option label {
        padding: 12px 8px;
        font-size: 0.75rem;
    }

    .card {
        padding: 15px;
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 80px 0 40px;
    }

    .hero-content {
        padding-top: 20px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }

    .property-card:hover {
        transform: none;
    }

    .card:hover {
        transform: none;
    }

    .scroll-top:hover {
        transform: none;
    }

    .footer-social a:hover {
        transform: none;
    }
}

/* ==========================================
   YOUTUBE BUTTON ANIMATION
   ========================================== */
@keyframes pulse-youtube {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(233, 30, 138, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(233, 30, 138, 0.6), 0 0 30px rgba(255, 215, 0, 0.3);
    }
}

.youtube-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(233, 30, 138, 0.6), 0 0 40px rgba(255, 215, 0, 0.4) !important;
    animation: none;
}

.youtube-btn:active {
    transform: translateY(0) scale(1);
}
