/* Casa Magnolia Commercial Frontend CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

:root {
    --primary: #2C4336;
    --primary-dark: #192A21;
    --primary-light: #3D5A4A;
    --accent: #C5A059;
    --accent-light: #E8D8B6;
    --bg-main: #FAF8F5;
    --bg-card: #FFFFFF;
    --bg-alt: #F3ECE0;
    --text-main: #222523;
    --text-muted: #6B726E;
    --border-color: #E5E0D8;
    --whatsapp-green: #25D366;
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.04);
    --shadow-md: 0 6px 18px rgba(0,0,0,0.07);
    --shadow-lg: 0 12px 30px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 70px; /* Space for mobile sticky CTA */
}

@media (min-width: 769px) {
    body {
        padding-bottom: 0;
    }
}

h1, h2, h3, h4, .brand-font {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 70px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.bg-white {
    background-color: #FFFFFF;
}

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

.section-title-wrap {
    max-width: 700px;
    margin: 0 auto 48px auto;
    text-align: center;
}

.section-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary-dark);
}

/* Header & Nav */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.brand-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.menu-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-dark);
    transition: var(--transition);
}

.menu-link:hover, .menu-link.active {
    color: var(--accent);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #FFFFFF;
    z-index: 1001;
    padding: 32px 24px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.mobile-drawer.open {
    right: 0;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.drawer-overlay.open {
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--accent);
    color: #FFFFFF;
}

.btn-accent:hover {
    background: #A88342;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp {
    background: var(--whatsapp-green);
    color: #FFFFFF;
}

.btn-whatsapp:hover {
    background: #1EBE5D;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #FFFFFF;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 100px 0 80px 0;
    background: linear-gradient(135deg, rgba(27, 43, 34, 0.92) 0%, rgba(44, 67, 54, 0.85) 100%), var(--hero-bg, url('../img/hero_decoracion.jpg'));
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
}

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

.hero-subtitle {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(197, 160, 89, 0.25);
    border: 1px solid var(--accent);
    color: var(--accent-light);
    border-radius: 30px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3rem;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    font-weight: 300;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.1rem;
    }
    .hero-desc {
        font-size: 1rem;
    }
}

/* Service Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.card-item {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.card-img-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card-item:hover .card-img-wrap img {
    transform: scale(1.06);
}

.card-body {
    padding: 24px;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Gallery Component */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 67, 54, 0.75);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.5rem;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* FAQ Accordion */
.faq-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--primary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-answer {
    padding: 0 24px 20px 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

/* Quote Form */
.quote-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--primary-dark);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    background: #FFFFFF;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 67, 54, 0.12);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 85px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@media (min-width: 769px) {
    .whatsapp-float {
        bottom: 30px;
    }
}

/* Mobile Sticky Bottom CTA Bar */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 10px 16px;
    display: flex;
    gap: 12px;
    z-index: 998;
}

@media (min-width: 769px) {
    .mobile-sticky-cta {
        display: none;
    }
}

.mobile-cta-btn {
    flex: 1;
    padding: 12px;
    font-size: 0.9rem;
}

/* --- Breadcrumbs --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 14px 0;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--accent);
    transition: var(--transition);
}

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

.breadcrumb-sep {
    color: var(--border-color);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.anim-fade-in {
    animation: fadeInUp 0.6s ease both;
}

.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }

/* --- CTA Banner --- */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 70px 0;
    text-align: center;
    color: #FFFFFF;
}

.cta-banner h2 {
    color: #FFFFFF;
    font-size: 2.3rem;
    margin-bottom: 12px;
}

.cta-banner p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    font-weight: 300;
}

.cta-banner-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Step Process Cards --- */
.step-card {
    background: var(--bg-main);
    padding: 24px;
    border-radius: 12px;
    position: relative;
    transition: var(--transition);
    border: 1px solid transparent;
}

.step-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* --- Trust Badges --- */
.trust-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 40px 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-dark);
}

.trust-badge i {
    color: var(--accent);
    font-size: 1.2rem;
}

/* --- Responsive Tweaks --- */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.7rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .quote-card {
        padding: 24px 16px;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
    }
}

/* --- Footer --- */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px 0;
    font-size: 0.9rem;
}

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

.footer-title {
    color: #FFFFFF;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}
