:root {
    --primary: #1e40af; /* Restored Blue theme */
    --primary-light: #eff6ff;
    --primary-glow: rgba(30, 64, 175, 0.2);
    --bg-light: #FFFFFF;
    --bg-surface: #F8FAFC;
    --text-dark: #0F172A;
    --text-dim: #64748B;
    --gradient-brand: linear-gradient(135deg, #1e40af 0%, #1a368e 100%);
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1002;
    border-bottom: 1px solid var(--glass-border);
}

.top-bar {
    background: #0F172A;
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 1.5rem;
}

.top-bar-right {
    display: flex;
    gap: 1.5rem;
}

.top-bar-link {
    color: #cbd5e1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s;
}

.top-bar-link:hover {
    color: #fff;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: #000;
}

.logo-text { color: #000; margin-right: 2px; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Buttons */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: inherit;
}

.btn-primary { background: var(--gradient-brand); color: #fff; }
.btn-outline { border: 1px solid var(--glass-border); color: var(--text-dark); }
.btn-glow { 
    background: var(--gradient-brand); 
    color: #fff; 
    box-shadow: 0 10px 20px var(--primary-glow);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 15px 30px var(--primary-glow); }

/* Hero */
.hero {
    padding: 140px 0 100px;
    background: radial-gradient(circle at 10% 20%, rgba(26, 75, 222, 0.03) 0%, transparent 40%);
}

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

.badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-block;
    border: 1px solid rgba(26, 75, 222, 0.1);
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions { display: flex; gap: 1rem; }

/* Visual Side */
.glass-card {
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 40px 80px rgba(0,0,0,0.08);
}

.before-after-preview {
    height: 350px;
    background: #F1F5F9;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    position: relative;
}

.side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.before { 
    background: url('public/images/eliminar-gotele.jpeg') center/cover; 
    color: #fff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.after { 
    background: url('public/images/alisar-paredes-valencia-1024x682.jpeg') center/cover; 
    color: var(--primary);
    text-shadow: 0 4px 12px rgba(255,255,255,0.8);
}

.divider {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #1e40af;
    box-shadow: 0 0 15px rgba(30, 64, 175, 0.3);
}

.card-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 1.5rem;
}

.card-stats div { text-align: center; }
.card-stats strong { display: block; font-size: 1.8rem; color: var(--primary); }
.card-stats span { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; }

/* Services */
.section { padding: 100px 0; background: var(--bg-surface); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-header p { color: var(--text-dim); }

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

.service-card {
    background: #fff;
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 24px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.service-card .icon { font-size: 3rem; margin-bottom: 1.5rem; color: var(--primary); }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.service-card p { color: var(--text-dim); }

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(26, 75, 222, 0.1);
}

@media (max-width: 968px) {
    .top-bar-inner { flex-direction: column; gap: 0.5rem; justify-content: center; text-align: center; }
    .top-bar-item { margin-right: 0; }
    .top-bar-right { justify-content: center; gap: 1rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    h1 { font-size: 2.8rem; }
    .services-grid { grid-template-columns: 1fr; }
}


/* Footer */
.footer {
    background: #0F172A;
    color: white;
    padding: 80px 0 0;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 50px;
}

.footer-info h3 { margin-bottom: 1.5rem; color: var(--primary); }
.footer-info p { color: #94A3B8; margin-bottom: 2rem; }

.footer-links h4, .footer-contact h4 { margin-bottom: 1.5rem; color: white; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #94A3B8; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: white; }

.footer-contact p { color: #94A3B8; margin-bottom: 0.8rem; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    text-align: center;
    color: #64748B;
    font-size: 0.9rem;
}

.footer-bottom a { color: #94A3B8; text-decoration: none; }

/* Page Content */
.page-hero {
    padding: 180px 0 80px;
    background: var(--bg-surface);
    text-align: center;
}

.page-hero h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.page-hero p { max-width: 700px; margin: 0 auto; color: var(--text-dim); font-size: 1.2rem; }

.content-section { padding: 80px 0; }
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-text h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.content-text p { margin-bottom: 1.5rem; font-size: 1.1rem; color: var(--text-dim); }

.content-visual { 
    height: 400px; 
    background: #E2E8F0; 
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.portfolio-item {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s;
}

.portfolio-item:hover { transform: translateY(-10px); }

.portfolio-img { height: 300px; background: #E2E8F0; }

.portfolio-desc { padding: 1.5rem; }
.portfolio-desc h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: #fff;
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: #F8FAFC;
    font-family: inherit;
}

.form-control:focus { outline: 1px solid var(--primary); }

@media (max-width: 968px) {
    .footer-grid, .content-grid, .contact-container { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
}

/* Dropdown Nav */
.nav-dropdown { position: relative; }

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.nav-dropdown > a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-top: 1px;
    transition: transform 0.2s;
}

.nav-dropdown:hover > a::after { transform: rotate(180deg); }

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0.6rem;
    min-width: 220px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 200;
    list-style: none;
}

.nav-dropdown:hover .dropdown-menu,
.dropdown-menu.open { 
    display: block;
    animation: fadeInScale 0.2s ease-out;
}

/* Bridge to prevent closing when moving mouse between trigger and menu */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px; /* Covers the 12px gap + some buffer */
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-dark) !important;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu li a:hover {
    background: var(--primary-light);
    color: var(--primary) !important;
}

.dropdown-icon { font-size: 1.2rem; }

/* Imágenes en placeholders */
.portfolio-img img,
.content-visual img,
.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-img { overflow: hidden; }

/* Footer profesional */
.footer-cta {
    background: var(--gradient-brand);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.footer-cta h3 { font-size: 2rem; margin-bottom: 0.8rem; }
.footer-cta p { opacity: 0.85; margin-bottom: 2rem; font-size: 1.1rem; }
.footer-cta .btn-white {
    background: white;
    color: var(--primary);
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    margin: 0 0.5rem;
}
.footer-cta .btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.footer-cta .btn-white-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.6);
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    margin: 0 0.5rem;
}
.footer-cta .btn-white-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

.footer-main {
    background: #0F172A;
    padding: 70px 0 0;
}

.footer-grid-new {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 50px;
}

.footer-brand .footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-brand .footer-logo span { color: var(--primary); }

.footer-brand p { color: #94A3B8; line-height: 1.7; margin-bottom: 1.5rem; font-size: 0.95rem; }

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(26,75,222,0.15);
    border: 1px solid rgba(26,75,222,0.3);
    color: #93B4FF;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-right: 0.4rem;
}

.social-row {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.social-btn:hover { background: #1e40af; color: white; border-color: var(--primary); }

.footer-col h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul li a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-col ul li a:hover { color: white; }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: #94A3B8;
    font-size: 0.95rem;
}

.footer-contact-item .icon { font-size: 1.1rem; margin-top: 0.1rem; flex-shrink: 0; }
.footer-contact-item a { color: #94A3B8; text-decoration: none; transition: color 0.3s; }
.footer-contact-item a:hover { color: white; }

.footer-schedule {
    background: rgba(26,75,222,0.12);
    border: 1px solid rgba(26,75,222,0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1.2rem;
    color: #93B4FF;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-bottom-new {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: #475569;
    font-size: 0.85rem;
}

.footer-bottom-new a { color: #475569; text-decoration: none; transition: color 0.3s; }
.footer-bottom-new a:hover { color: #94A3B8; }
.footer-bottom-links { display: flex; gap: 1.5rem; }

@media (max-width: 968px) {
    .footer-grid-new { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom-new { flex-direction: column; text-align: center; }
    .nav-dropdown .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 1rem;
        display: block;
    }
}

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

/* ===== SECCIONES HOME SEO ===== */

/* Price Cards */
.prices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.price-card {
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
}

.price-card:hover { transform: translateY(-6px); }

.price-card.featured {
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(26, 75, 222, 0.12);
}

.price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-brand);
    color: white;
    padding: 0.3rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.price-label {
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.price-value {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.price-unit {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.price-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

.price-note {
    background: var(--primary-light);
    border: 1px solid rgba(26,75,222,0.12);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-top: 2.5rem;
    text-align: center;
    color: var(--text-dim);
    line-height: 1.7;
}

/* Process Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 3rem;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--primary-light);
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    box-shadow: 0 8px 20px rgba(26,75,222,0.25);
}

.step h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; }

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.review-card {
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.review-stars { font-size: 1.2rem; margin-bottom: 1rem; }

.review-text {
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.review-author { font-weight: 700; color: var(--text-dark); }
.review-location { font-size: 0.85rem; color: var(--text-dim); margin-top: 0.2rem; }

/* FAQ */
.faq-list { max-width: 800px; margin: 3rem auto 0; }

.faq-item {
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #fff;
}

.faq-item summary {
    padding: 1.4rem 2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    color: var(--text-dark);
    font-size: 1rem;
    transition: background 0.2s;
}

.faq-item summary:hover { background: var(--bg-surface); }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 300;
    flex-shrink: 0;
    margin-left: 1rem;
    line-height: 1;
}

.faq-item[open] summary::after { content: '-'; }

.faq-answer-content {
    padding: 0 2rem 1.5rem;
    color: var(--text-dim);
    line-height: 1.7;
}

@media (max-width: 968px) {
    .prices-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid::before { display: none; }
    .reviews-grid { grid-template-columns: 1fr; }
    .faq-item summary { padding: 1.2rem 1.5rem; font-size: 0.95rem; }
    .faq-answer-content { padding: 0 1.5rem 1.2rem; }
}

/* ===== DROPDOWN (click-based) ===== */
.dropdown-trigger { cursor: pointer; user-select: none; }

/* Remove old hover rule for dropdown-menu */
.nav-dropdown .dropdown-menu { display: none; }
.nav-dropdown .dropdown-menu.open { display: block; }

/* Keep desktop dropdown positioning */
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0.6rem;
    min-width: 220px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 200;
    list-style: none;
}

.hamburger-container { display: none; }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE DRAWER ===== */
/* Always block so CSS transitions work — hidden via transform + visibility */
.mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff !important;
    z-index: 1001; /* header is 1002 */
    padding: 160px 1.5rem 2rem; /* Account for tall mobile header */
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), visibility 0.35s;
    overflow-y: auto;
    box-shadow: -4px 0 30px rgba(0,0,0,0.08);
}

.mobile-nav.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.mobile-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
}

.mobile-links li a {
    display: block;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    transition: all 0.2s;
    line-height: 1.4;
}

.mobile-links li a:hover,
.mobile-links li a:active { background: var(--primary-light); color: var(--primary); border-color: rgba(26,75,222,0.3); }

.mobile-links .mobile-cta {
    background: var(--gradient-brand) !important;
    color: #fff !important;
    border-color: transparent !important;
    text-align: center;
    margin-top: 0.5rem;
    box-shadow: 0 8px 20px rgba(26,75,222,0.25);
}

/* ===== SHOW HAMBURGER ON MOBILE ===== */
@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    .nav-links { display: none !important; }
    .hamburger-container { display: block; }
    .hamburger { display: flex; }
    h1 { font-size: 2.2rem; text-align: center; }
    .hero { padding: 180px 0 80px; }
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 320px; }
    .hero-visual { display: block; width: 100%; }
    .before-after-preview { height: 280px; }
    .card-stats strong { font-size: 1.5rem; }
    .page-hero { padding: 220px 0 80px; }
}

/* ===== CONTACT POPUP MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #fff;
    border-radius: 28px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--glass-border);
    position: relative;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
    opacity: 0;
}

.modal-overlay.open .modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Scrollbar styling for modal */
.modal-box::-webkit-scrollbar { width: 6px; }
.modal-box::-webkit-scrollbar-track { background: transparent; }
.modal-box::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }

.modal-header {
    background: var(--gradient-brand);
    padding: 2rem 2.5rem 1.8rem;
    border-radius: 28px 28px 0 0;
    position: relative;
}

.modal-header h2 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.modal-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.4rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.2s;
    padding: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem 2.5rem 2.5rem;
}

/* Form rows (two columns) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-body .form-group {
    margin-bottom: 1.1rem;
}

.modal-body .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.45rem;
    letter-spacing: 0.02em;
}

.modal-body .form-group label .required {
    color: var(--primary);
    margin-left: 2px;
}

.modal-body .form-control {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    background: #F8FAFC;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.modal-body .form-control:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 75, 222, 0.1);
}

.modal-body select.form-control {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.modal-body .form-control::placeholder { color: #94A3B8; }

.modal-body textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

/* Address sub-row */
.address-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

/* Divider before address */
.form-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 0.8rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E2E8F0;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    background: var(--primary-light);
    border: 1.5px solid rgba(26, 75, 222, 0.12);
    border-radius: 12px;
    margin-bottom: 1.4rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
    cursor: pointer;
    margin: 0 !important;
}

.checkbox-group label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group label a:hover { text-decoration: underline; }

/* Submit button */
.modal-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.05rem 2rem;
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(26, 75, 222, 0.3);
    transition: transform 0.25s, box-shadow 0.25s;
}

.modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(26, 75, 222, 0.38);
}

.modal-submit:active { transform: translateY(0); }

/* Success state */
.modal-success {
    display: none;
    text-align: center;
    padding: 3rem 2.5rem 3.5rem;
}

.modal-success .success-icon {
    font-size: 4rem;
    margin-bottom: 1.2rem;
    display: block;
}

.modal-success h3 {
    font-size: 1.7rem;
    margin-bottom: 0.7rem;
    color: var(--text-dark);
}

.modal-success p {
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 380px;
    margin: 0 auto;
}

/* Trust badges inside modal */
.modal-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid #F1F5F9;
    flex-wrap: wrap;
}

.modal-trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 500;
}

/* Responsive modal */
@media (max-width: 680px) {
    .modal-box { border-radius: 20px; }
    .modal-header { padding: 1.5rem 1.5rem 1.3rem; border-radius: 20px 20px 0 0; }
    .modal-header h2 { font-size: 1.35rem; }
    .modal-body { padding: 1.4rem 1.5rem 2rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .address-row { grid-template-columns: 1fr; }
    .modal-trust { gap: 1rem; }
}

/* ===== BLOG SECTION ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.blog-card-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}

.blog-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card h3 a:hover {
    color: var(--primary);
}

.blog-card p {
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.3s;
}

.blog-link:hover {
    gap: 0.7rem;
}

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

    /* Premium Mobile Header Centering */
    .nav {
        justify-content: center; /* Center the logo container */
        position: relative;
    }

    .logo {
        margin: 0 auto;
        position: relative;
        z-index: 10;
    }

    .hamburger-container {
        position: absolute;
        right: 2rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
    }
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
    color: #FFF;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: -150%;
    left: 20px;
    right: 20px;
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.show {
    bottom: 20px;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.cookie-accept {
    background: var(--primary);
    color: #fff;
}

.cookie-accept:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.cookie-reject {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.cookie-reject:hover {
    background: var(--bg-alt);
}

.cookie-link {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: underline;
    margin-left: auto;
}

/* Settings Bubble */
.cookie-settings-btn {
    position: fixed;
    bottom: -100px; /* Hidden initially */
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 9998;
    transition: transform 0.3s, box-shadow 0.3s, bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-settings-btn.show-ball {
    bottom: 30px;
}

.cookie-settings-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: -200%;
        padding: 1rem;
    }
    .cookie-banner.show {
        bottom: 10px;
    }
    .cookie-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .cookie-link {
        margin-left: 0;
        text-align: center;
        margin-top: 0.5rem;
    }
    .cookie-settings-btn.show-ball {
        bottom: 20px;
        left: 20px;
    }
    .cookie-settings-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

.breadcrumbs-container {
    padding-top: 140px;
    background: var(--bg-surface);
    width: 100%;
}
.breadcrumbs {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    width: 100%;
}
.breadcrumbs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
/* Center breadcrumbs on page-hero (like Blog, Portfolio) */
.page-hero .breadcrumbs-list {
    justify-content: center;
}
/* Left-align breadcrumbs on service pages (.hero) */
.hero .breadcrumbs-list {
    justify-content: flex-start;
}
.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}
.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}
.breadcrumb-item a:hover {
    color: var(--secondary);
    text-decoration: underline;
}
.breadcrumb-item span.current {
    color: var(--text-dim);
    font-weight: 600;
}
.breadcrumb-separator {
    margin: 0 10px;
    color: #94a3b8;
    font-size: 0.8rem;
}

/* Ensure visibility on dark heroes if any, but default to readable blue/grey */
.hero .breadcrumb-item a {
    color: var(--primary);
}
.hero .breadcrumb-item span.current {
    color: var(--text-dim);
}

@media (max-width: 768px) {
    .breadcrumbs-container { padding-top: 100px; }
    .breadcrumbs { font-size: 0.8rem; margin-bottom: 0.5rem; text-align: center; }
    .hero .breadcrumbs-list, .breadcrumbs-list { justify-content: center; }
}

/* ===== LOGIN PAGE ===== */
/* ===== UTILITY PAGES (404, LOGIN) ===== */
.utility-page {
    background-color: var(--bg-surface);
}

.error-page {
    min-height: calc(100vh - 120px); /* Adjust for header height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.error-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20vw;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.03);
    z-index: 0;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    letter-spacing: -1vw;
}

.error-content {
    position: relative;
    z-index: 10;
    max-width: 500px;
    width: 100%;
}

.error-card {
    background: #ffffff;
    padding: 3.5rem 3rem;
    border-radius: 32px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--glass-border);
}

.error-emoji {
    font-size: 4rem;
    display: block;
    margin-bottom: 1.5rem;
}

.error-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.error-text {
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .error-page { padding: 4rem 1.2rem; min-height: auto; margin-top: 100px; }
    .error-card { padding: 3rem 1.5rem; }
    .error-title { font-size: 1.8rem; }
    .error-actions { flex-direction: column; width: 100%; }
    .error-actions .btn { width: 100%; max-width: 280px; }
    .error-bg-text { font-size: 40vw; }
}

/* Utility page background modifier */
.error-page.with-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('public/images/login-bg.png') no-repeat center center;
    background-size: cover;
    filter: blur(8px) brightness(0.9);
    z-index: -1;
    opacity: 0.4;
}

/* ===== TABLE OF CONTENTS (TOC) ===== */
.post-toc {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin: 2.5rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.post-toc-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.post-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-toc-item {
    margin-bottom: 0.6rem;
}

.post-toc-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: inline-block;
    line-height: 1.4;
}

.post-toc-link:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.post-toc-item.indent-1 {
    padding-left: 1.2rem;
    margin-top: -0.2rem;
}

.post-toc-item.indent-1 .post-toc-link {
    font-size: 0.85rem;
    opacity: 0.85;
}

.post-main-image-container img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.post-main-image-container:hover img {
    transform: scale(1.02);
}
