/* ============================================
   INMOBILIARIA ZIHUA - FRONTEND CSS
   ============================================ */

/* ===== VARIABLES CSS ===== */
:root {
    --primary: #2c3e50;
    --secondary: #d64570;
    --accent: #c53860;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333333;
    --coral-gradient: linear-gradient(135deg, #d64570, #c53860);
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== CONTAINER ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo svg {
    height: 60px;
    width: auto;
}

.logo a {
    display: block;
    line-height: 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 25px;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--secondary);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--coral-gradient);
}

.cta-button {
    background: var(--coral-gradient);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(214, 69, 112, 0.3);
    display: inline-block;
}

.cta-button:hover {
    background: linear-gradient(135deg, #c53860, #b32050);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 69, 112, 0.4);
    color: white;
}

/* ===== PARALLAX SECTIONS ===== */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.parallax-content {
    position: relative;
    z-index: 2;
}

/* ===== HERO SECTION ===== */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1544551763-46a013bb70d5?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    margin-top: 80px;
}

.hero-content {
    max-width: 600px;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .cta-button {
    animation: fadeInUp 1s ease 0.4s both;
}

/* ===== PARALLAX DIVIDERS ===== */
.parallax-divider {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.parallax-1 {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
}

.parallax-2 {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1571071810458-8d4458deee7b?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
}

.parallax-text {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    border: 1px solid rgba(214, 69, 112, 0.3);
}

.parallax-text h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: white;
}

.parallax-text p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    color: white;
}

/* ===== DEVELOPMENTS SECTION ===== */
.developments {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.development-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.dev-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    background: white;
}

.dev-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(214, 69, 112, 0.15);
}

.dev-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.logo-desarrollo{
    height: 100%;
    width: 100%;
}

.dev-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3));
}

.dev-info {
    padding: 25px;
}

.dev-info h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.dev-info p {
    color: #666;
    margin-bottom: 20px;
}

.dev-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
}

.dev-features span {
    background: var(--coral-gradient);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: var(--light);
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 40px 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(214, 69, 112, 0.1), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(214, 69, 112, 0.15);
}

.service-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--coral-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.2rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* ===== PARTNERS SECTION ===== */
.partners-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.partner-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(214, 69, 112, 0.15);
    border-color: var(--secondary);
}

.partner-icon {
    width: 80px;
    height: 80px;
    background: var(--coral-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.partner-icon i {
    font-size: 2.5rem;
    color: white;
}

.partner-card h3 {
    text-align: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.partner-card > p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.benefits-list {
    list-style: none;
    margin-bottom: 30px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #555;
}

.benefits-list i {
    color: var(--secondary);
    margin-right: 12px;
    font-size: 0.9rem;
}

.partner-card .cta-button {
    display: block;
    text-align: center;
    margin-top: 25px;
}

/* ===== SELLERS PORTAL SECTION ===== */
.sellers-portal {
    padding: 80px 0;
    background-color: white;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.portal-feature {
    text-align: center;
    padding: 40px 30px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.portal-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--coral-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.portal-feature h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.portal-feature > p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.feature-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-details span {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 0.9rem;
}

.feature-details i {
    color: var(--secondary);
    margin-right: 8px;
    width: 16px;
}

.portal-access {
    background: var(--coral-gradient);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    color: white;
}

.access-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.access-card p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.access-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

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

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--coral-gradient);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.cta-section .cta-button {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
}

.cta-section .cta-button:hover {
    background: white;
    color: var(--secondary);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark);
    color: white;
    padding: 50px 0 20px;
}

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

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--secondary);
}

.footer-column p {
    line-height: 1.8;
    color: #ddd;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
}

.footer-column a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-column i {
    margin-right: 8px;
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--coral-gradient);
    transform: translateY(-2px);
}

.social-links a i {
    color: white;
    font-size: 1.2rem;
    margin: 0;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #aaa;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Desactivar parallax en móviles */
    .parallax {
        background-attachment: scroll;
    }
    
    /* Header */
    .header-container {
        flex-direction: column;
        padding: 10px 0;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav li {
        margin: 5px 10px;
    }
    
    .logo svg {
        height: 50px;
    }
    
    /* Hero */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    /* Parallax Text */
    .parallax-text {
        padding: 30px 20px;
    }
    
    .parallax-text h3 {
        font-size: 1.8rem;
    }
    
    .parallax-text p {
        font-size: 1rem;
    }
    
    /* Development Grid */
    .development-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Partners Grid */
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .partner-card {
        padding: 30px 25px;
    }
    
    /* Portal Grid */
    .portal-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .portal-access {
        padding: 40px 25px;
    }
    
    .access-card h3 {
        font-size: 1.5rem;
    }
    
    .access-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .access-buttons .cta-button {
        width: 200px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Section Titles */
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .dev-features {
        flex-direction: column;
        gap: 8px;
    }
    
    .dev-features span {
        text-align: center;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.py-1 { padding-top: 10px; padding-bottom: 10px; }
.py-2 { padding-top: 20px; padding-bottom: 20px; }
.py-3 { padding-top: 30px; padding-bottom: 30px; }
.py-4 { padding-top: 40px; padding-bottom: 40px; }
.py-5 { padding-top: 50px; padding-bottom: 50px; }