/*
Theme Name: Atención para el Ciudadano
Theme URI: https://atencionciudadano.gob.pe
Author: elvis ticona ojeda
Description: Tema institucional para publicación de aplicativos ciudadanos.
Version: 1.0
*/

        :root {
            --cusco-red: #8B0000;
            --cusco-gold: #FFD700;
            --cusco-white: #ffffff;
            --cusco-light-pink: #fdf2f2;
            --cusco-dark-footer: #0a111a;
        }

        body {
            font-family: 'Lexend Deca', sans-serif;
            background-color: #fff;
            scroll-behavior: smooth;
        }

        /* --- Estilos del Encabezado --- */
        header {
            background-color: var(--cusco-white);
            border-bottom: 2px solid rgba(139, 0, 0, 0.1);
            padding: 15px 0;
            position: sticky;
            top: 0;
            z-index: 50;
        }

        .btn-login {
            background-color: var(--cusco-red);
            color: white;
            padding: 10px 24px;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s;
            box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
        }

        .btn-login:hover {
            background-color: #a50000;
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(139, 0, 0, 0.3);
        }

        /* --- Sección Hero --- */
  

        .welcome-text {
            max-width: 700px;
            margin: 20px auto 0;
            font-weight: 300;
            font-size: 1.1rem;
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.9);
            border-left: 3px solid var(--cusco-gold);
            padding-left: 20px;
        }

        /* --- Separador --- */
        .elegant-separator {
            width: 100%;
            height: 1px;
            background: linear-gradient(to right, transparent, var(--cusco-gold), transparent);
            margin: 40px 0;
            opacity: 0.5;
        }

        /* --- Tarjetas de Servicios Animadas --- */
        .grid-custom {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
            gap: 30px;
            max-width: 800px;
            margin: 0 auto;
        }

        .service-container {
            background-color: var(--cusco-white);
            display: flex;
            width: 100%;
            height: 140px;
            position: relative;
            border-radius: 16px;
            transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            cursor: pointer;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
            overflow: hidden;
            border: 1px solid rgba(0,0,0,0.03);
        }

        .service-container:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
        }

        .left-side {
            background-color: var(--cusco-red);
            width: 90px;
            height: 100%;
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: 0.6s ease;
            flex-shrink: 0;
            overflow: hidden;
        }

        .service-container:hover .left-side {
            width: 100%;
        }

        .right-side {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
            padding: 0 25px;
            width: 100%;
            transition: 0.4s;
            background: white;
        }

        .service-container:hover .right-side {
            opacity: 0;
            transform: translateX(20px);
        }

        .service-title {
            font-size: 19px;
            font-weight: 700;
            color: var(--cusco-red);
            line-height: 1.2;
        }

        .animated-icon {
            width: 44px;
            height: 44px;
            fill: white;
            z-index: 10;
        }

        .card-inner-anim {
            width: 70px;
            height: 45px;
            background-color: var(--cusco-gold);
            border-radius: 6px;
            position: absolute;
            display: flex;
            z-index: 5;
            top: 150px;
            transition: 0.6s;
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        }

        .service-container:hover .card-inner-anim {
            animation: slide-up-anim 0.8s 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
        }

        @keyframes slide-up-anim {
            0% { transform: translateY(0); opacity: 0; }
            100% { transform: translateY(-110px); opacity: 1; }
        }

        /* --- Modal de Registro --- */
        #modalOverlay {
            background-color: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(8px);
            display: none;
            position: fixed;
            inset: 0;
            z-index: 100;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .modal-content {
            background: #f3f4f6;
            width: 100%;
            max-width: 650px;
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 30px 60px rgba(0,0,0,0.4);
            position: relative;
            border: 1px solid white;
        }

        .input-group {
            background: white;
            border-radius: 10px;
            display: flex;
            align-items: center;
            padding: 4px 16px;
            border: 1px solid #e5e7eb;
            transition: border-color 0.3s;
        }

        .input-group:focus-within {
            border-color: var(--cusco-red);
        }

        .input-group input {
            width: 100%;
            padding: 12px;
            border: none;
            outline: none;
            font-size: 15px;
        }

        /* --- Estilos del Pie de Página Oscuro --- */
        footer {
            background-color: var(--cusco-dark-footer);
            color: #ffffff;
            padding: 60px 0 20px 0;
            position: relative;
        }

        .footer-social-box {
            background: white;
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            transition: transform 0.3s;
            cursor: pointer;
        }

        .footer-social-box:hover {
            transform: scale(1.1);
        }

        .footer-explore-title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 25px;
            color: white;
        }

        .footer-link-col a {
            display: block;
            color: #a0aec0;
            font-size: 14px;
            margin-bottom: 12px;
            transition: color 0.3s;
        }

        .footer-link-col a:hover {
            color: var(--cusco-gold);
        }

        .footer-bottom-bar {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 25px;
            margin-top: 50px;
        }

        .back-to-top {
            background: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            right: 30px;
            bottom: 20px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
            transition: 0.3s;
            cursor: pointer;
            z-index: 10;
        }

        .back-to-top:hover {
            background: var(--cusco-gold);
            transform: translateY(-5px);
        }

        .footer-phone {
            font-size: 32px;
            font-weight: 700;
            margin: 10px 0 25px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 10px;
        }








 /* --- Sección Hero --- */

.hero-section {
    /* min-height: calc(100vh - 500px);   */
    /* height: 100vh;  */
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax sutil */
    /* display: flex; */
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-top: -86px; /* Ajuste para que suba detrás del header transparente si lo deseas */
    padding-top: 86px; 
}

/* Asegura que el video ocupe todo el espacio sin deformarse */
.hero-section video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
}

.centrar-hero-contenido {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrado vertical */
    align-items: center;     /* Centrado horizontal */
    /* min-height: 100vh;       */
    width: 100%;
}




.hero-content {
    animation: fadeInUp 1.2s ease-out;
}

/* Ajuste del texto de bienvenida para que destaque sobre video */
.welcome-text {
    max-width: 800px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}



.active-tab {
    border-color: #9d2449 !important; /* Rojo Cusco */
    color: #fff !important;
    background-color: #bc2955;
}

.active-tab i {
    color: #fff !important;
}

.tab-content-item {
    animation: slideUp 0.5s ease-out;
}

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

/* seccion slider  */
/* Ocultar barra de scroll para el slider */
    .scrollbar-hide::-webkit-scrollbar {
        display: none;
    }
    .scrollbar-hide {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* Animación de entrada suave */
    .animate-fade-in {
        animation: fadeIn 1s ease-out forwards;
    }

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



