/* Gob.pe Core CSS for EMSEM Huancayo Clone */

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --gobpe-red: #C00A27;
    --gobpe-red-hover: #9E081F;
    --gobpe-blue: #003366;
    --gobpe-blue-hover: #002244;
    --gobpe-bg-light: #F4F6F8;
    --gobpe-bg-white: #FFFFFF;
    --gobpe-text-dark: #2F3C47;
    --gobpe-text-muted: #536371;
    --gobpe-border-color: #E2E8F0;
    --gobpe-footer-bg: #2F3C47;
    --gobpe-font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

body {
    font-family: var(--gobpe-font-family);
    color: var(--gobpe-text-dark);
    background-color: #FFFFFF;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    zoom: 1.1;
}

/* Container */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--gobpe-bg-white);
    border-bottom: 1px solid var(--gobpe-border-color);
    padding: 15px 0;
}

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

.brand-section {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.brand-section img.gob-logo {
    height: 38px;
    object-fit: contain;
}

.brand-section .divider {
    width: 1px;
    height: 24px;
    background-color: var(--gobpe-border-color);
}

.brand-section .entity-mini-logo {
    height: 34px;
    object-fit: contain;
}

.brand-section .entity-name-mini {
    font-size: 11px;
    color: var(--gobpe-text-muted);
    font-weight: 500;
    max-width: 250px;
    line-height: 1.2;
}

.search-bar-container {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.search-bar-container form {
    display: flex;
}

.search-input {
    width: 100%;
    height: 40px;
    padding: 10px 15px;
    font-size: 14px;
    border: 2px solid #2F3C47;
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-button {
    height: 40px;
    width: 45px;
    background-color: #2F3C47;
    border: 2px solid #2F3C47;
    color: #FFFFFF;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: #1A252C;
    border-color: #1A252C;
}

/* Breadcrumbs */
.breadcrumbs-section {
    background-color: #FFFFFF;
    padding: 12px 0;
    font-size: 12px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 5px;
    color: var(--gobpe-text-muted);
}

.breadcrumbs a {
    color: var(--gobpe-blue);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs li:not(:last-child)::after {
    content: ">";
    margin-left: 5px;
    color: var(--gobpe-text-muted);
}

/* Navigation Menu */
.nav-menu-section {
    background-color: #F8FAFC;
    border-top: 1px solid var(--gobpe-border-color);
    border-bottom: 1px solid var(--gobpe-border-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    position: relative;
}

.nav-item {
    flex: 1;
    text-align: center;
    border-right: 1px solid var(--gobpe-border-color);
    position: relative;
}

.nav-item:first-child {
    border-left: 1px solid var(--gobpe-border-color);
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 52px;
    color: var(--gobpe-text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
}

.nav-link:hover, .nav-item.active .nav-link, #dropdown-toggle.show {
    color: var(--gobpe-red) !important;
    background-color: #FFFFFF !important;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--gobpe-red);
}

.nav-link .material-icons {
    font-size: 16px;
    transition: transform 0.2s;
}

/* Dropdown Menu (Trámites y servicios) */
.nav-item-dropdown {
    position: static !important;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    border: 1px solid var(--gobpe-border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    z-index: 100;
    text-align: left;
    padding: 30px;
    box-sizing: border-box;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gobpe-text-dark);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gobpe-border-color);
    width: 350px;
}

.dropdown-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 25px;
}

.dropdown-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gobpe-blue);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s;
}

.dropdown-item:hover {
    color: var(--gobpe-red);
    text-decoration: underline;
}

.dropdown-item .material-icons {
    font-size: 18px;
    color: var(--gobpe-blue);
}

.btn-all-services {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 480px;
    margin: 30px auto 10px auto;
    padding: 14px 28px;
    border: 2px solid var(--gobpe-blue);
    background-color: #FFFFFF;
    color: var(--gobpe-blue);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-all-services:hover {
    background-color: var(--gobpe-blue);
    color: #FFFFFF;
}

/* Hero Section */
.hero-section {
    padding: 40px 0;
    background-color: #FFFFFF;
}

.hero-logo {
    height: 70px;
    margin-bottom: 20px;
    object-fit: contain;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--gobpe-text-dark);
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-description {
    font-size: 15px;
    color: var(--gobpe-text-muted);
    margin-bottom: 25px;
    max-width: 800px;
}

.hero-link {
    color: var(--gobpe-blue);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.hero-link:hover {
    text-decoration: underline;
}

.alert-incorporation {
    margin-top: 30px;
    background-color: #EFF6FF;
    border-left: 4px solid #3B82F6;
    padding: 12px 20px;
    font-size: 13px;
    color: #1E3A8A;
    font-weight: 500;
}

/* Sections */
.section-gray {
    background-color: var(--gobpe-bg-light);
    padding: 50px 0;
    border-top: 1px solid var(--gobpe-border-color);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.subsection-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gobpe-text-muted);
    text-transform: uppercase;
    margin-bottom: 15px;
}

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

.card-direct {
    background-color: #FFFFFF;
    border: 1px solid var(--gobpe-border-color);
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.card-direct:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #CBD5E1;
}

.card-direct-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-direct-icon {
    color: var(--gobpe-text-dark);
    font-size: 24px;
}

.card-direct-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--gobpe-blue);
}

.card-direct-chevron {
    color: var(--gobpe-blue);
    font-size: 20px;
}

/* Grid layout for contacts and info */
.home-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

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

.info-box {
    background-color: #FFFFFF;
    border: 1px solid var(--gobpe-border-color);
    padding: 30px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.info-box-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.info-box-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: var(--gobpe-text-muted);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.info-box-content {
    margin-bottom: 30px;
    flex-grow: 1;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--gobpe-text-dark);
}

.contact-row a {
    color: var(--gobpe-blue);
    text-decoration: none;
}

.contact-row a:hover {
    text-decoration: underline;
}

.contact-row .material-icons {
    color: var(--gobpe-blue);
    font-size: 18px;
}

.btn-info-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    background-color: #1D3557;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn-info-action:hover {
    background-color: #132238;
}

/* Feedback Section */
.feedback-section {
    background-color: #E6F4EA;
    border: 1px solid #A3E2B7;
    padding: 15px 0;
    font-size: 13px;
}

.feedback-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.feedback-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feedback-left .material-icons {
    color: #137333;
}

.feedback-right a {
    color: var(--gobpe-text-dark);
    text-decoration: underline;
}

.feedback-buttons {
    display: inline-flex;
    gap: 10px;
    margin-left: 15px;
}

.feedback-btn {
    background-color: #FFFFFF;
    border: 1px solid #DADCE0;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    color: var(--gobpe-text-dark);
}

.feedback-btn:hover {
    background-color: #F8F9FA;
}

/* Footer */
footer {
    background-color: var(--gobpe-footer-bg);
    color: #FFFFFF;
    padding: 60px 0 40px 0;
    border-top: 8px solid var(--gobpe-red);
}

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

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

.footer-col-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: none;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 13px;
    opacity: 0.8;
}

.footer-links a:hover {
    text-decoration: underline;
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    transition: background-color 0.2s;
}

.social-links a:hover {
    background-color: rgba(255,255,255,0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

/* Utility classes */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.d-none { display: none !important; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Carousel Section Styles */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    margin-top: 15px;
}

.section-header-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gobpe-text-dark);
}

.btn-header-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border: 1px solid var(--gobpe-border-color);
    background-color: #FFFFFF;
    color: var(--gobpe-blue);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.btn-header-link:hover {
    background-color: var(--gobpe-blue);
    color: #FFFFFF;
}

.btn-header-link .material-icons {
    font-size: 16px;
}

/* Slider Layout */
.carousel-container {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
}

.carousel-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 10px 0;
    width: 100%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.carousel-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Carousel Cards */
.carousel-card {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 280px;
    background-color: #FFFFFF;
    border: 1px solid var(--gobpe-border-color);
    border-bottom: 4px solid var(--gobpe-red);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

@media (max-width: 992px) {
    .carousel-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

@media (max-width: 600px) {
    .carousel-card {
        flex: 0 0 85%;
    }
}

.carousel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #ECEFF1;
}

.carousel-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.carousel-card-date {
    font-size: 11px;
    font-weight: 500;
    color: var(--gobpe-text-muted);
}

.carousel-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gobpe-blue);
    line-height: 1.4;
    text-decoration: none;
}

.carousel-card:hover .carousel-card-title {
    text-decoration: underline;
}

/* Carousel Control Arrows */
.carousel-arrow {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2F3C47;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background-color 0.2s, transform 0.2s;
}

.carousel-arrow:hover {
    background-color: var(--gobpe-red);
    transform: translateY(-50%) scale(1.05);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow .material-icons {
    font-size: 20px;
}

.carousel-arrow.left {
    left: -20px;
    right: auto;
}

/* Card Direct Icon Wrapper (Imagen 2) */
.card-direct-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    background-color: #F8FAFC;
    border: 1px solid var(--gobpe-border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-direct-icon-wrapper .material-icons {
    font-size: 18px;
    color: var(--gobpe-text-dark);
}

