/* ============================================
   ECOMMERCE INMOBILIARIO - ESTILOS RESPONSIVOS
   ============================================ */

:root {
    /* Colors */
    --primary-color: #f18b1e  ;
    --secondary-color: #ffb260;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --dark-color: #1f2937;
    --light-gray: #f3f4f6;
    --medium-gray: #6b7280;
    --border-color: #e5e7eb;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Archivo Narrow', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

/* Scope all styles to prevent conflicts with parent container */
.main-container,
.main-container * {
    box-sizing: border-box;
}

/* Only apply body styles within our container scope */
.main-container {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-gray);
    margin-top: 50px;
}

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

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

a:hover {
    color: var(--secondary-color);
}

/* ============================================
   HERO BANNER
   ============================================ */

.hero-banner {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit:contain;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 1;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-xl) var(--spacing-lg);
    color: var(--white);
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background-color: var(--success-color);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-xs);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.125rem;
    font-weight: 600;
}

.highlight-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* ============================================
   MAIN CONTAINER
   ============================================ */

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) 0;
    font-size: 0.875rem;
    color: var(--medium-gray);
    flex-wrap: wrap;
}

.breadcrumb a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--medium-gray);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb i.fa-chevron-right {
    font-size: 0.75rem;
}

.breadcrumb span {
    color: var(--dark-color);
    font-weight: 500;
}

/* ============================================
   CONTENT GRID
   ============================================ */

.content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

/* ============================================
   PROPERTY CARDS
   ============================================ */

.property-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.property-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.gallery-card {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.property-main-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.property-tags {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.tag-featured {
    background: rgba(245, 158, 11, 0.95);
    color: var(--white);
}

.tag-industrial {
    background: rgba(30, 58, 138, 0.95);
    color: var(--white);
}

.card-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 3px solid var(--primary-color);
}

.card-title i {
    color: var(--primary-color);
}

/* ============================================
   QUICK INFO CARD
   ============================================ */

.quick-info-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-md);
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: background var(--transition-fast);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.info-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 400;
}

.info-value {
    font-size: 1.125rem;
    font-weight: 700;
}

/* ============================================
   FEATURES GRID
   ============================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--light-gray);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition-fast);
}

.feature-item:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 24px;
}

.feature-item:hover i {
    color: var(--white);
}

.feature-item span {
    font-weight: 500;
}

/* ============================================
   AREAS TABLE
   ============================================ */

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.areas-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-secondary);
}

.areas-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.areas-table th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 700;
    font-size: 1rem;
}

.areas-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.areas-table tbody tr:hover {
    background: var(--light-gray);
}

.areas-table td {
    padding: var(--spacing-md);
    font-size: 0.95rem;
}

.areas-table td i {
    margin-right: var(--spacing-xs);
    color: var(--primary-color);
}

/* ============================================
   FLOOR PLAN
   ============================================ */

.floor-plan-wrapper {
    background: var(--light-gray);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    text-align: center;
}

.floor-plan-image {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* ============================================
   LOCATION & CONTACT INFO
   ============================================ */

.location-info,
.contact-info-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
	padding: 5px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.location-item,
.contact-item {
    display: flex;
    gap: var(--spacing-md);
    padding: 5px;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    align-items: flex-start;
}

.location-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.25rem;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.contact-item a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.125rem;
}

.contact-item p {
    color: var(--medium-gray);
    margin: 0;
}

/* ============================================
   VIDEO & SLIDER WRAPPERS
   ============================================ */

.video-wrapper,
.slider-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #000;
}

.video-wrapper iframe,
.slider-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   SIDEBAR
   ============================================ */

.property-sidebar {
    position: sticky;
    top: var(--spacing-lg);
    height: fit-content;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 0;
    margin-bottom: var(--spacing-lg);
}

.sidebar-card h3 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--dark-color);
}

.sidebar-card h3 i {
    color: var(--primary-color);
}

/* ============================================
   PRICE CARD
   ============================================ */

.price-card {
    background: linear-gradient(135deg, #f18b1e, #ffb260);
    color: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(241, 139, 30, 0.35);
    margin-bottom: var(--spacing-md);
}

.price-header h3 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 0;
}

.price-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: var(--spacing-md) 0;
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.price-unit {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

.price-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.price-detail-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    line-height: 1.5;
}

.price-detail-item i {
    margin-top: 0.15rem;
    opacity: 0.9;
}

/* ============================================
   CTA BUTTONS
   ============================================ */

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    width: 100%;
    padding: var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: var(--spacing-sm);
}

.cta-button.primary {
    background: var(--white);
    color: var(--primary-color);
}

.cta-button.primary:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   AGENT CARD
   ============================================ */

.agent-card {
    padding: 15px;
}

.agent-info p {
    color: var(--medium-gray);
    margin-bottom: var(--spacing-md);
}

.contact-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.agent-contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.agent-contact-btn i {
    font-size: 1.5rem;
}

.phone-btn {
    background: var(--primary-color);
    color: var(--white);
}

.phone-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.whatsapp-btn {
    background: #25d366;
    color: var(--white);
}

.whatsapp-btn:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}



/* ============================================
   LATERAL INCLUDE
   ============================================ */

.lateral-include {
    padding: 0;
    overflow: hidden;
}

/* ============================================
   RESPONSIVE DESIGN - TABLET
   ============================================ */

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .property-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--spacing-lg);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .quick-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */

@media (max-width: 768px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
    }
    
    .main-container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-banner {
        height: 50vh;
        min-height: 300px;
    }
    
    .hero-content {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-highlights {
        gap: var(--spacing-md);
    }
    
    .highlight-item {
        font-size: 0.95rem;
    }
    
    .highlight-item i {
        font-size: 1.25rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
        padding: var(--spacing-sm) 0;
    }
    
    .property-card {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    .card-title {
        font-size: 1.25rem;
        margin-bottom: 5px;
    }
    
    .quick-info-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .property-sidebar {
        grid-template-columns: 1fr;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    
    .contact-buttons-grid {
        grid-template-columns: 1fr;
    }
    
    /* Responsive Table for Mobile */
    .areas-table {
        font-size: 0.875rem;
    }
    
    .areas-table thead {
        display: none;
    }
    
    .areas-table tbody tr {
        display: block;
        margin-bottom: var(--spacing-md);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        overflow: hidden;
    }
    
    .areas-table td {
        display: flex;
        justify-content: space-between;
        padding: var(--spacing-sm) var(--spacing-md);
        border-bottom: 1px solid var(--border-color);
    }
    
    .areas-table td:last-child {
        border-bottom: none;
    }
    
    .areas-table td:before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--dark-color);
    }
    
    .areas-table tbody tr:first-child {
        background: var(--light-gray);
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   RESPONSIVE DESIGN - SMALL MOBILE
   ============================================ */

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-highlights {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }
    
    .property-tags {
        flex-direction: column;
    }
    
    .card-title {
        font-size: 1.125rem;
        flex-wrap: wrap;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .cta-button,
    .agent-contact-btn {
        font-size: 0.95rem;
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .hero-banner,
    .breadcrumb,
    .property-sidebar,
    .share-card,
    .cta-button,
    .agent-contact-btn {
        display: none;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .property-card {
        box-shadow: none;
        border: 1px solid var(--border-color);
        page-break-inside: avoid;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-card {
    animation: fadeIn 0.5s ease-out;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
.cta-button:focus,
.share-btn:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --medium-gray: #000;
    }
    
    .property-card {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   MOBILE PRICE CARD
   ============================================ */

.mobile-price-card {
    display: none;
    background: linear-gradient(135deg, #f18b1e, #ffb260);
    color: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(241, 139, 30, 0.35);
    margin-bottom: var(--spacing-md);
}

.mobile-price-header {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.6rem 1.25rem;
}

.mobile-price-tag {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.95;
}

.mobile-price-body {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.mobile-price-amount {
    display: flex;
    flex-direction: column;
}

.mobile-price-number {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.mobile-price-unit {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.mobile-price-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-price-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    backdrop-filter: blur(5px);
}

.mobile-price-detail i {
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 991px) {
    .mobile-price-card {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .mobile-price-body {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mobile-price-number {
        font-size: 2.25rem;
    }
    
    .mobile-price-info {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .mobile-price-detail {
        flex: 1;
        min-width: 140px;
    }
}