/*
Theme Name: Casa La Moto
Theme URI: https://cidpropiedades.cl/casa
Description: Tema premium para Casa La Moto - Propiedad exclusiva en Villarrica
Version: 1.0
Author: CID Propiedades
Text Domain: casa-la-moto
*/

:root {
    /* Paleta inspirada en referencia.html */
    --primary-cream: #e8dcd2;
    --secondary-blue: #7a95a8;
    --dark-text: #2d3e49;
    --light-text: #474747;
    --accent-orange: #ffac66;
    --overlay-dark: rgba(0,0,0,0.7);
    --overlay-gradient: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    overflow-x: hidden;
    background-color: var(--primary-cream);
}

html {
    scroll-behavior: smooth;
}

/* WordPress specific resets */
.wp-admin-bar-showing {
    padding-top: 32px;
}

/* Header Navigation */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--primary-cream);
    z-index: 1000;
    padding: 1rem 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    font-family: 'Cormorant', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-text);
    text-decoration: none;
}

.main-navigation {
    display: flex;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

.nav-menu a:hover {
    color: var(--secondary-blue);
}

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

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

/* Hero Section */
.hero-section {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 2rem;
    max-width: 800px;
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.hero-logo svg {
    width: 100%;
    height: 100%;
}

.hero-title {
    font-family: 'Cormorant', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--secondary-blue);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.cta-button:hover {
    background: var(--dark-text);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 20px;
    opacity: 0.6;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: white;
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 25px; }
}

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

/* Animaciones muy rápidas para elementos con stagger */
.stagger-animation {
    opacity: 0;
    transform: translateY(15px); /* Reducido a 15px */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Reducido a 0.4s */
}

.stagger-animation.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children .stagger-item {
    opacity: 0;
    transform: translateY(15px); /* Reducido a 15px */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Reducido a 0.4s */
}

/* Delays muy rápidos - reducidos a la mitad */
.stagger-children.animate-in .stagger-item:nth-child(1) { transition-delay: 0ms; }
.stagger-children.animate-in .stagger-item:nth-child(2) { transition-delay: 25ms; }
.stagger-children.animate-in .stagger-item:nth-child(3) { transition-delay: 50ms; }
.stagger-children.animate-in .stagger-item:nth-child(4) { transition-delay: 75ms; }
.stagger-children.animate-in .stagger-item:nth-child(5) { transition-delay: 100ms; }
.stagger-children.animate-in .stagger-item:nth-child(6) { transition-delay: 125ms; }

.stagger-children.animate-in .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

/* Content Sections */
.content-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Cormorant', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--light-text);
}

/* Property Gallery */
.property-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 350px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 2rem 1.5rem 1.5rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-family: 'Cormorant', serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* Parallax Section */
.parallax-section {
    height: 70vh;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 5rem 0;
}

.parallax-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 2rem;
}

.parallax-content h2 {
    font-family: 'Cormorant', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.parallax-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: 'Cormorant', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.feature-card p {
    color: var(--light-text);
}

/* Contact Section */
.contact-section {
    background: var(--secondary-blue);
    color: white;
    text-align: center;
    padding: 5rem 2rem;
    margin-top: 5rem;
}

.contact-section h2 {
    font-family: 'Cormorant', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 1rem 2.5rem;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.contact-btn.primary:hover {
    background: transparent;
    color: white;
}

/* Footer */
footer {
    background: var(--dark-text);
    color: white;
    padding: 3rem 2rem 1rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 1;
}

.footer-info {
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-family: 'Cormorant', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-info p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    margin-top: 2rem;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--primary-cream);
        padding: 5rem 2rem;
        transition: right 0.3s ease;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .property-gallery {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}