/* ============================================
   INMOBILIARIA ONE - STYLES
   Based on OneSolution look & feel
   Dark theme with orange accents
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colores principales */
    --brand: #F39400;
    --brand-2: #ff9500;
    --brand-hover: #ff7300;

    /* Fondos */
    --bg: #111111;
    --bg-2: #1a1a1a;
    --bg-3: #222222;

    /* Textos */
    --fg: #ffffff;
    --fg-2: #e5e5e5;
    --muted: #999999;
    --muted-2: #666666;

    /* Efectos */
    --shadow: rgba(243, 148, 0, 0.2);
    --shadow-strong: rgba(243, 148, 0, 0.4);

    /* Espaciado */
    --container-width: 1240px;
    --section-padding: 6rem 0;
    --section-padding-mobile: 4rem 0;

    /* Tipografía */
    --font-family: 'Poppins', sans-serif;

    /* Layout */
    --topbar-height: 68px;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-family);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Títulos con marca visual (usando <span class="mark"></span>) */
.section-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.section-title h2 {
    line-height: 0.8;
}

.section-title .mark {
    width: 16px;
    height: 36px;
    background: var(--brand);
    border-radius: 99px;
    flex-shrink: 0;
    margin-top: 4px;
}

.section-title-center {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.section-title-center .mark {
    width: 16px;
    height: 36px;
    background: var(--brand);
    border-radius: 99px;
    flex-shrink: 0;
    margin-top: 4px;
}

.gradient-text {
    background: linear-gradient(
        135deg,
        var(--brand) 0%,
        var(--brand-2) 25%,
        #00a8ff 50%,
        var(--brand-2) 75%,
        var(--brand) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
    position: relative;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

/* Efecto de brillo en el texto con gradiente */
.gradient-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: textShine 3s infinite;
}

@keyframes textShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow-strong);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-secondary {
    background: transparent;
    color: var(--fg);
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: var(--brand);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    width: 100%;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(243, 148, 0, 0.1);
    transition: all 0.3s ease, top 0.3s ease;
}

.header.topbar-hidden {
    top: 0;
}

.header.scrolled {
    background: rgba(17, 17, 17, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text .brand {
    color: var(--brand);
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--fg-2);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--brand);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--brand);
}

.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    color: var(--fg);
    font-size: 1.5rem;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--bg-2);
    z-index: 2000;
    padding: 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(243, 148, 0, 0.2);
}

.mobile-close {
    color: var(--fg);
    font-size: 1.5rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-link {
    color: var(--fg-2);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--brand);
    padding-left: 0.5rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 160px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Background image - Descomenta y agrega tu imagen */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Imagen de fondo */
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: 1;
}

/* Overlay gradient para mejorar contraste */
.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(17, 17, 17, 0.85) 0%,
        rgba(26, 26, 26, 0.75) 50%,
        rgba(17, 17, 17, 0.9) 100%
    );
    z-index: 2;
}

.globe-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
    opacity: 0.15;
    z-index: 3;
}

/* Partículas decorativas adicionales */
.hero-background .particle {
    position: absolute;
    background: var(--brand);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.hero-background .particle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-background .particle:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.hero-background .particle:nth-child(3) {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 60%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-30px) scale(1.1);
        opacity: 0.15;
    }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.25; }
}

/* Particle Canvas */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

/* Gradient Orbs - Efectos visuales adicionales */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: orbFloat 20s infinite ease-in-out;
    pointer-events: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #F39400 0%, transparent 70%);
    top: 20%;
    right: 10%;
    animation-delay: 0s;
    z-index: 1;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #00a8ff 0%, transparent 70%);
    bottom: 20%;
    left: 15%;
    animation-delay: 7s;
    z-index: 1;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #ff9500 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
    z-index: 1;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.15;
    }
    33% {
        transform: translate(30px, -40px) scale(1.1);
        opacity: 0.2;
    }
    66% {
        transform: translate(-30px, 40px) scale(0.9);
        opacity: 0.1;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-align: center;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--fg-2);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(243, 148, 0, 0.05);
    border: 1px solid rgba(243, 148, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(243, 148, 0, 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--brand);
    box-shadow: 0 10px 30px rgba(243, 148, 0, 0.2);
    background: rgba(243, 148, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 0.5rem;
    transition: all 0.4s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(243, 148, 0, 0.5);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.4s ease;
}

.stat-item:hover .stat-label {
    color: var(--fg-2);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.875rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--brand), transparent);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   NOSOTROS SECTION
   ============================================ */
.nosotros {
    padding: var(--section-padding);
    background: var(--bg-2);
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.office-image {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-3);
    border: 2px dashed rgba(243, 148, 0, 0.3);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.section-title {
    font-size: clamp(1.875rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.section-text {
    font-size: 1.125rem;
    color: var(--fg-2);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.section-text strong {
    color: var(--brand);
    font-weight: 600;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
}

.feature-item i {
    color: var(--brand);
    font-size: 1.25rem;
}

/* ============================================
   SERVICIOS SECTION
   ============================================ */
.servicios {
    padding: var(--section-padding);
    background: var(--bg);
}

.section-header-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-header-image {
    width: 100%;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 4rem;
    box-shadow: 0 20px 60px rgba(243, 148, 0, 0.2);
    position: relative;
}

.section-header-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(17, 17, 17, 0.3) 100%);
    pointer-events: none;
}

.section-title-center {
    font-size: clamp(1.875rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-subtitle-center {
    font-size: 1.125rem;
    color: var(--fg-2);
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: var(--bg-2);
    padding: 0;
    border-radius: 20px;
    border: 1px solid rgba(243, 148, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
}

.service-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(17, 17, 17, 0.4) 100%);
}

.service-content {
    padding: 0 2.5rem 2.5rem 2.5rem;
    flex: 1;
}

/* Efecto de brillo en hover */
.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(243, 148, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand);
    box-shadow: 0 20px 40px var(--shadow);
    background: linear-gradient(135deg, var(--bg-2) 0%, rgba(243, 148, 0, 0.05) 100%);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.875rem;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 8px 20px rgba(243, 148, 0, 0.3);
}

.service-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-radius: 16px;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(243, 148, 0, 0.5);
}

.service-card:hover .service-icon::after {
    opacity: 1;
}

.service-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--fg);
}

.service-description {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
}

.demo-illustration {
    margin-top: 4rem;
}

.illustration-placeholder {
    width: 100%;
    min-height: 300px;
    background: var(--bg-2);
    border: 2px dashed rgba(243, 148, 0, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
}

/* ============================================
   PARALLAX SECTION
   ============================================ */
.parallax-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Controla cuánto puede moverse el fondo en total (A) */
    --parallax-amplitude: 200px;
}

.parallax-bg {
    position: absolute;
    /* Overscan exactamente igual a A: 100% + A de alto */
    top: calc(-1 * var(--parallax-amplitude) / 2);
    bottom: calc(-1 * var(--parallax-amplitude) / 2);
    left: 0;
    right: 0;

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(17, 17, 17, 0.7) 0%,
        rgba(243, 148, 0, 0.2) 50%,
        rgba(17, 17, 17, 0.7) 100%
    );
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.parallax-banner {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    padding: 3rem 4rem;
    border-radius: 20px;
    border: 1px solid rgba(243, 148, 0, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    animation: bannerFloat 6s ease-in-out infinite;
}

.parallax-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(243, 148, 0, 0.1) 50%,
        transparent 70%
    );
    animation: bannerShine 3s linear infinite;
}

.parallax-text {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    color: white;
    text-shadow: 0 4px 20px rgba(243, 148, 0, 0.5);
    letter-spacing: -0.5px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

@keyframes bannerFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

@keyframes bannerShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .parallax-section {
        height: 400px;
    }

    .parallax-bg {
        background-attachment: scroll;
    }

    .parallax-banner {
        padding: 2rem;
        margin: 0 1rem;
    }

    .parallax-text {
        font-size: 1.5rem;
    }
}

/* ============================================
   AUTOMATIZACIÓN SECTION
   ============================================ */
.automatizacion {
    padding: var(--section-padding);
    background: var(--bg-2);
}

.integrations-row {
    margin-bottom: 3rem;
}

.integration-category {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.integrations-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.integrations-equal {
    max-width: 1000px;
    margin: 0 auto;
}

.integrations-row:last-of-type {
    margin-bottom: 4rem;
}

.integration-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1rem;
    background: var(--bg);
    border-radius: 16px;
    border: 1px solid rgba(243, 148, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 0 0 auto;
    width: 160px;
    min-width: 160px;
}

.integration-item:hover {
    transform: translateY(-5px);
    border-color: var(--brand);
    box-shadow: 0 10px 30px var(--shadow);
}

.integration-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.integration-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-radius: 12px;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.4s ease;
    z-index: -1;
}

.integration-item:hover .integration-icon {
    transform: scale(1.15) rotate(-5deg);
}

.integration-item:hover .integration-icon::before {
    opacity: 0.8;
}

.integration-item span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fg-2);
    text-align: center;
}

.automation-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--brand);
}

.benefit-card h4 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--brand);
}

.benefit-card p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ============================================
   DEMO SECTION
   ============================================ */
.demo {
    padding: var(--section-padding);
    background: var(--bg-2);
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.demo-content {
    /* Contenido a la izquierda */
}

.demo-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.demo-preview {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.demo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-2);
    border: 2px dashed rgba(243, 148, 0, 0.3);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-2);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(243, 148, 0, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: var(--bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--fg);
    border: 1px solid rgba(243, 148, 0, 0.2);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--brand);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow);
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--fg);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--brand);
    padding-left: 0.5rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--brand);
    font-size: 1.125rem;
    margin-top: 0.25rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(243, 148, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--muted);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.footer-legal a {
    color: var(--muted);
}

.footer-legal a:hover {
    color: var(--brand);
}

.footer-legal span {
    color: var(--muted-2);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .demo-container {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }
}

@media (max-width: 980px) {
    .nav {
        display: none;
    }

    .header-content .btn-primary {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero {
        padding: var(--section-padding-mobile);
        padding-top: 120px;
        min-height: auto;
    }

    .nosotros,
    .servicios,
    .automatizacion,
    .demo {
        padding: var(--section-padding-mobile);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .logo img {
        height: 45px !important;
    }

    .section-grid {
        display: flex;
        flex-direction: column;
    }

    .content-left {
        order: 2;
    }

    .content-right {
        order: 1;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .office-image {
        min-height: 300px;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        max-width: 100%;
    }

    .section-header-image {
        height: 200px;
    }

    .integration-item {
        width: 140px;
        min-width: 140px;
    }

    .automation-benefits {
        grid-template-columns: 1fr;
    }

    .demo-buttons {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .mobile-menu {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 35px !important;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title,
    .section-title-center {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .integrations-diagram {
        grid-template-columns: 1fr;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PROPIEDADES SECTION
   ============================================ */
.propiedades {
    padding: var(--section-padding);
    background: var(--bg);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.property-card {
    background: var(--bg-2);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(243, 148, 0, 0.1);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(243, 148, 0, 0.2);
}

.property-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.property-image img {
    transition: transform 0.5s ease;
}

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

.property-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    z-index: 2;
}

.property-badge-venta {
    background: var(--brand);
    color: #ffffff;
}

.property-badge-renta {
    background: #00c853;
    color: #ffffff;
}

.property-content {
    padding: 1.5rem;
}

.property-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.property-subtitle {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.property-location {
    font-size: 0.85rem;
    color: var(--muted-2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(243, 148, 0, 0.1);
}

.property-location i {
    color: var(--brand);
    font-size: 1rem;
}

.property-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 1rem;
}

.property-specs-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.spec-icon-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(243, 148, 0, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.spec-icon-item:hover {
    background: rgba(243, 148, 0, 0.1);
    transform: translateY(-2px);
}

.spec-icon-item i {
    font-size: 1.25rem;
    color: var(--brand);
    width: 24px;
    text-align: center;
}

.spec-icon-item span {
    font-size: 0.95rem;
    color: var(--fg-2);
    font-weight: 600;
}

.properties-cta {
    text-align: center;
    margin-top: 3rem;
}

.properties-cta .btn-large {
    padding: 1rem 3rem;
}

/* Responsive */
@media (max-width: 992px) {
    .properties-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .property-image {
        height: 200px;
    }

    .property-specs-icons {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .spec-icon-item {
        padding: 0.6rem;
    }

    .spec-icon-item i {
        font-size: 1.1rem;
    }

    .spec-icon-item span {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }

    .property-image {
        height: 250px;
    }

    .property-specs-icons {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .property-specs-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .spec-icon-item {
        padding: 0.5rem;
    }

    .spec-icon-item i {
        font-size: 1rem;
    }

    .spec-icon-item span {
        font-size: 0.8rem;
    }
}

/* ============================================
   TOPBAR STYLES (OneSolution)
   Added: 2024-10-31
   ============================================ */
.topbar {
    background: var(--brand);
    color: #fff;
    font-size: 0.9rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.topbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.topbar .wrap {
    padding: 10px 16px !important;
    max-width: 100% !important;
    display: block !important;
}

.topbar-centered {
    display: flex !important;
    gap: 16px !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
}

.chiptopbar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 12px 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.4) !important;
    color: #111 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    white-space: nowrap !important;
}

.topbar .chiptopbar,
.topbar .chiptopbar * {
    color: #111 !important;
}

@media (max-width: 768px) {
    :root {
        --topbar-height: 203px;
    }

    .topbar-centered {
        flex-direction: column;
        gap: 8px;
    }

    .chiptopbar {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .hero {
        padding-top: 290px !important;
    }

    .header {
        top: 203px !important;
    }

    .header.topbar-hidden {
        top: 0 !important;
    }

    .header-content {
        padding: 0.75rem 0;
    }
}

/* ============================================
   FOOTER STYLES (OneSolution)
   Added: 2024-10-31
   ============================================ */
footer {
    background: #111;
    color: #fff;
    padding-top: 3rem;
}

footer .wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

footer .footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

@media (max-width: 980px) {
    footer .footer-grid {
        grid-template-columns: 1fr;
    }
}

footer .panel {
    background: #111;
    color: #fff;
    padding: 2rem;
    border-radius: 12px;
}

footer .panel h2,
footer .panel h3 {
    color: #f29e30 !important;
}

footer .sucursales-panel {
    border-left: 4px solid #f29e30;
}

/* Section title with mark */
footer .section-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

footer .section-title .mark {
    width: 16px;
    height: 36px;
    background: var(--brand);
    border-radius: 99px;
    flex-shrink: 0;
    margin-top: 4px;
}

footer .section-title.h2-title .mark {
    display: inline-block;
}

/* Form styles */
footer .form label {
    display: block;
    margin: 0 0 6px 2px;
    color: #fff;
    font-weight: 600;
}

footer .form input,
footer .form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    background: #fff;
    color: #111;
    outline: 0;
}

footer .form input:focus,
footer .form textarea:focus {
    border-color: #f29e30;
    box-shadow: 0 0 0 3px rgba(242, 158, 48, 0.25);
}

footer .form textarea {
    min-height: 120px;
    resize: vertical;
}

footer .form button {
    background: #f29e30;
    color: #111;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s ease;
}

footer .form button:hover {
    filter: brightness(0.95);
}

/* Social icons */
footer .social-icons a {
    color: #fff;
    transition: color 0.2s ease;
}

footer .social-icons a:hover {
    color: #f29e30 !important;
}

/* Copyright bar */
.copyright-bar {
    background: #f29e30 !important;
    color: #111 !important;
    text-align: center;
    padding: 16px;
    margin-top: 40px;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    z-index: 1;
}

.copyright-bar p {
    margin: 0 !important;
    color: #111 !important;
    font-weight: 500;
}

.copyright-bar #y {
    color: #111 !important;
}

.copyright-bar * {
    color: #111 !important;
}

/* ============================================
   VIDEO TABS SYSTEM (Avatar 1 y 2)
   Added: 2024-10-31
   ============================================ */
.video-tabs-container {
    position: relative;
    width: 100%;
}

.video-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
}

.video-tab {
    flex: 1;
    max-width: 200px;
    padding: 14px 24px;
    background: rgba(243, 148, 0, 0.1);
    border: 2px solid rgba(243, 148, 0, 0.3);
    border-radius: 12px;
    color: var(--fg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.video-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(243, 148, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.video-tab:hover::before {
    left: 100%;
}

.video-tab:hover {
    background: rgba(243, 148, 0, 0.2);
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 148, 0, 0.3);
}

.video-tab.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-color: var(--brand);
    color: #111;
    box-shadow: 0 6px 20px rgba(243, 148, 0, 0.4);
}

.video-tab.active i {
    animation: pulse 2s ease-in-out infinite;
}

.video-tab i {
    font-size: 1.2rem;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.videos-wrapper {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.video-content {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

.video-content.active {
    display: block;
}

.video-content video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive para tabs */
@media (max-width: 768px) {
    .video-tabs {
        gap: 8px;
    }

    .video-tab {
        padding: 12px 16px;
        font-size: 0.9rem;
        max-width: 150px;
    }

    .video-tab i {
        font-size: 1rem;
    }
}

/* ============================================
   SERVICIOS TITLE CUSTOM
   ============================================ */
.servicios-subtitle-orange {
    color: var(--brand);
    font-size: clamp(1.875rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin: 0;
    text-align: center;
}

.servicios-title-main {
    margin-top: 0;
    margin-bottom: 1.5rem;
}
