/*
Theme Name: Alumbrado Público SJC
Theme URI: https://sjc.com.co
Author: AGM Desarrollos
Author URI: https://agmdesarrollos.com
Description: Tema personalizado para Alumbrado Público San José de Cúcuta S.A.S. E.S.P.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sjc
Tags: custom-menu, custom-logo, responsive-layout
*/

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

.technical-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(0, 98, 143, 0.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 98, 143, 0.03) 1px, transparent 1px);
}

.tonal-layer {
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.04);
}

.tonal-card {
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.04);
}

.tonal-card:hover {
    box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #0080BA;
}

.glass-chip {
    background-color: rgba(0, 98, 143, 0.1);
    backdrop-filter: blur(4px);
}

.form-shadow {
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.04);
}

.file-hover:hover {
    background-color: #f1f4f6;
    transform: translateX(4px);
}

.filter-chip-active {
    background-color: #00628f;
    color: #ffffff;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

/* Liquid Glass Styles */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.6),
                inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.7),
                inset 0 -1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.glass-button {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.glass-button-primary {
    background: rgba(0, 98, 143, 0.6);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(0, 98, 143, 0.4);
    box-shadow: 0 2px 12px rgba(0, 98, 143, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.glass-button-primary:hover {
    background: rgba(0, 98, 143, 0.75);
    box-shadow: 0 4px 16px rgba(0, 98, 143, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.glass-refraction {
    position: relative;
    overflow: hidden;
}

.glass-refraction::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    pointer-events: none;
}

/* Liquid UI - Formas Orgánicas/Onduladas */
.wave-path {
    animation: waveFlow 8s ease-in-out infinite;
}

.wave-accent {
    animation: waveFlow 6s ease-in-out infinite reverse;
}

@keyframes waveFlow {
    0%, 100% {
        d: path("M0,20 C360,60 720,0 1080,30 C1260,45 1380,25 1440,20 L1440,60 L0,60 Z");
    }
    50% {
        d: path("M0,30 C360,10 720,50 1080,20 C1260,10 1380,40 1440,30 L1440,60 L0,60 Z");
    }
}

.liquid-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
    animation: blobFloat 12s ease-in-out infinite;
}

@keyframes blobFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    25% {
        transform: translate(20px, -30px) scale(1.1);
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
        border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
    }
    75% {
        transform: translate(10px, 10px) scale(1.05);
        border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%;
    }
}

.liquid-wave-divider {
    height: 40px;
    background: linear-gradient(135deg, rgba(0, 98, 143, 0.05) 0%, rgba(249, 229, 68, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.liquid-wave-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40'%3E%3Cpath fill='%2300628f' fill-opacity='0.1' d='M0,20 C360,40 720,0 1080,20 C1260,30 1380,10 1440,20 L1440,40 L0,40 Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
    animation: waveSlide 10s linear infinite;
}

@keyframes waveSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(33.33%); }
}

/* Liquid UI - Header Botones Azul-Gris Transparente */
.liquid-btn {
    background: rgba(0, 98, 143, 0.08);
    border: 1px solid rgba(0, 98, 143, 0.15);
    backdrop-filter: blur(8px);
    color: #00628f;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.liquid-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 98, 143, 0) 0%, rgba(0, 98, 143, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.liquid-btn:hover::before {
    opacity: 1;
}

.liquid-btn:hover {
    background: rgba(0, 98, 143, 0.15);
    border-color: rgba(0, 98, 143, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 98, 143, 0.1);
}

.liquid-btn-accent {
    background: linear-gradient(135deg, rgba(0, 98, 143, 0.2) 0%, rgba(111, 120, 129, 0.15) 100%);
    border: 1px solid rgba(0, 98, 143, 0.25);
    backdrop-filter: blur(12px);
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.liquid-btn-accent::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 98, 143, 0.3) 0%, rgba(111, 120, 129, 0.25) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.liquid-btn-accent:hover::before {
    opacity: 1;
}

.liquid-btn-accent:hover {
    border-color: rgba(0, 98, 143, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 98, 143, 0.2);
}

/* Header Wave Animation */
.sjc-header-wave {
    width: 100%;
    height: 20px;
    overflow: hidden;
    position: relative;
}

.sjc-header-wave svg {
    width: 200%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    animation: sjcWaveSlide 4s linear infinite;
}

.sjc-wave-line {
    fill: none;
    stroke: rgba(0, 98, 143, 0.2);
    stroke-width: 2;
    stroke-linecap: round;
}

@keyframes sjcWaveSlide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* WhatsApp Floating Button */
.sjc-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sjc-whatsapp-float:hover {
    background: #20bd5a;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.sjc-whatsapp-float svg {
    width: 32px;
    height: 32px;
}

@media (max-width: 768px) {
    .sjc-whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }

    .sjc-whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    /* Mobile menu body lock */
    body.menu-open {
        overflow: hidden;
    }

    /* Improve touch targets on mobile */
    .glass-card,
    .glass-button,
    .liquid-btn,
    .liquid-btn-accent {
        min-height: 44px;
    }

    /* Reduce icon sizes on mobile */
    .material-symbols-outlined {
        font-size: 24px !important;
    }

    /* Better form usability on mobile */
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Social Icons */
.sjc-social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sjc-social-icon svg {
    width: 22px;
    height: 22px;
}

.sjc-social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.sjc-social-whatsapp {
    background: #25d366;
}

.sjc-social-whatsapp:hover {
    background: #20bd5a;
}

.sjc-social-facebook {
    background: #1877f2;
}

.sjc-social-facebook:hover {
    background: #1565c0;
}

.sjc-social-instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.sjc-social-instagram:hover {
    background: linear-gradient(135deg, #e6683c 0%, #dc2743 25%, #cc2366 50%, #bc1888 75%, #a01570 100%);
}

/* PQRS Form Styles */
.sjc-tab-btn {
    border-bottom-width: 2px;
    border-bottom-style: solid;
    border-bottom-color: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    background: none;
    outline: none;
}

.sjc-tab-btn.active {
    color: #00628f;
    border-bottom-color: #00628f;
}

.sjc-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(0, 98, 143, 0.06);
    border-left: 4px solid #00628f;
    border-radius: 0 8px 8px 0;
    font-weight: 700;
    font-size: 16px;
    color: #1d2327;
    margin-bottom: 20px;
}

.sjc-section-title .material-symbols-outlined {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

/* Gallery Styles */
.galeria-filter-btn.active {
    background-color: #00628f;
    color: #ffffff;
}

#galeria-lightbox {
    transition: opacity 0.3s ease;
}

#galeria-lightbox.hidden {
    opacity: 0;
    pointer-events: none;
}

#galeria-lightbox:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

/* Privacidad content styles */
.prose p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.prose h2, .prose h3, .prose h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.prose ul, .prose ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.prose li {
    margin-bottom: 0.5rem;
}
