/* ==================== PROINPROT - ESTILOS GENERALES ==================== */

/* Variables de color */
:root {
    --primary: #1a1a1a;
    --primary-dark: #0f0f0f;
    --secondary: #f5d188;
    --secondary-light: #f5d188;
    --light: #f5f5f5;
    --light-gray: #efefef;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --border: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 5px 15px rgba(212, 175, 55, 0.3);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #ddd;
    background: #1a1a1a;
    min-height: 100vh;
}

/* ==================== TIPOGRAFÍA ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #f5f5f5;
}

h1 {
    font-size: 3rem;
    letter-spacing: 1px;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

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

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

/* ==================== NAVEGACIÓN ==================== */
nav {
    background: var(--primary);
    color: var(--light);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.navbar-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 2px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    font-size: 0.9rem;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--secondary);
    margin: 5px 0;
    transition: var(--transition);
}

.portal-link {
    background: var(--secondary);
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

.portal-link:hover {
    background: var(--secondary-light);
}

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--light);
    padding: 6rem 2rem;
    text-align: center;
    border-bottom: 3px solid var(--secondary);
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero h1 {
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 3px;
    animation: fadeInUp 0.8s ease 0.1s backwards;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    color: #ddd;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

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

/* ==================== BOTONES ==================== */
.btn {
    padding: 0.9rem 2rem;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

.btn-primary:hover {
    background: #f5d188;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(245, 209, 136, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

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

.btn-dark {
    background: var(--primary);
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-dark:hover {
    background: var(--secondary);
    color: var(--primary);
}

.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

/* ==================== SECCIONES GENERALES ==================== */
section {
    padding: 5rem 2rem;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    text-align: center;
    color: #f5f5f5;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    font-size: 2.2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
}

/* ==================== ESTADÍSTICAS ==================== */
.stats {
    background: var(--light);
}

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

.stat-item {
    padding: 2rem;
    background: white;
    border-left: 4px solid var(--secondary);
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-item h3 {
    color: var(--secondary);
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.stat-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0;
}

/* ==================== TARJETAS GENERALES ==================== */
.card {
    background: white;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.card-dark {
    background: #2a2a2a;
    border: 1px solid #f5d188;
}

/* ==================== GRID LAYOUTS ==================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

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

/* ==================== FOOTER ==================== */
footer {
    background: var(--primary);
    color: var(--light);
    padding: 3rem 2rem;
    border-top: 2px solid var(--secondary);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.footer-section h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section p,
.footer-section a {
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 2rem;
    color: #999;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    color: var(--primary);
}

/* ==================== FORMULARIOS ==================== */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: white;
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

/* ==================== BREADCRUMBS ==================== */
.breadcrumb {
    background: var(--light);
    padding: 1rem 2rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--secondary);
    margin: 0 0.5rem;
}

.breadcrumb span {
    color: var(--text-muted);
}

/* ==================== ANIMACIONES ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

.scroll-animation {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animation.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        min-height: 400px;
        padding: 3rem 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    nav {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--primary);
        padding: 1rem;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }

    .nav-links a::after {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    section {
        padding: 3rem 1.5rem;
    }

    .hero {
        padding: 3rem 1rem;
        min-height: 300px;
    }

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

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

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .navbar-container {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .hero {
        padding: 1.5rem 1rem;
        min-height: 250px;
    }

    .hero h1 {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

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

    .card,
    .stat-item,
    .service-box {
        padding: 1rem;
    }
}

/* ==================== TESTIMONIOS ==================== */
.testimonial-card {
    background: white;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-card p:first-of-type {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 1rem;
}

/* ==================== BLOG ==================== */
.blog-card {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-card img {
    max-height: 150px;
    object-fit: cover;
}

.blog-card h3 {
    color: #f5d188;
    font-size: 1rem;
    margin: 1rem 0 0.5rem 0;
}

.blog-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 1rem;
}
.carousel-scroll {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    width: fit-content;
}

/* ==================== ESTADÍSTICAS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* ==================== TIMELINE PROPIEDADES ==================== */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #f5d188, #f5d188, transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 3rem 2.5rem;
    box-sizing: border-box;
}

.timeline-left {
    left: 0;
    text-align: right;
}

.timeline-right {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 0.3rem;
    width: 14px;
    height: 14px;
    background: #1a1a1a;
    border: 3px solid #f5d188;
    border-radius: 50%;
    z-index: 2;
}

.timeline-left .timeline-dot {
    right: -8px;
}

.timeline-right .timeline-dot {
    left: -8px;
}

.timeline-content {
    display: inline-block;
    color: #f5f5f5;
    font-size: 1rem;
    font-weight: 400;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(245, 209, 136, 0.3);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    color: #f5d188;
    border-bottom-color: #f5d188;
    transform: scale(1.03);
}

.timeline-item:hover .timeline-dot {
    background: #f5d188;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }
    .timeline-item,
    .timeline-left,
    .timeline-right {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 3rem;
        padding-right: 0.5rem;
    }
    .timeline-left .timeline-dot,
    .timeline-right .timeline-dot {
        left: 12px;
    }
}

/* ==================== TIMELINE HORIZONTAL (ATRIBUTOS DE MARCA) ==================== */
.timeline-h-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 100%;
    margin: 3rem auto 0;
    padding: 4.5rem 2.5rem;
    overflow-x: auto;
    scrollbar-color: #f5d188 transparent;
}

.timeline-h-item {
    position: relative;
    flex: 0 0 auto;
    min-width: 130px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-h-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -1.25rem;
    right: -1.25rem;
    height: 2px;
    background: #f5d188;
    opacity: 0.35;
    transform: translateY(-50%);
    z-index: 0;
}

.timeline-h-item:first-child::before {
    left: 50%;
}

.timeline-h-item:last-child::before {
    right: 50%;
}

.timeline-h-dot {
    position: relative;
    z-index: 2;
    width: 14px;
    height: 14px;
    background: #1a1a1a;
    border: 3px solid #f5d188;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-h-content {
    position: absolute;
    left: 50%;
    z-index: 2;
    width: 160px;
    text-align: center;
    color: #f5f5f5;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid rgba(245, 209, 136, 0.3);
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.item-top .timeline-h-content {
    bottom: calc(50% + 20px);
    border-top: none;
    border-bottom: 1px solid rgba(245, 209, 136, 0.3);
}

.item-bottom .timeline-h-content {
    top: calc(50% + 20px);
}

.timeline-h-item:hover .timeline-h-content {
    color: #f5d188;
    border-color: #f5d188;
}

.timeline-h-item:hover .timeline-h-dot {
    background: #f5d188;
}

@media (max-width: 768px) {
    .timeline-h-track {
        gap: 2rem;
        padding: 4rem 1.5rem;
        justify-content: flex-start;
    }
    .timeline-h-item {
        min-width: 110px;
    }
    .timeline-h-content {
        width: 130px;
        font-size: 0.9rem;
    }
}

/* ==================== CUADRÍCULA DE PROPIEDADES ==================== */
.property-card {
    background: #2a2a2a;
    border: 2px solid #f5d188;
    color: #f5f5f5;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    font-weight: 400;
    font-size: 1rem;
    text-align: center;
    line-height: 1.4;
    transition: all 0.3s ease;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.property-card:hover {
    background: #f5d188;
    color: #1a1a1a;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(245, 209, 136, 0.3);
}

/* Animación izquierda → derecha */
.carousel-scroll-left {
    animation: scroll-left 25s linear infinite;
}

.carousel-scroll-left:hover {
    animation-play-state: paused;
}

/* Animación derecha ← izquierda */
.carousel-scroll-right {
    animation: scroll-right 25s linear infinite;
}

.carousel-scroll-right:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.property-chip {
    background: #2a2a2a;
    border: 1px solid #f5d188;
    color: #f5f5f5;
    padding: 0.35rem 0.7rem;
    border-radius: 35px;
    font-weight: 400;
    font-size: 0.7rem;
    white-space: normal;
    word-wrap: break-word;
    max-width: 95px;
    text-align: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    cursor: default;
    line-height: 1.2;
}

.property-chip:hover {
    background: #f5d188;
    color: #1a1a1a;
    transform: scale(1.05);
}

/* ==================== UTILIDADES ==================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mt-5 { margin-top: 5rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
.mb-5 { margin-bottom: 5rem; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}
