/*
Theme Name: ASAP Child
Description: ASAP Child Theme for Grúas Costa Rica 24/7 (Modern, Fresh, App-Style with Native Google Reviews)
Author: Antigravity
Template: asap
Version: 1.2.1
*/

/* --- DESIGN SYSTEM & TOKENS --- */
:root {
    --primary-color: #3B82F6;       /* Electric Royal Blue */
    --accent-color: #06B6D4;        /* Cyan / Tech Teal */
    --gradient-brand: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    --gradient-glow: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(6, 118, 212, 0.15) 100%);
    --dark-bg: #0F172A;             /* Sleek Midnight Blue / Slate */
    --dark-card: #1E293B;           /* Card Dark */
    --text-dark: #1E293B;
    --text-light: #F8FAFC;
    --text-muted: #64748B;
    --whatsapp-color: #25D366;
    --whatsapp-hover: #22c35e;
    --border-light: #E2E8F0;
    --radius-premium: 16px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
}

/* --- BASE CUSTOM HOME STYLES --- */
body.home {
    background-color: #F8FAFC;
    font-family: 'Outfit', 'Inter', 'Roboto', sans-serif;
    color: var(--text-dark);
    padding-top: 0 !important;
}

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

/* --- BADGES --- */
.hero-badge, .section-badge {
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary-color);
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 50px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.12);
}

.section-badge {
    margin-bottom: 12px;
}

.text-glow {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-color);
    border-color: rgba(6, 182, 212, 0.2);
}

/* Premium Badge Elements */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.badge-glow {
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.15);
    background: rgba(6, 182, 212, 0.08) !important;
    color: var(--accent-color) !important;
    border: 1px solid rgba(6, 182, 212, 0.25) !important;
}

.badge-glow:hover {
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
    transform: translateY(-1px);
}

/* --- TYPOGRAPHY --- */
.section-header-centered {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 900;
    color: #0F172A;
    letter-spacing: -1px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-subtitle-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 50px; /* Fully rounded premium pill buttons */
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white !important;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(59, 130, 246, 0.5);
    color: white !important;
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: white !important;
    box-shadow: 0 10px 20px -5px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(37, 211, 102, 0.5);
    color: white !important;
}

.btn-outline {
    background-color: transparent;
    color: #0F172A !important;
    border: 2px solid #0F172A;
}

.btn-outline:hover {
    background-color: #0F172A;
    color: white !important;
    transform: translateY(-3px);
}

.btn-google {
    background-color: white;
    color: #374151 !important;
    border: 1px solid #D1D5DB;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.btn-google:hover {
    background-color: #F9FAFB;
    border-color: #9CA3AF;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    background-color: var(--dark-bg);
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 6rem 0;
}

.hero-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text-content {
    text-align: left;
    color: white;
}

.hero-text-content h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: white;
    margin-bottom: 20px;
}

.hero-text-content h1 span {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #CBD5E1;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* --- RADAR APP GRAPHIC (NO IMAGES) --- */
.hero-graphic-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.emergency-radar {
    position: relative;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.radar-circle {
    position: absolute;
    border: 1.5px solid rgba(6, 182, 212, 0.2);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    animation: radarPulse 3s infinite linear;
}

.circle-2 {
    animation-delay: 1s;
}

.circle-3 {
    animation-delay: 2s;
}

.radar-core {
    width: 60px;
    height: 60px;
    background: var(--gradient-brand);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    z-index: 2;
    animation: corePulse 2s infinite ease-in-out;
}

.gps-tag {
    position: absolute;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    color: white !important;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
    z-index: 3;
    animation: floatTag 4s infinite ease-in-out;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gps-tag:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.9) 0%, rgba(59, 130, 246, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.45);
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.45);
    cursor: pointer;
}

.gps-tag:hover .dot {
    background-color: #FFFFFF;
    box-shadow: 0 0 12px #FFFFFF;
}

.gps-tag .dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-color);
}

.tag-1 {
    top: 15%;
    left: -8%;
    animation-delay: 0s;
}

.tag-2 {
    bottom: 18%;
    right: -10%;
    animation-delay: 0.6s;
}

.tag-3 {
    top: 50%;
    left: -14%;
    animation-delay: 1.2s;
}

.tag-4 {
    top: 4%;
    right: -2%;
    animation-delay: 1.8s;
}

.tag-5 {
    top: 28%;
    right: -16%;
    animation-delay: 2.4s;
}

.tag-6 {
    bottom: 4%;
    left: 8%;
    animation-delay: 3s;
}

.tag-7 {
    top: 24%;
    left: 40%;
    animation-delay: 3.6s;
}

@keyframes radarPulse {
    0% {
        width: 100px;
        height: 100px;
        opacity: 0.8;
    }
    100% {
        width: 320px;
        height: 320px;
        opacity: 0;
    }
}

@keyframes corePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 45px rgba(59, 130, 246, 0.7);
    }
}

@keyframes floatTag {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* --- SERVICES SECTION --- */
.services-section {
    padding: 7rem 0;
    background-color: white;
}

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

.service-card {
    background-color: #F8FAFC;
    padding: 40px 30px;
    border-radius: var(--radius-premium);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    background-color: white;
    transform: translateY(-8px);
    box-shadow: 0 25px 40px -10px rgba(15, 23, 42, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.06);
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-brand);
    color: white;
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #0F172A;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.service-link i {
    transition: var(--transition);
}

.service-card:hover .service-link {
    color: var(--accent-color);
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

/* --- ABOUT SECTION & FUTURISTIC STATS (NO IMAGES) --- */
.about-section {
    padding: 7rem 0;
    background-color: #F1F5F9;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.about-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #0F172A;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.about-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 35px;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.about-features li {
    display: flex;
    gap: 15px;
}

.about-features li .feature-icon {
    color: var(--accent-color);
    background: rgba(6, 182, 212, 0.08);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-text strong {
    display: block;
    font-size: 1.05rem;
    color: #0F172A;
    margin-bottom: 4px;
}

.feature-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- FUTURISTIC STATS GRID (NO IMAGES) --- */
.stats-tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-tech-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-premium);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.02);
}

.stat-tech-card i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: inline-block;
}

.stat-tech-card h4 {
    font-size: 2rem;
    font-weight: 900;
    color: #0F172A;
    margin: 0 0 6px 0;
}

.stat-tech-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.3;
}

.stat-tech-card.featured-stat {
    background: var(--gradient-brand);
    border: none;
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.25);
}

.stat-tech-card.featured-stat i,
.stat-tech-card.featured-stat h4,
.stat-tech-card.featured-stat p {
    color: white !important;
}

.stat-tech-card:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.05);
}

/* --- COVERAGE AREA (FUTURISTIC DARK SLATE GRID) --- */
.coverage-section {
    padding: 7rem 0;
    background-color: var(--dark-bg);
}

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

.coverage-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: var(--radius-premium);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.coverage-card:hover {
    border-color: rgba(6, 182, 212, 0.2);
    background: rgba(30, 41, 59, 0.6);
    transform: translateY(-5px);
}

.coverage-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.coverage-card-header .icon-wrap {
    width: 44px;
    height: 44px;
    background: rgba(6, 182, 212, 0.08);
    color: var(--accent-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.coverage-card-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coverage-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.coverage-card ul li {
    color: #94A3B8;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.coverage-card ul li i {
    color: var(--accent-color);
    font-size: 0.8rem;
}

/* --- GOOGLE REVIEWS SECTION & TRUST BANNER --- */
.google-reviews-section {
    padding: 7rem 0;
    background-color: white;
}

.google-trust-banner {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-premium);
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.04);
    margin-bottom: 4rem;
    gap: 30px;
    flex-wrap: wrap;
}

.google-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.google-logo {
    flex-shrink: 0;
}

.brand-text h3 {
    font-size: 1.4rem;
    font-weight: 900;
    color: #0F172A;
    margin: 0 0 4px 0;
}

.brand-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.google-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rating-number {
    font-size: 3.2rem;
    font-weight: 900;
    color: #0F172A;
    line-height: 1;
    letter-spacing: -1px;
}

.rating-details .stars {
    color: #F59E0B;
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.rating-details .review-count {
    font-size: 0.9rem;
    color: #475569;
}

.testimonial-card.google-card {
    background-color: #F8FAFC;
    border: 1px solid var(--border-light);
}

.testimonial-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.verified-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563EB;
    background: rgba(37, 99, 235, 0.06);
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.verified-tag i {
    font-size: 0.8rem;
}

.author-avatar.google-user {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.08);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.google-write-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 30px;
    border-top: 1px solid var(--border-light);
}

.google-write-cta p {
    font-size: 1.1rem;
    color: #475569;
    font-weight: 600;
    margin-bottom: 20px;
}

.btn-write {
    font-size: 0.95rem;
    padding: 12px 28px;
    border-color: #D1D5DB;
}

.btn-write:hover {
    background-color: #0F172A;
    border-color: #0F172A;
    color: white !important;
}

/* --- TESTIMONIAL CARDS GRID --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    padding: 40px;
    border-radius: var(--radius-premium);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.04);
}

.testimonial-card .stars {
    color: #F59E0B;
    display: flex;
    gap: 4px;
}

.testimonial-quote {
    font-style: italic;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.author-info strong {
    display: block;
    color: #0F172A;
    font-size: 0.95rem;
}

.author-info span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --- HORIZONTAL GOOGLE REVIEWS SLIDER --- */
.reviews-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0 40px 0;
    mask-image: linear-gradient(to right, transparent, white 8%, white 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, white 8%, white 92%, transparent);
}

.reviews-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollReviews 45s linear infinite;
}

.reviews-track:hover {
    animation-play-state: paused;
}

.reviews-track .testimonial-card {
    width: 380px;
    min-width: 380px;
    flex-shrink: 0;
    box-sizing: border-box;
    background-color: white;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.04);
}

/* User avatar styling */
.author-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(59, 130, 246, 0.2);
}

@keyframes scrollReviews {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Calculates 6 cards of 380px + 30px gap */
        transform: translateX(calc(-410px * 6));
    }
}

/* Responsive carousel adjustments */
@media (max-width: 768px) {
    .reviews-track .testimonial-card {
        width: 310px;
        min-width: 310px;
        padding: 30px 20px;
    }
    @keyframes scrollReviews {
        0% {
            transform: translateX(0);
        }
        100% {
            /* Calculates 6 cards of 310px + 30px gap */
            transform: translateX(calc(-340px * 6));
        }
    }
}

/* --- BOTTOM CTA SECTION (CLEAN TECH RADIAL GRADIENT) --- */
.bottom-cta-section {
    position: relative;
    background-color: var(--dark-bg);
    padding: 8rem 0;
    text-align: center;
    color: white;
    overflow: hidden;
}

.bottom-cta-glow {
    position: absolute;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 75%);
    z-index: 1;
}

.bottom-cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.bottom-cta-content h2 {
    font-size: 2.8rem;
    font-weight: 900;
    text-transform: uppercase;
    color: white;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.bottom-cta-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #CBD5E1;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- FLOATING WHATSAPP BUTTON --- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-color);
    color: white !important;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    box-shadow: 0 10px 20px -5px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition);
    text-decoration: none !important;
}

.floating-whatsapp::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--whatsapp-color);
    border-radius: 50%;
    top: 0;
    left: 0;
    z-index: -1;
    animation: pulseWhatsapp 2s infinite;
    opacity: 0.4;
}

.floating-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: scale(1.1);
    box-shadow: 0 15px 30px -5px rgba(37, 211, 102, 0.6);
}

@keyframes pulseWhatsapp {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* --- RESPONSIVE WORK --- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    .hero-text-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .google-trust-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .google-brand {
        flex-direction: column;
    }
    .google-stats {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero-text-content h1 {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.15rem;
    }
    .hero-actions, .cta-actions {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 320px;
    }
    .hero-actions .btn, .cta-actions .btn {
        width: 100%;
    }
    .about-features {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 2.1rem;
    }
    .bottom-cta-content h2 {
        font-size: 2.2rem;
    }
}

/* --- GLOBAL APP HEADER STYLES --- */
.app-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.85); /* Pristine white glassmorphism */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.4); /* Soft white border */
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08); /* Premium soft dark shadow */
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Beautiful dynamic scrolled state */
.app-header.scrolled {
    top: 10px;
    background: rgba(255, 255, 255, 0.98); /* Highly opaque white for extreme readability over light backgrounds */
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12);
}

.app-header.scrolled .header-container {
    padding-top: 5px;
    padding-bottom: 5px;
}

body, 
h1, h2, h3, h4, h5, h6,
.site-title, .site-title-link,
.widget-title,
.asap-breadcrumbs, .breadcrumbs,
input, select, textarea, button {
    font-family: 'Outfit', 'Inter', 'Roboto', sans-serif !important;
}

body {
    padding-top: 120px !important;
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 8px 12px 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-brand {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.header-brand a {
    text-decoration: none !important;
    color: var(--dark-bg) !important; /* Premium dark slate branding */
    transition: var(--transition);
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
}

.header-brand a:hover {
    color: var(--primary-color) !important;
}

.header-brand .logo-accent {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 4px;
    display: inline-block !important;
    white-space: nowrap !important;
}

.header-brand img {
    max-height: 40px;
    width: auto;
    display: block;
}

/* Desktop navigation - pill styled with rounded highlights */
.header-nav-desktop {
    display: flex;
    align-items: center;
}

.nav-list-desktop {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 4px;
    background: rgba(15, 23, 42, 0.03); /* Soft subtle dark overlay */
    border-radius: 100px;
    border: 1px solid rgba(15, 23, 42, 0.02);
}

/* Hide redundant Call and WhatsApp items in the desktop menu to prevent capsule crowding and double CTAs */
.nav-list-desktop li:has(a[href*="wa.me"]),
.nav-list-desktop li:has(a[href*="tel:"]),
.nav-list-desktop li:has(a[href*="whatsapp"]),
.nav-list-desktop li:has(a[href*="phone"]),
.nav-list-desktop li[class*="whatsapp"],
.nav-list-desktop li[class*="call"],
.nav-list-desktop li[class*="phone"] {
    display: none !important;
}

/* Backward compatibility fallback */
.nav-list-desktop li a[href*="wa.me"],
.nav-list-desktop li a[href*="tel:"],
.nav-list-desktop li a[href*="whatsapp"] {
    display: none !important;
}

.nav-list-desktop li {
    margin: 0;
    position: relative; /* Crucial for absolute positioning of submenus */
}

.nav-list-desktop li a {
    text-decoration: none !important;
    color: #475569; /* Slate gray for elegant readability */
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 8px 16px; /* optimized spacing */
    border-radius: 100px;
    display: block;
    position: relative;
}

/* Caret indicator for desktop navigation with children */
.nav-list-desktop li.menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-right: 18px; /* Room for caret */
}

.nav-list-desktop li.menu-item-has-children > a::after {
    display: inline-block !important;
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-left: 4px;
    flex-shrink: 0;
}

.nav-list-desktop li.menu-item-has-children:hover > a::after {
    transform: translateY(1px) rotate(-135deg);
}

.nav-list-desktop li a:hover {
    color: white !important;
    background: var(--gradient-brand) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.nav-list-desktop li.current-menu-item a,
.nav-list-desktop li.current_page_item a {
    color: white !important;
    background: var(--gradient-brand) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* Premium Desktop Sub-menu Dropdowns */
.nav-list-desktop li .sub-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 230px;
    background: rgba(255, 255, 255, 0.96); /* Translucent white dropdown */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    border-radius: var(--radius-premium);
    padding: 8px;
    list-style: none;
    margin: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

/* Hover reveal */
.nav-list-desktop li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Dropdown list items styling */
.nav-list-desktop li .sub-menu li {
    width: 100%;
    margin: 2px 0;
}

/* Dropdown link styling */
.nav-list-desktop li .sub-menu li a {
    color: #475569; /* Elegant slate gray */
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
    display: block;
    background: transparent;
    transition: all 0.2s ease;
    text-align: left;
    white-space: nowrap;
    box-shadow: none !important;
}

.nav-list-desktop li .sub-menu li a:hover {
    color: white !important;
    background: var(--gradient-brand) !important;
    transform: translateX(4px);
}

/* Active submenu link style */
.nav-list-desktop li .sub-menu li.current-menu-item a {
    color: white !important;
    background: var(--gradient-brand) !important;
}

/* Bridge helper to prevent closing dropdown when mouse moves down */
.nav-list-desktop li.menu-item-has-children::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 14px;
    display: block;
    z-index: 9999;
}

/* Actions & Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-header-cta {
    padding: 10px 24px !important;
    font-size: 0.9rem;
    font-weight: 800;
    border-radius: 100px !important;
    background: var(--gradient-brand) !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.cta-text-desktop {
    display: inline !important;
}

.cta-text-mobile {
    display: none !important;
}

.btn-header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4) !important;
}

.btn-header-cta svg {
    transition: transform 0.3s ease;
}

.btn-header-cta:hover svg {
    transform: rotate(15deg) scale(1.1);
}

.icon-phone {
    margin-right: 6px;
    flex-shrink: 0;
}

/* Hamburger mobile toggler */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.02);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
    transition: all 0.3s ease;
}

.mobile-nav-toggle:hover {
    background: rgba(15, 23, 42, 0.06);
}

.hamburger-bar {
    width: 18px;
    height: 2px;
    background-color: var(--dark-bg);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile Slide-out Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 10px;
    right: -360px;
    width: 340px;
    max-width: 90%;
    height: calc(100vh - 20px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-premium);
    box-shadow: -20px 20px 60px rgba(15, 23, 42, 0.15);
    z-index: 99999;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 30px;
    box-sizing: border-box;
}

.mobile-nav-drawer.active {
    right: 10px;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    padding-bottom: 20px;
}

.drawer-logo {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--dark-bg);
}

.drawer-logo .logo-accent {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-nav-close {
    background: rgba(15, 23, 42, 0.04);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    background: rgba(15, 23, 42, 0.08);
    transform: rotate(90deg);
}

.drawer-nav {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.nav-list-mobile {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-list-mobile li {
    display: flex;
    flex-direction: column;
}

.nav-list-mobile li a {
    text-decoration: none !important;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-bg);
    display: block;
    padding: 12px 18px;
    border-radius: 14px;
    background: transparent;
    transition: all 0.3s ease;
}

.nav-list-mobile li a:hover {
    color: white !important;
    background: var(--gradient-brand) !important;
    padding-left: 22px;
}

.nav-list-mobile li.current-menu-item a,
.nav-list-mobile li.current_page_item a {
    color: white !important;
    background: var(--gradient-brand) !important;
}

/* Premium Mobile Submenu */
.nav-list-mobile li .sub-menu {
    list-style: none;
    padding: 4px 0 4px 18px;
    margin: 4px 0 8px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 2px solid rgba(59, 130, 246, 0.12);
}

.nav-list-mobile li .sub-menu li {
    margin: 0;
}

.nav-list-mobile li .sub-menu li a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.nav-list-mobile li .sub-menu li a:hover {
    color: white !important;
    background: var(--gradient-brand) !important;
    padding-left: 18px;
}

.nav-list-mobile li .sub-menu li.current-menu-item a {
    color: white !important;
    background: var(--gradient-brand) !important;
}

.drawer-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    padding-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-cta-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted);
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-drawer-call {
    width: 100%;
    border-radius: 50px !important;
    padding: 12px 24px !important;
    font-weight: 800 !important;
}

.btn-drawer-wa {
    width: 100%;
    border-radius: 50px !important;
    padding: 12px 24px !important;
    font-weight: 800 !important;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- APP FOOTER STYLES (4-COLUMN TECH DEEP SLATE) --- */
.app-footer {
    background-color: var(--dark-bg);
    border-top: none !important;
    padding: 6rem 0 3rem 0;
    color: #94A3B8;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 4rem;
}

.footer-column h4.footer-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    margin: 0 0 24px 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    padding-bottom: 8px;
}

.footer-column h4.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--accent-color);
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-brand-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    margin: 0;
}

.footer-logo img {
    max-height: 48px;
    width: auto;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #94A3B8;
}

.footer-trust {
    display: inline-flex;
}

/* Footer Links List & Navigation Menu Styling */
.footer-column ul, 
.footer-column ol,
.footer-links-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list li {
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links-list li a {
    text-decoration: none !important;
    color: #94A3B8;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-links-list li a:hover {
    color: white;
    transform: translateX(4px);
}

/* Category Headers (Root items with submenus, e.g., Servicios, Cobertura) */
.footer-links-list li.menu-item-has-children {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px !important;
}

.footer-links-list li.menu-item-has-children > a {
    color: white !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    pointer-events: auto !important; /* Clickable toggle! */
    user-select: none;
}

/* Rotating arrow indicator */
.footer-links-list li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 8px;
    transform-origin: center;
}

/* When expanded, rotate the chevron! */
.footer-links-list li.menu-item-has-children.open > a::after {
    transform: rotate(-135deg) translateY(-1px);
}

/* Nested Submenus - Premium Collapsible Tree Structure */
.footer-links-list .sub-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-left: 2px solid transparent !important; /* Hidden line when collapsed */
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Expanded state */
.footer-links-list li.menu-item-has-children.open .sub-menu {
    max-height: 500px; /* High enough to contain all sub-links */
    opacity: 1;
    padding: 0 0 0 16px !important;
    margin: 8px 0 12px 0 !important;
    border-left: 2px solid rgba(6, 182, 212, 0.25) !important; /* Elegant cyan vertical timeline line */
}

.footer-links-list .sub-menu li a {
    font-size: 0.85rem !important;
    color: #64748B !important;
    font-weight: 500 !important;
}

.footer-links-list .sub-menu li a:hover {
    color: var(--accent-color) !important;
    transform: translateX(4px);
}



/* tech emergency card inside footer */
.footer-emergency-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-premium);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.footer-emergency-card .card-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-color);
    background: rgba(6, 182, 212, 0.08);
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid rgba(6, 182, 212, 0.15);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.footer-emergency-card .card-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: white;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.footer-emergency-card .card-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #94A3B8;
    margin: 0 0 20px 0;
}

.footer-emergency-card .card-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-emergency-card .card-actions .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}

/* Footer bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    margin-top: 20px;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
}

.footer-bottom p.copyright {
    color: #64748B;
}

.footer-bottom .footer-tagline {
    color: #94A3B8;
    font-weight: 600;
}

/* Responsive Customizations */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 100px !important;
    }
    .app-header {
        top: 10px;
        width: calc(100% - 20px);
        border-radius: 40px;
    }
    .header-container {
        padding: 6px 8px 6px 18px;
    }
    .header-nav-desktop {
        display: none;
    }
    .mobile-nav-toggle {
        display: flex;
    }
    .header-actions .btn-header-cta {
        padding: 8px 18px !important;
        font-size: 0.85rem;
    }
    .cta-text-desktop {
        display: none !important;
    }
    .cta-text-mobile {
        display: inline !important;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .footer-column {
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        padding-bottom: 20px;
    }
    .footer-column:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .footer-column h4.footer-title {
        cursor: pointer;
        user-select: none;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-bottom: 0 !important;
        padding-bottom: 12px;
    }
    .footer-column h4.footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    /* Chevron for mobile footer accordion */
    .footer-column h4.footer-title::before {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        border-right: 2px solid var(--accent-color);
        border-bottom: 2px solid var(--accent-color);
        transform: rotate(45deg);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        transform-origin: center;
        margin-top: -2px;
    }
    .footer-column.open h4.footer-title::before {
        transform: rotate(-135deg);
    }
    .footer-column.open h4.footer-title {
        margin-bottom: 20px !important;
    }
    /* Collapsible footer menu list */
    .footer-column .footer-links-list {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        margin: 0 !important;
    }
    .footer-column.open .footer-links-list {
        max-height: 800px;
        opacity: 1;
        margin-top: 15px !important;
    }
    .footer-links-list li a:hover {
        transform: none;
    }
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }
}

/* --- PREMIUM FLOATING SCROLL-TO-TOP BUTTON (100% NATIVE) --- */
#volver-arriba {
    position: fixed;
    bottom: 30px; /* Aligned symmetrically with WhatsApp */
    left: 30px; /* Shifted to the left side */
    background: var(--gradient-brand);
    color: white !important;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    z-index: 9998;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.8);
}

#volver-arriba.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#volver-arriba:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 25px rgba(59, 130, 246, 0.5);
    color: white !important;
}

#volver-arriba svg {
    transition: transform 0.3s ease;
}

#volver-arriba:hover svg {
    transform: translateY(-2px);
}

/* Adjust size and position on mobile */
@media (max-width: 768px) {
    #volver-arriba {
        bottom: 30px;
        left: 20px; /* Cozy screen-edge margin for mobile */
        width: 44px;
        height: 44px;
    }
}

/* --- PREMIUM SECTION SHAPE DIVIDERS --- */
.section-divider {
    position: absolute;
    left: 0;
    width: 100%;
    height: 80px;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
    pointer-events: none;
}

.divider-bottom {
    bottom: -1px;
}

.divider-top {
    top: -1px;
}

.section-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

.section-divider.fill-white svg path {
    fill: #ffffff !important;
}

.section-divider.fill-light svg path {
    fill: #F1F5F9 !important;
}

.section-divider.fill-dark svg path {
    fill: #0F172A !important;
}

/* Adjust paddings for sections with dividers to prevent overlapping content */
.hero-section {
    padding-bottom: 10rem !important; /* extra room for divider */
}

.services-section {
    position: relative;
    padding-bottom: 10rem !important;
}

.about-section {
    position: relative;
    padding-bottom: 10rem !important;
}

.coverage-section {
    position: relative;
    padding-bottom: 10rem !important;
}

.testimonials-section {
    position: relative;
    padding-bottom: 10rem !important;
}

/* --- PREMIUM SCROLL REVEAL (LAZY SECTIONS) --- */
.lazy-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.lazy-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Prevent background color flashing on lazy-reveal dark sections */
.dark-bg-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
.dark-bg-section > .container-custom {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.dark-bg-section.visible > .container-custom {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsiveness for dividers and reveal */
@media (max-width: 768px) {
    .section-divider {
        height: 40px;
    }
    .hero-section {
        padding-bottom: 7rem !important;
    }
    .services-section,
    .about-section,
    .coverage-section,
    .testimonials-section {
        padding-bottom: 7rem !important;
    }
    .bottom-cta-section.light-bg-section {
        padding-bottom: 7rem !important;
    }
    .lazy-section {
        transform: translateY(20px); /* slightly shorter slide-up on mobile */
    }
    .dark-bg-section > .container-custom {
        transform: translateY(20px);
    }
}

/* --- PREMIUM FULL INTERCALATION SECTION OVERRIDES (DARK/LIGHT TRANSITIONS) --- */

/* 1. QUIÉNES SOMOS (DARK OVERRIDE) */
.about-section.dark-bg-section {
    background-color: var(--dark-bg);
    border-top: none !important;
    border-bottom: none !important;
}

.about-section.dark-bg-section h2 {
    color: white !important;
}

.about-section.dark-bg-section .about-badge {
    background: rgba(6, 182, 212, 0.15) !important;
    color: var(--accent-color) !important;
    border: 1px solid rgba(6, 182, 212, 0.25) !important;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 50px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.about-section.dark-bg-section .about-lead {
    color: #E2E8F0 !important;
}

.about-section.dark-bg-section .feature-text strong {
    color: white !important;
}

.about-section.dark-bg-section .feature-text p {
    color: #CBD5E1 !important;
}

.about-section.dark-bg-section .about-features li .feature-icon {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-color);
}

.about-section.dark-bg-section .stat-tech-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-section.dark-bg-section .stat-tech-card:not(.featured-stat) h4 {
    color: white;
}

.about-section.dark-bg-section .stat-tech-card:not(.featured-stat) p {
    color: #CBD5E1 !important;
}

.about-section.dark-bg-section .stat-tech-card.featured-stat p {
    color: #F8FAFC !important;
}

.about-section.dark-bg-section .stat-tech-card:not(.featured-stat) svg {
    color: var(--accent-color) !important;
}

.about-section.dark-bg-section .btn-outline {
    color: white !important;
    border-color: white;
}

.about-section.dark-bg-section .btn-outline:hover {
    background-color: white;
    color: var(--dark-bg) !important;
    border-color: white;
}

/* 2. COBERTURA (LIGHT OVERRIDE) */
.coverage-section.light-bg-section {
    background-color: white;
}

.coverage-section.light-bg-section .section-badge {
    background: rgba(59, 130, 246, 0.08) !important;
    color: var(--primary-color) !important;
    border: 1px solid rgba(59, 130, 246, 0.12) !important;
}

.coverage-section.light-bg-section .section-title {
    color: #0F172A !important;
}

.coverage-section.light-bg-section .section-subtitle-text {
    color: #475569 !important;
}

.coverage-section.light-bg-section .coverage-card {
    background-color: #F8FAFC;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.03);
}

.coverage-section.light-bg-section .coverage-card:hover {
    background-color: white;
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
}

.coverage-section.light-bg-section .coverage-card-header {
    border-bottom: 1px solid var(--border-light);
}

.coverage-section.light-bg-section .coverage-card-header h3 {
    color: #0F172A !important;
}

.coverage-section.light-bg-section .coverage-card ul li {
    color: #475569;
}

/* 3. GOOGLE REVIEWS / OPINIONES (DARK OVERRIDE) */
.google-reviews-section.dark-bg-section {
    background-color: var(--dark-bg);
}

.google-reviews-section.dark-bg-section .brand-text h3 {
    color: white;
}

.google-reviews-section.dark-bg-section .brand-text p {
    color: #CBD5E1 !important;
}

.google-reviews-section.dark-bg-section .rating-number {
    color: white;
}

.google-reviews-section.dark-bg-section .rating-details .review-count {
    color: #CBD5E1 !important;
}

.google-reviews-section.dark-bg-section .rating-details .review-count strong {
    color: white;
}

.google-reviews-section.dark-bg-section .google-trust-banner {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.google-reviews-section.dark-bg-section .google-write-cta {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.google-reviews-section.dark-bg-section .google-write-cta p {
    color: #E2E8F0 !important;
}

.google-reviews-section.dark-bg-section .btn-write {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.2);
}

.google-reviews-section.dark-bg-section .btn-write:hover {
    background-color: white;
    color: var(--dark-bg) !important;
    border-color: white;
}

.google-reviews-section.dark-bg-section .reviews-track .testimonial-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.google-reviews-section.dark-bg-section .testimonial-quote {
    color: #E2E8F0;
}

.google-reviews-section.dark-bg-section .verified-tag {
    color: var(--accent-color) !important;
    background: rgba(6, 182, 212, 0.08) !important;
    border: 1px solid rgba(6, 182, 212, 0.15) !important;
}

.google-reviews-section.dark-bg-section .testimonial-author {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.google-reviews-section.dark-bg-section .author-info strong {
    color: white;
}

.google-reviews-section.dark-bg-section .author-info span {
    color: #CBD5E1 !important;
}

/* 4. BOTTOM CTA (LIGHT OVERRIDE) */
.bottom-cta-section.light-bg-section {
    background-color: white;
    color: #0F172A;
    border-top: none !important;
    padding-bottom: 10rem !important; /* To make room for the bottom curved divider */
}

.bottom-cta-section.light-bg-section .bottom-cta-content h2 {
    color: #0F172A !important;
}

.bottom-cta-section.light-bg-section .bottom-cta-content p {
    color: #64748B;
}

.bottom-cta-section.light-bg-section .bottom-cta-glow {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 75%);
}


/* ================================================================
   GALERÍA — SECCIÓN HOMEPAGE (#galeria)
   ================================================================ */

.gallery-hp-section {
    background-color: #F1F5F9;
    position: relative;
    padding: 6rem 0 10rem;
}

.gallery-hp-section > .container-custom > .section-header-centered {
    margin-bottom: 3rem;
}

/* Flexible Gallery Layout — Auto Centered & Anti-Squish */
.gallery-hp-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2.5rem;
}

/* Homepage specific sizing for galeria-card */
.gallery-hp-grid .galeria-card {
    width: calc(33.333% - 14px);
    min-width: 290px;
    max-width: 360px;
}

@media (max-width: 991px) {
    .gallery-hp-grid .galeria-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 640px) {
    .gallery-hp-grid .galeria-card {
        width: 100%;
        max-width: 360px;
    }
}

/* Active Pulse GPS Dot for Province Badges */
.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #06B6D4; /* Tech cyan matching accent */
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-shadow: 0 0 6px #06B6D4;
    flex-shrink: 0;
    margin-right: 6px;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid rgba(6, 182, 212, 0.5);
    animation: gpsPulse 2s infinite ease-out;
}

@keyframes gpsPulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Glowing date icon */
.gallery-hp-date svg {
    color: var(--accent-color);
    filter: drop-shadow(0 0 2px rgba(6, 182, 212, 0.3));
}

.gallery-hp-cta {
    text-align: center;
    margin-top: 0.5rem;
}

.gallery-hp-empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748B;
}

.gallery-hp-empty svg { color: #CBD5E1; margin-bottom: 12px; }
.gallery-hp-empty p { margin: 0; font-size: 15px; }

/* fill-light for SVG dividers */
.section-divider.fill-light svg path { fill: #F1F5F9 !important; }

/* Responsive - Gallery Homepage */
@media (max-width: 768px) {
    .gallery-hp-section { padding-bottom: 7rem; }

    /* Desktop shows 6, mobile shows only 4 */
    .gallery-hp-grid .galeria-card:nth-child(n+5) {
        display: none !important;
    }
}


/* ================================================================
   GALERÍA PÚBLICA — PAGE TEMPLATE (/galeria/)
   ================================================================ */

.galeria-page { background: #F8FAFC; min-height: 100vh; }

/* --- Hero Header --- */
.galeria-hero {
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
    padding: 6rem 0 5rem;
    text-align: center;
}

.galeria-hero-inner { position: relative; z-index: 2; }

.galeria-hero-badge {
    display: inline-block;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}

.galeria-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 1rem;
    letter-spacing: -0.5px;
}

.galeria-hero-sub {
    font-size: 1.05rem;
    color: #94A3B8;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.galeria-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.galeria-hero-stat { text-align: center; }
.galeria-hero-stat-val {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.galeria-hero-stat-label { font-size: 12px; color: #64748B; text-transform: uppercase; letter-spacing: 1px; }
.galeria-hero-stat-sep { width: 1px; height: 40px; background: #1E293B; }

/* Hero orbs */
.galeria-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.galeria-orb--1 { width: 400px; height: 400px; background: rgba(59,130,246,0.12); top:-100px; right:-100px; }
.galeria-orb--2 { width: 300px; height: 300px; background: rgba(6,182,212,0.08); bottom:-80px; left:-80px; }
.galeria-orb--3 { width: 200px; height: 200px; background: rgba(59,130,246,0.06); top:50%; left:50%; transform:translate(-50%,-50%); }

/* --- Filter Bar --- */
.galeria-filter-bar {
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
    padding: 1rem 0;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.galeria-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.galeria-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid #E2E8F0;
    color: #64748B;
    text-decoration: none;
    transition: var(--transition);
    background: #fff;
}

.galeria-pill:hover { border-color: var(--primary-color); color: var(--primary-color); background: rgba(59,130,246,.04); }

.galeria-pill.active {
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(59,130,246,.3);
}

.pill-count {
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 700;
}

.galeria-pill:not(.active) .pill-count { background: #F1F5F9; color: #94A3B8; }

/* --- Gallery Body --- */
.galeria-body { padding: 2.5rem 0 5rem; }

.galeria-results-info {
    font-size: 13px;
    color: #94A3B8;
    margin-bottom: 1.5rem;
}

/* --- Card Grid --- */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 3rem;
}

.galeria-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-radius: var(--radius-premium);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Neon expanding indicator line */
.galeria-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 3px;
    background: var(--gradient-brand);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    z-index: 5;
}

.galeria-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.12), 0 0 1px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(255, 255, 255, 0.92);
}

.galeria-card:hover::after {
    width: 100%;
}

.galeria-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10; /* Elegant cinematic widescreen */
    background: #0F172A;
}

.galeria-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.galeria-card:hover .galeria-card-img-wrap img {
    transform: scale(1.08) rotate(0.5deg);
    filter: brightness(0.9);
}

.galeria-card-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    background: linear-gradient(135deg, #1E293B, #334155);
}

/* Premium glass floating zoom button */
.galeria-card-zoom-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transform: scale(0.8) translateY(-4px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
}

.galeria-card:hover .galeria-card-zoom-icon {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.galeria-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.galeria-card-prov {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 50px;
    padding: 3px 10px;
    margin-bottom: 10px;
    width: fit-content;
    transition: var(--transition);
}

.galeria-card:hover .galeria-card-prov {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
}

.galeria-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 8px;
    line-height: 1.4;
    flex: 1;
    transition: color 0.3s ease;
}

.galeria-card:hover .galeria-card-title {
    color: var(--primary-color);
}

.galeria-card-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 14px;
}

.galeria-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.04);
}

.galeria-card-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #64748B;
    font-weight: 600;
}

.galeria-card-date svg {
    color: var(--primary-color);
}

.galeria-card-view-btn {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    padding: 6px 14px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.galeria-card-view-btn svg {
    transition: transform 0.3s ease;
}

.galeria-card:hover .galeria-card-view-btn {
    background: var(--gradient-brand);
    color: white !important;
    border-color: transparent;
    box-shadow: 0 6px 15px rgba(6, 182, 212, 0.25);
    transform: translateY(-1px);
}

.galeria-card:hover .galeria-card-view-btn svg {
    transform: translateX(3px);
}


/* --- Empty State --- */
.galeria-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #64748B;
}
.galeria-empty-state .galeria-empty-icon { color: #CBD5E1; margin-bottom: 1.5rem; }
.galeria-empty-state h2 { color: #334155; margin-bottom: 0.5rem; }
.galeria-empty-state p { margin-bottom: 1.5rem; }

/* --- Pagination --- */
.galeria-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.galeria-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    background: #fff;
    border: 1.5px solid #E2E8F0;
    text-decoration: none;
    transition: var(--transition);
}

.galeria-page-btn:hover:not(.disabled) { border-color: var(--primary-color); color: var(--primary-color); }
.galeria-page-btn.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.galeria-page-numbers { display: flex; gap: 4px; align-items: center; }

.galeria-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: var(--transition);
}

.galeria-page-num:hover { background: #F1F5F9; color: #0F172A; }
.galeria-page-num.active { background: var(--gradient-brand); color: #fff; box-shadow: 0 4px 14px rgba(59,130,246,.35); }
.galeria-page-dots { color: #94A3B8; font-size: 14px; padding: 0 2px; }

/* Responsive - Galería pública */
@media (max-width: 1024px) {
    .galeria-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 640px) {
    .galeria-grid { grid-template-columns: 1fr; gap: 14px; }
    .galeria-hero { padding: 4rem 0 3rem; }
    .galeria-hero-stats { gap: 1rem; }
    .galeria-hero-stat-sep { display: none; }
    .galeria-filter-bar { top: 60px; }
    .galeria-pills { gap: 6px; }
    .galeria-pill { font-size: 12px; padding: 5px 10px; }

    /* Desktop 6 → Mobile 4: ocultar tarjetas 5 y 6 */
    .galeria-grid .galeria-card:nth-child(n+5) {
        display: none !important;
    }
}


/* ================================================================
   LIGHTBOX MODAL
   ================================================================ */

.lb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 15, 0.95);
    backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: lbFadeIn 0.25s ease;
}

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

.lb-card {
    background: linear-gradient(135deg, #0F172A 0%, #070B14 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    width: 100%;
    max-width: 1050px;
    max-height: 85vh;
    position: relative;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    animation: lbSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lbSlideIn { from { opacity: 0; transform: scale(0.95) translateY(20px); } to { opacity: 1; transform: none; } }

/* Close Button - Viewport Fixed */
.lb-close {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #EF4444; /* Solid premium bright red background */
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF; /* High-contrast white icon */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}
.lb-close:hover {
    background: #DC2626; /* Deep glowing ruby red */
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.6);
}
.lb-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Image Column */
.lb-img-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #050912;
    position: relative;
}

.lb-img-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.lb-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta y rellena para mantener un tamaño uniforme y consistente */
    display: block;
    transition: opacity 0.35s ease;
}

.lb-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 9, 18, 0.85);
    backdrop-filter: blur(4px);
}

.lb-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,.05);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Navigation */
.lb-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,.04);
    background: rgba(15, 23, 42, 0.2);
}

.lb-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    color: #E2E8F0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.lb-nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #FFFFFF;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}
.lb-nav-btn:active {
    transform: scale(0.95);
}

.lb-counter { font-size: 13px; color: #64748B; font-weight: 600; letter-spacing: 0.05em; }

/* Info Column */
.lb-info-col {
    width: 330px;
    flex-shrink: 0;
    padding: 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-left: 1px solid rgba(255,255,255,.05);
    background: linear-gradient(180deg, #0F172A 0%, #080D1A 100%);
    position: relative;
}

/* Glassmorphic glowing background accent */
.lb-info-col::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle at 100% 0%, rgba(6, 182, 212, 0.08), transparent 75%);
    pointer-events: none;
    z-index: 1;
}

/* Custom premium scrollbar */
.lb-info-col::-webkit-scrollbar {
    width: 5px;
}
.lb-info-col::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}
.lb-info-col::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
}
.lb-info-col::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lb-info-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}


.lb-prov {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-color);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 50px;
    padding: 4px 12px;
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.1);
}

.lb-prov::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
    animation: lbPulse 2s infinite;
}

@keyframes lbPulse {
    0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(6, 182, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.lb-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #64748B;
    font-weight: 500;
}

.lb-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #F8FAFC;
    margin: 0 0 0.85rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 2;
}

.lb-desc {
    font-size: 13.5px;
    color: #94A3B8;
    line-height: 1.65;
    margin: 0 0 1.5rem;
    position: relative;
    z-index: 2;
}

.lb-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color), transparent);
    border-radius: 99px;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
    position: relative;
    z-index: 2;
}

.lb-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px 16px;
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

@media (min-width: 769px) {
    .lb-brand {
        margin-bottom: auto; /* Push CTA button to bottom on desktop */
    }
}

.lb-brand:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.09);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.lb-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(6, 182, 212, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
    transition: all 0.3s ease;
}

.lb-brand:hover .lb-brand-icon {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: #fff;
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.4);
    border-color: transparent;
}

.lb-brand-name { font-size: 13.5px; font-weight: 700; color: #F8FAFC; letter-spacing: 0.2px; margin-bottom: 2px; }
.lb-brand-sub  { font-size: 11px; color: #94A3B8; font-weight: 500; }

.lb-actions-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 1.75rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

.lb-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 0;
    width: 100%;
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 13px 20px;
    border-radius: 50px;
    background: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.lb-cta-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0891B2 0%, #2563EB 100%);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.lb-cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
}

.lb-cta-btn svg {
    transition: transform 0.3s ease;
}

.lb-cta-btn:hover svg {
    transform: rotate(15deg) scale(1.1);
}

/* WhatsApp Premium Button Styling */
.lb-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 13px 20px;
    border-radius: 50px;
    background: linear-gradient(135deg, #22C55E 0%, #15803D 100%);
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.lb-wa-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #25D366 0%, #16A34A 100%);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.lb-wa-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.25);
}

.lb-wa-btn svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lb-wa-btn:hover svg {
    transform: scale(1.15) rotate(10deg);
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lb-close {
        top: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
    }
    .lb-close svg {
        width: 18px;
        height: 18px;
    }
    .lb-card {
        flex-direction: column;
        max-height: 92vh;
        border-radius: 20px;
        margin: 10px;
    }
    .lb-info-col {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,.05);
        padding: 1.5rem 1.25rem;
        flex-shrink: 0;
        overflow-y: visible;
    }
    .lb-info-col::before {
        width: 100px;
        height: 100px;
    }
    .lb-img-col {
        min-height: 240px;
    }
    .lb-img-wrap {
        height: 300px;
        min-height: 240px;
    }
    .lb-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}


/* ================================================================
   TRABAJOS — GESTIÓN PRIVADA (/nuevos-trabajos/)
   ================================================================ */

/* --- Lock Screen --- */
.tp-lock-screen {
    min-height: 100vh;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.tp-lock-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 440px;
    text-align: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 40px 80px rgba(0,0,0,.5);
}

.tp-lock-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 0 auto 1.25rem;
    box-shadow: 0 12px 30px rgba(59,130,246,.35);
}

.tp-lock-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    background: rgba(6,182,212,.1);
    border: 1px solid rgba(6,182,212,.2);
    border-radius: 50px;
    padding: 3px 12px;
    margin-bottom: 1rem;
}

.tp-lock-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: #F8FAFC;
    margin: 0 0 0.6rem;
}

.tp-lock-sub {
    font-size: 14px;
    color: #CBD5E1;
    line-height: 1.65;
    margin-bottom: 2rem;
}

.tp-lock-form { display: flex; flex-direction: column; gap: 12px; }

.tp-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.tp-input-wrap input {
    width: 100%;
    background: rgba(255,255,255,.05) !important;
    border: 1.5px solid rgba(255,255,255,.1) !important;
    border-radius: 12px !important;
    padding: 13px 48px 13px 46px !important;
    color: #F8FAFC !important;
    font-size: 15px !important;
    outline: none;
    transition: border-color 0.2s;
}

/* Fix browser autofill white background in dark mode */
.tp-input-wrap input:-webkit-autofill,
.tp-input-wrap input:-webkit-autofill:hover, 
.tp-input-wrap input:-webkit-autofill:focus, 
.tp-input-wrap input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 50px #1E293B inset !important;
    -webkit-text-fill-color: #F8FAFC !important;
    transition: background-color 5000s ease-in-out 0s;
}

.tp-input-wrap input:focus { border-color: var(--primary-color) !important; }
.tp-input-wrap input::placeholder { color: #94A3B8 !important; }

.tp-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    pointer-events: none;
}

.tp-eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s;
}
.tp-eye-btn:hover { color: #F8FAFC; }

.tp-lock-error {
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.2);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #FCA5A5;
    text-align: left;
}

.tp-lock-submit { width: 100%; justify-content: center; gap: 10px; padding: 14px; font-size: 15px; font-weight: 700; }

.tp-notice {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 1rem;
}
.tp-notice--warn { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.2); color: #FCD34D; }
.tp-notice--warn a { color: #FCD34D; }

.tp-back-link { display: inline-block; margin-top: 1.5rem; font-size: 13px; color: #94A3B8; text-decoration: none; transition: color 0.2s; }
.tp-back-link:hover { color: #F8FAFC; }

.tp-lock-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.tp-lock-orb--1 { width: 500px; height: 500px; background: rgba(59,130,246,.08); top:-150px; right:-150px; }
.tp-lock-orb--2 { width: 350px; height: 350px; background: rgba(6,182,212,.06); bottom:-100px; left:-100px; }
.tp-lock-orb--3 { width: 200px; height: 200px; background: rgba(59,130,246,.05); top:40%; left:30%; }

.tp-btn-text, .tp-btn-spin { display: inline; }

/* --- Management Panel --- */
.tp-panel { background: #F1F5F9; min-height: 100vh; }

.tp-panel-header {
    background: var(--dark-bg);
    border-bottom: 1px solid rgba(255,255,255,.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.tp-panel-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.tp-panel-title-group { display: flex; align-items: center; gap: 14px; }

.tp-panel-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.tp-panel-title { font-size: 1.2rem; font-weight: 800; color: #F8FAFC; margin: 0; }
.tp-panel-sub   { font-size: 13px; color: #64748B; margin: 0; }

.tp-panel-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.tp-admin-link, .tp-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.tp-admin-link { background: rgba(59,130,246,.15); color: var(--primary-color); border: 1px solid rgba(59,130,246,.2); }
.tp-admin-link:hover { background: rgba(59,130,246,.25); }
.tp-home-btn { background: rgba(255,255,255,.05); color: #94A3B8; border: 1px solid rgba(255,255,255,.08); }
.tp-home-btn:hover { background: rgba(255,255,255,.1); color: #F8FAFC; }
.tp-logout-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 8px; font-size: 12px; font-weight: 600;
    background: rgba(239,68,68,.1); color: #FCA5A5; border: 1px solid rgba(239,68,68,.15);
    cursor: pointer; transition: background 0.2s;
}
.tp-logout-btn:hover { background: rgba(239,68,68,.2); }

.tp-toggle-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.tp-toggle-upload-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.35);
}
.tp-toggle-upload-btn svg {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.tp-toggle-upload-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: #94A3B8;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
}
.tp-toggle-upload-btn.active:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #F8FAFC;
    transform: none;
}

/* --- Panel Body --- */
.tp-panel-body {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

.tp-panel-body.show-upload {
    grid-template-columns: 380px 1fr;
}

/* --- Upload Section --- */
.tp-upload-section {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-premium);
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    position: sticky;
    top: 80px;
    display: none;
}

.tp-panel-body.show-upload .tp-upload-section {
    display: block;
    animation: tpFadeSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tpFadeSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tp-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 1.5rem;
}

/* Drop Zone */
.tp-drop-zone {
    border: 2px dashed #CBD5E1;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 1.25rem;
    overflow: hidden;
    background: #F8FAFC;
}

.tp-drop-zone.drag-over { border-color: var(--primary-color); background: rgba(59,130,246,.04); }

.tp-drop-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    text-align: center;
}

.tp-drop-icon { color: #CBD5E1; margin-bottom: 0.75rem; }
.tp-drop-text { font-size: 14px; color: #64748B; margin: 0 0 4px; }
.tp-browse-label { color: var(--primary-color); cursor: pointer; font-weight: 600; text-decoration: underline; }
.tp-drop-hint { font-size: 12px; color: #94A3B8; margin: 0; }

.tp-drop-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tp-drop-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

.tp-remove-preview {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(15,23,42,.75);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
}

/* Fields */
.tp-fields { display: flex; flex-direction: column; gap: 12px; }
.tp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tp-field-group { display: flex; flex-direction: column; gap: 5px; }

.tp-label { font-size: 12px; font-weight: 700; color: #374151; text-transform: uppercase; letter-spacing: 0.5px; }

.tp-upload-section input[type="text"],
.tp-upload-section input[type="date"],
.tp-upload-section select,
.tp-upload-section textarea,
.tp-modal-card input[type="text"],
.tp-modal-card input[type="date"],
.tp-modal-card select,
.tp-modal-card textarea {
    width: 100%;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    color: #0F172A;
    background: #F8FAFC;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
}

.tp-upload-section input:focus, .tp-upload-section select:focus, .tp-upload-section textarea:focus,
.tp-modal-card input:focus, .tp-modal-card select:focus, .tp-modal-card textarea:focus {
    border-color: var(--primary-color);
    background: #fff;
}

/* Progress */
.tp-progress { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.tp-progress-bar { flex: 1; height: 6px; background: #E2E8F0; border-radius: 3px; overflow: hidden; }
.tp-progress-fill { height: 100%; width: 0; background: var(--gradient-brand); border-radius: 3px; transition: width 0.15s ease; }
.tp-progress-text { font-size: 12px; color: #64748B; white-space: nowrap; }

/* Messages */
.tp-msg { border-radius: 10px; padding: 11px 14px; font-size: 13px; }
.tp-msg--ok { background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.2); color: #059669; }
.tp-msg--err { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2); color: #dc2626; }

.tp-submit-btn { width: 100%; justify-content: center; gap: 8px; margin-top: 8px; font-size: 14px; padding: 12px; }

/* --- Works Grid --- */
.tp-gallery-mgmt { background: #fff; border: 1px solid #E2E8F0; border-radius: var(--radius-premium); padding: 2rem; box-shadow: 0 2px 12px rgba(0,0,0,.05); }

.tp-count-badge {
    margin-left: auto;
    background: var(--gradient-brand);
    color: #fff;
    border-radius: 50px;
    padding: 2px 10px;
    font-size: 13px;
    font-weight: 700;
}

.tp-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 1.5rem;
}

/* --- Private Panel Pagination --- */
.tp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1.5px solid #F1F5F9;
}

.tp-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: #fff;
    border: 1.5px solid #E2E8F0;
    text-decoration: none;
    transition: var(--transition);
}

.tp-page-btn:hover:not(.disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.05);
}

.tp-page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.tp-page-numbers {
    display: flex;
    gap: 4px;
    align-items: center;
}

.tp-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: var(--transition);
}

.tp-page-num:hover {
    background: #F1F5F9;
    color: #0F172A;
}

.tp-page-num.active {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.tp-page-dots {
    color: #94A3B8;
    font-size: 14px;
    padding: 0 2px;
}

.tp-works-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #94A3B8;
}
.tp-works-empty p { margin: 1rem 0 0; }

.tp-work-card {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    background: #F8FAFC;
    transition: transform 0.25s, box-shadow 0.25s;
}
.tp-work-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }

.tp-work-img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #1E293B;
}

.tp-work-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.tp-work-card:hover .tp-work-img-wrap img { transform: scale(1.04); }

.tp-work-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #475569;
}

.tp-work-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.25s;
}
.tp-work-card:hover .tp-work-overlay { opacity: 1; }

.tp-btn-edit, .tp-btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: transform 0.15s, box-shadow 0.15s;
}
.tp-btn-edit { background: var(--primary-color); color: #fff; }
.tp-btn-edit:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59,130,246,.4); }
.tp-btn-delete { background: #EF4444; color: #fff; }
.tp-btn-delete:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(239,68,68,.4); }

.tp-work-info { padding: 12px 14px 14px; }
.tp-work-prov {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--primary-color); margin-bottom: 5px;
}
.tp-work-title { font-size: 13px; font-weight: 700; color: #0F172A; margin: 0 0 4px; line-height: 1.3; }
.tp-work-desc { font-size: 12px; color: #64748B; margin: 0 0 5px; }
.tp-work-date { font-size: 11px; color: #94A3B8; }

/* --- Edit Modal --- */
.tp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: lbFadeIn 0.2s ease;
}

.tp-modal-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 30px 80px rgba(0,0,0,.3);
    animation: lbSlideIn 0.25s cubic-bezier(0.16,1,0.3,1);
}

.tp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.tp-modal-header h3 { font-size: 1.1rem; font-weight: 800; color: #0F172A; margin: 0; }
.tp-modal-close { background: #F1F5F9; border: none; border-radius: 8px; width: 32px; height: 32px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #64748B; transition: background 0.2s; }
.tp-modal-close:hover { background: #E2E8F0; }

.tp-modal-card .tp-field-group { gap: 6px; margin-bottom: 12px; }
.tp-modal-card .tp-field-row { margin-bottom: 12px; }

.tp-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 1.5rem; }
.tp-btn-cancel { padding: 10px 20px; border-radius: 10px; border: 1.5px solid #E2E8F0; background: #fff; color: #64748B; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.tp-btn-cancel:hover { background: #F1F5F9; }

/* Modal Image Editing Styles */
.tp-edit-image-section {
    margin-bottom: 15px;
}
.tp-edit-image-zone {
    position: relative;
    border: 2px dashed #E2E8F0;
    border-radius: 12px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    background: #F8FAFC;
    transition: all 0.2s ease;
}
.tp-edit-image-zone:hover,
.tp-edit-image-zone.drag-over {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.04);
}
.tp-edit-image-zone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tp-edit-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #94A3B8;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s;
}
.tp-edit-image-zone:hover .tp-edit-image-placeholder {
    color: var(--primary-color);
}
.tp-edit-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 12px;
    font-weight: 700;
}
.tp-edit-image-zone:hover .tp-edit-image-overlay {
    opacity: 1;
}
.tp-edit-image-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}
.tp-edit-remove-btn {
    background: none;
    border: none;
    color: #EF4444;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}
.tp-edit-remove-btn:hover {
    background: rgba(239, 68, 68, 0.08);
}

/* Responsive - Trabajos Panel */
@media (max-width: 1024px) {
    .tp-panel-body,
    .tp-panel-body.show-upload { grid-template-columns: 1fr; }
    .tp-upload-section { position: static; }
    .tp-works-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (max-width: 768px) {
    .tp-lock-card { padding: 2rem 1.5rem; }
    .tp-panel-body { padding: 1rem 1rem 3rem; }
    .tp-field-row { grid-template-columns: 1fr; }
    .tp-gallery-mgmt { padding: 1.25rem; }
    .tp-works-grid { grid-template-columns: 1fr !important; gap: 20px; }
    .tp-work-overlay { opacity: 1 !important; background: rgba(15, 23, 42, 0.45) !important; }
    .tp-work-title { font-size: 15px; }
    .tp-work-desc { font-size: 13px; }
}

/* ================================================================
   HEADER — ICON BUTTONS (Phone + Camera)
   ================================================================ */

.btn-header-icon,
.btn-header-camera {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.2s;
}

/* Phone — gradient brand */
.btn-header-icon {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
    padding: 0;
}
.btn-header-icon:hover {
    transform: translateY(-2px) scale(1.07);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.55);
    color: #fff;
}

/* Camera — elegant glass slate-blue button, always visible on white glass header */
.btn-header-camera {
    background: rgba(15, 23, 42, 0.05);
    color: #475569;
    border: 1.5px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
}
.btn-header-camera:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary-color);
    border-color: rgba(59, 130, 246, 0.25);
    transform: translateY(-2px) scale(1.07);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

/* Ensure gap between icon buttons */
.header-actions { gap: 8px !important; }

/* ================================================================
   NUEVAS PLANTILLAS DE WORDPRESS (Páginas, Entradas, Archivos, etc.)
   ================================================================ */

/* --- Page & Post Heroes --- */
.page-hero,
.post-hero,
.archive-hero {
    background: var(--dark-bg);
    padding: 6.5rem 0 7rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-hero-inner,
.post-hero-inner,
.archive-hero-inner {
    position: relative;
    z-index: 5;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Hero Badges */
.page-hero-badge,
.post-hero-badge,
.archive-hero-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 50px;
    padding: 4px 14px;
}

.post-hero-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.post-hero-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-color: rgba(59, 130, 246, 0.2);
    text-decoration: none;
    transition: var(--transition);
}

.post-hero-badge:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-1px);
}

/* Titles */
.page-hero-title,
.post-hero-title,
.archive-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.85rem;
    font-weight: 900;
    color: #F8FAFC;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.archive-hero-title {
    font-size: 2.5rem;
}

.text-glow-accent {
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

/* Subtitles / Description */
.archive-hero-desc,
.author-bio {
    font-size: 15px;
    color: #64748B;
    line-height: 1.65;
    margin-top: 8px;
    max-width: 600px;
}

/* Breadcrumbs customization inside hero */
.page-hero .asap-breadcrumbs,
.post-hero .asap-breadcrumbs,
.archive-hero .asap-breadcrumbs,
.page-hero .breadcrumbs,
.post-hero .breadcrumbs {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 6px 16px !important;
    border-radius: 50px !important;
    font-size: 12px !important;
    color: #64748B !important;
    margin-top: 8px !important;
}

.page-hero .asap-breadcrumbs a,
.post-hero .asap-breadcrumbs a,
.archive-hero .asap-breadcrumbs a {
    color: #94A3B8 !important;
    text-decoration: none !important;
}

.page-hero .asap-breadcrumbs a:hover,
.post-hero .asap-breadcrumbs a:hover {
    color: var(--primary-color) !important;
}

/* Post Hero Meta */
.post-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #64748B;
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.post-hero-meta .meta-item {
    display: inline-flex;
    align-items: center;
    color: #94A3B8;
}

.post-hero-meta .meta-separator {
    width: 4px;
    height: 4px;
    background: #475569;
    border-radius: 50%;
}

/* Orbs */
.page-orb,
.post-orb,
.archive-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(85px);
    pointer-events: none;
    z-index: 1;
}

.page-orb--1, .post-orb--1, .archive-orb--1 {
    width: 450px;
    height: 450px;
    background: rgba(59, 130, 246, 0.07);
    top: -100px;
    right: -100px;
}

.page-orb--2, .post-orb--2, .archive-orb--2 {
    width: 350px;
    height: 350px;
    background: rgba(6, 182, 212, 0.05);
    bottom: -100px;
    left: -50px;
}

/* --- Layout Grids --- */
.page-template-main,
.post-template-main,
.archive-template-main {
    background-color: #F8FAFC;
    padding-bottom: 5rem;
}

.page-content-grid {
    display: grid;
    gap: 2.25rem;
    margin-top: -3.5rem;
    position: relative;
    z-index: 20;
    align-items: start;
}

.page-content-grid.has-sidebar {
    grid-template-columns: 1fr 340px;
}

.page-content-grid.no-sidebar {
    grid-template-columns: 1fr;
}

/* Main Cards */
.gga-page-card,
.gga-post-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.035);
    overflow: hidden;
}

.gga-post-featured-image {
    margin: -3rem -3rem 2.5rem;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.gga-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Content Typography & Elements (Gutenberg styling) --- */
.entry-content {
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: 'Outfit', sans-serif;
    color: #0F172A;
    font-weight: 800;
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.entry-content h2 { font-size: 1.75rem; border-left: 4px solid var(--primary-color); padding-left: 14px; }
.entry-content h3 { font-size: 1.45rem; }
.entry-content h4 { font-size: 1.25rem; }

.entry-content blockquote,
.entry-content .wp-block-quote {
    background: #F1F5F9;
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 16px 16px 0;
    font-style: italic;
    color: #475569;
}

.entry-content blockquote p {
    margin: 0;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.5rem 1.5rem;
    padding: 0;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content table,
.entry-content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 14px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
}

.entry-content th,
.entry-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #E2E8F0;
}

.entry-content th {
    background-color: #F1F5F9;
    font-weight: 700;
    color: #0F172A;
}

.entry-content tr:last-child td {
    border-bottom: none;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 1.5rem 0;
}

/* --- Category Extra Description Wrapper --- */
.gga-category-extra-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    padding: 2.5rem;
    margin-top: 2.5rem;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.035);
}

/* --- Sidebar Area & Widgets --- */
.page-sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.page-sidebar-area .widget {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.02);
}

.page-sidebar-area .widget-title {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0F172A;
    margin: 0 0 1.25rem;
    padding-bottom: 8px;
    border-bottom: 2px solid #F1F5F9;
    position: relative;
}

.page-sidebar-area .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-brand);
}

.page-sidebar-area .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-sidebar-area .widget li {
    padding: 8px 0;
    border-bottom: 1px solid #F8FAFC;
    font-size: 13px;
}

.page-sidebar-area .widget li:last-child {
    border-bottom: none;
}

.page-sidebar-area .widget a {
    color: #475569;
    text-decoration: none;
    transition: var(--transition);
}

.page-sidebar-area .widget a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

/* Search widget formatting */
.page-sidebar-area .search-form {
    position: relative;
}

.page-sidebar-area .search-form input[type="search"] {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border-radius: 10px;
    border: 1.5px solid #E2E8F0;
    outline: none;
    font-size: 13px;
    background: #F8FAFC;
    transition: border-color 0.2s;
}

.page-sidebar-area .search-form input[type="search"]:focus {
    border-color: var(--primary-color);
    background: #fff;
}

.page-sidebar-area .search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94A3B8;
}

/* --- Archive Posts Grid --- */
.archive-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card-premium {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.02);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.post-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.07);
}

.post-card-thumbnail {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #1E293B;
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-card-premium:hover .post-card-thumbnail img {
    transform: scale(1.05);
}

.post-card-thumbnail-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.post-card-premium:hover .post-card-thumbnail-overlay {
    opacity: 1;
}

.view-article-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.post-card-premium:hover .view-article-btn {
    transform: scale(1);
}

.post-card-no-thumbnail {
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
}

/* Card Body */
.post-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-categories {
    margin-bottom: 10px;
}

.post-card-cat-link {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.08);
    padding: 3px 10px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
}

.post-card-cat-link.current-cat {
    color: var(--accent-color);
    background: rgba(6, 182, 212, 0.08);
}

.post-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 10px;
    line-height: 1.35;
}

.post-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.post-card-title a:hover {
    color: var(--primary-color);
}

.post-card-excerpt {
    font-size: 13px;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* Card Footer Meta */
.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #F1F5F9;
    font-size: 11px;
    color: #94A3B8;
    font-weight: 600;
}

.post-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.post-card-readmore svg {
    transition: transform 0.2s;
}

.post-card-readmore:hover {
    color: var(--accent-color);
}

.post-card-readmore:hover svg {
    transform: translateX(3px);
}

/* Empty archives/posts card */
.no-posts-card {
    grid-column: 1 / -1;
    padding: 4rem 2rem;
    text-align: center;
}

.no-posts-content {
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #94A3B8;
}

.no-posts-content h3 {
    font-family: 'Outfit', sans-serif;
    color: #0F172A;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 8px 0 0;
}

.no-posts-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* --- Pagination Wrap --- */
.gga-pagination-wrap {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.gga-pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    text-decoration: none;
    transition: var(--transition);
}

.gga-pagination-wrap .page-numbers:hover {
    color: var(--primary-color);
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.04);
}

.gga-pagination-wrap .page-numbers.current {
    color: #ffffff;
    background: var(--gradient-brand);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

/* --- Author Details in Hero --- */
.author-hero-flex {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    text-align: left;
    width: 100%;
}

.author-hero-avatar {
    flex-shrink: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    width: 96px;
    height: 96px;
}

.author-hero-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-hero-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.author-stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-color);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 50px;
    padding: 3px 10px;
}

.author-bio {
    color: #94A3B8;
    margin: 4px 0 0;
}

/* --- Author Box inside Post Card --- */
.gga-post-card .asap-author-box,
.gga-post-card .author-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 1.75rem;
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.gga-post-card .asap-author-box .avatar,
.gga-post-card .author-box .avatar {
    border-radius: 50%;
    width: 64px;
    height: 64px;
}

.gga-post-card .asap-author-box h3,
.gga-post-card .author-box h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 4px;
}

.gga-post-card .asap-author-box p,
.gga-post-card .author-box p {
    font-size: 13px;
    color: #64748B;
    line-height: 1.6;
    margin: 0;
}

/* --- Comments Area --- */
.gga-post-card .comments-area {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #E2E8F0;
}

.gga-post-card .comments-title,
.gga-post-card .comment-reply-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 1.75rem;
}

.gga-post-card .comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gga-post-card .comment-list .comment-body {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
}

.gga-post-card .comment-list .avatar {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.gga-post-card .comment-meta {
    font-size: 12px;
    color: #94A3B8;
    margin-bottom: 8px;
}

.gga-post-card .comment-author .fn {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #0F172A;
    font-style: normal;
}

.gga-post-card .comment-content p {
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

.gga-post-card .comment-reply-link {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 6px;
    padding: 4px 10px;
    text-decoration: none;
    transition: var(--transition);
}

.gga-post-card .comment-reply-link:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: transparent;
}

/* Comments Form (#respond) */
.gga-post-card #respond {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
}

.gga-post-card #commentform {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.gga-post-card #commentform .comment-form-comment {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gga-post-card #commentform label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
}

.gga-post-card #commentform textarea,
.gga-post-card #commentform input[type="text"],
.gga-post-card #commentform input[type="email"] {
    width: 100%;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 13px;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.gga-post-card #commentform textarea:focus,
.gga-post-card #commentform input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.gga-post-card #commentform .form-submit {
    margin: 0;
}

.gga-post-card #commentform .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
    transition: var(--transition);
}

.gga-post-card #commentform .submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* --- Search Results & Form --- */
.search-hero-form-wrap {
    width: 100%;
    max-width: 500px;
    margin-top: 8px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-hero-form .search-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 13px 100px 13px 44px;
    color: #F8FAFC;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.search-hero-form .search-field:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.search-hero-form .search-icon {
    position: absolute;
    left: 16px;
    color: #64748B;
    pointer-events: none;
}

.search-hero-form .btn-search-submit {
    position: absolute;
    right: 6px;
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 10px;
}

.search-type-badge {
    background: rgba(6, 182, 212, 0.08) !important;
    color: var(--accent-color) !important;
}

/* Search empty state dashboard */
.search-empty-illustration {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    margin-bottom: 8px;
}

.search-empty-text {
    color: #64748B !important;
    font-size: 13px !important;
    margin-bottom: 2rem !important;
}

.search-empty-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.search-empty-actions .btn {
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    height: auto;
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- 404 Dashboard & Dashboard elements --- */
.gga-404-screen {
    padding: 4rem 1.5rem;
}

.gga-404-card {
    max-width: 500px !important;
}

.gga-404-status-badge {
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
}

.gga-404-hologram {
    font-family: 'Outfit', sans-serif;
    font-size: 6.5rem;
    font-weight: 950;
    line-height: 1;
    background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 15px rgba(6, 182, 212, 0.35));
    letter-spacing: -2px;
}

.gga-404-badge {
    color: #EF4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}

.gga-404-title {
    font-size: 1.85rem !important;
}

.gga-404-sub {
    font-size: 13.5px !important;
    color: #64748B !important;
    line-height: 1.65 !important;
    margin-bottom: 2rem !important;
}

.gga-404-search-box {
    margin-bottom: 2.25rem;
}

.gga-404-search-group {
    position: relative;
    display: flex;
    align-items: center;
}

.gga-404-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 48px 12px 16px;
    color: #F8FAFC;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.gga-404-search-input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.gga-404-search-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #64748B;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.gga-404-search-btn:hover {
    color: #F8FAFC;
}

/* Quick links dashboard inside 404 */
.gga-404-dashboard {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.gga-404-dashboard-title {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #475569;
    margin: 0 0 1rem;
    text-align: center;
}

.gga-404-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gga-404-dashboard-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #94A3B8;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: var(--transition);
}

.gga-404-dashboard-btn .btn-icon {
    display: flex;
    align-items: center;
    color: #475569;
    transition: color 0.2s;
}

.gga-404-dashboard-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #F8FAFC;
}

.gga-404-dashboard-btn:hover .btn-icon {
    color: var(--accent-color);
}

.gga-404-dashboard-btn.emergency-btn {
    color: #FCA5A5;
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.1);
}

.gga-404-dashboard-btn.emergency-btn .btn-icon {
    color: #EF4444;
}

.gga-404-dashboard-btn.emergency-btn:hover {
    background: rgba(239, 68, 68, 0.12);
}

.gga-404-dashboard-btn.whatsapp-btn {
    color: #A7F3D0;
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.1);
}

.gga-404-dashboard-btn.whatsapp-btn .btn-icon {
    color: #10B981;
}

.gga-404-dashboard-btn.whatsapp-btn:hover {
    background: rgba(16, 185, 129, 0.12);
}

/* --- Mobile Media Queries --- */
@media (max-width: 1024px) {
    .page-content-grid.has-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero, .post-hero, .archive-hero {
        padding: 5rem 0 5.5rem;
    }
    
    .page-hero-title, .post-hero-title, .archive-hero-title {
        font-size: 1.85rem;
    }
    
    .gga-page-card, .gga-post-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .gga-post-featured-image {
        margin: -1.5rem -1.5rem 1.75rem;
        border-radius: 16px 16px 0 0;
    }
    
    .archive-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .post-card-premium {
        border-radius: 12px;
    }
    
    .post-card-body {
        padding: 1rem;
    }
    
    .post-card-title {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .post-card-excerpt {
        font-size: 12px;
        margin-bottom: 1rem;
    }
    
    .post-card-meta {
        padding-top: 10px;
        font-size: 10px;
    }
    
    .author-hero-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
    }
    
    .author-hero-info {
        align-items: center;
    }
    
    .gga-404-links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .archive-posts-grid {
        grid-template-columns: 1fr;
    }
}
