/* Estilos Personalizados Institucionales - EESPP San José de Cañete */

:root {
    --primary-color: #f7631b;
    --primary-dark: #d84f0e;
    --primary-gradient: linear-gradient(135deg, #f7631b 0%, #e65100 100%);
    --secondary-color: #0b2545;
    --accent-blue: #134074;
    --dark-bg: #0b1d33;
    --text-main: #333333;
    --text-muted: #6c757d;
    --bg-light: #f8fafc;
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.07);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.12);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    background-color: #fff;
    overflow-x: hidden;
}

/* Header & Navbar Enhancement */
#header {
    background: #0b2545 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 997;
    transition: all 0.4s ease;
}

#header.header-scrolled {
    background: rgba(7, 23, 44, 0.98) !important;
    backdrop-filter: blur(10px);
}

.header-top {
    background: #07172c;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 12.5px;
    padding: 6px 0;
}

.header-top a {
    color: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}

.header-top a:hover {
    color: var(--primary-color);
}

.header-top .badge-minedu {
    background: rgba(247, 99, 27, 0.2);
    color: #ff9800;
    border: 1px solid rgba(247, 99, 27, 0.4);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 12px;
}

.main-menu {
    padding: 10px 0;
    transition: all 0.3s ease;
}

#logo {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

#logo img.shield-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

#logo .logo-text {
    display: flex;
    flex-direction: column;
}

#logo .logo-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: -0.2px;
    line-height: 1.1;
    margin: 0;
}

#logo .logo-sub {
    font-size: 11px;
    font-weight: 600;
    color: #ff9800 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Auto-adjusted Single Row Navigation */
#nav-menu-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.nav-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 2px;
}

.nav-menu > li {
    float: none !important;
    margin: 0 !important;
    position: relative;
    white-space: nowrap !important;
}

.nav-menu > li > a {
    font-weight: 500 !important;
    font-size: 13px !important;
    color: #ffffff !important;
    padding: 8px 10px !important;
    text-transform: none !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    border-radius: 6px;
    white-space: nowrap !important;
    letter-spacing: 0.2px;
}

.nav-menu > li:hover > a,
.nav-menu > li.menu-active > a {
    color: #ff9800 !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Multi-level Navigation Submenus */
.nav-menu ul {
    background: #ffffff !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25) !important;
    border-radius: 10px !important;
    padding: 8px 0 !important;
    border-top: 3px solid var(--primary-color) !important;
    margin-top: 10px !important;
}

.nav-menu ul li {
    min-width: 220px;
    position: relative;
}

.nav-menu ul li a {
    padding: 8px 18px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    text-transform: none !important;
    transition: all 0.2s ease !important;
    display: block !important;
    white-space: nowrap !important;
}

.nav-menu ul li a:hover {
    color: var(--primary-color) !important;
    background: rgba(247, 99, 27, 0.08) !important;
    padding-left: 22px !important;
}

.nav-menu .btn-portal-nav {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    padding: 7px 16px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 12.5px !important;
    box-shadow: 0 4px 12px rgba(247, 99, 27, 0.35) !important;
    margin-left: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.3s ease !important;
}

.nav-menu .btn-portal-nav:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(247, 99, 27, 0.5) !important;
    background: linear-gradient(135deg, #e65100 0%, #d84f0e 100%) !important;
    color: #fff !important;
}

/* Hero Section */
.hero-banner-eespp {
    background: linear-gradient(rgba(11, 29, 51, 0.82), rgba(11, 29, 51, 0.88)), url('../img/media/fondo.JPG') no-repeat center center/cover;
    padding: 170px 0 110px;
    color: #fff;
    position: relative;
}

.hero-banner-eespp .badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    color: #ffb74d;
    border: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 20px;
}

.hero-banner-eespp h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 20px;
}

.hero-banner-eespp p.lead {
    font-size: 17px;
    color: rgba(255,255,255,0.9);
    max-width: 680px;
    line-height: 1.6;
    margin-bottom: 35px;
}

.btn-hero-primary {
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 600;
    padding: 13px 30px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(247, 99, 27, 0.4);
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(247, 99, 27, 0.55);
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    color: #fff;
    font-weight: 600;
    padding: 13px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: #fff;
    color: #0b2545;
}

/* Quick Access Cards */
.quick-access-section {
    margin-top: -55px;
    position: relative;
    z-index: 10;
}

.quick-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
}

.quick-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px rgba(11, 37, 69, 0.15);
    border-color: rgba(247, 99, 27, 0.3);
}

.quick-card .icon-box {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: rgba(247, 99, 27, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.quick-card:hover .icon-box {
    background: var(--primary-color);
    color: #fff;
}

.quick-card .card-info h5 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 3px;
    color: #0b2545;
}

.quick-card .card-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

/* News Cards */
.news-card-modern {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(247, 99, 27, 0.25);
}

.news-card-img {
    height: 210px;
    overflow: hidden;
    position: relative;
}

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

.news-card-modern:hover .news-card-img img {
    transform: scale(1.06);
}

.news-date-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(11, 29, 51, 0.85);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-body h4 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.news-card-body h4 a {
    color: #0b2545;
    transition: color 0.2s ease;
}

.news-card-body h4 a:hover {
    color: var(--primary-color);
}

.news-card-body p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}

.news-card-body .read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.news-card-body .read-more:hover {
    color: var(--primary-dark);
    gap: 10px;
}

/* Institutional Content Style */
.institutional-content {
    line-height: 1.8;
    font-size: 15px;
    color: #374151;
}

.institutional-content h2, 
.institutional-content h3 {
    color: #0b2545;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 14px;
}

.institutional-content p {
    margin-bottom: 16px;
}

.institutional-content ul,
.institutional-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.institutional-content li {
    margin-bottom: 8px;
}

.institutional-content table {
    width: 100% !important;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.institutional-content table th {
    background: #0b2545;
    color: #fff;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    text-align: left;
}

.institutional-content table td {
    padding: 10px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.institutional-content table tr:nth-child(even) {
    background-color: #f9fafb;
}

/* Sidebar Menu */
.sidebar-institution {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.sidebar-institution h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0b2545;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #4b5563;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.sidebar-menu-list li a:hover,
.sidebar-menu-list li.active a {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

/* Footer modern styles */
.footer-modern {
    background: #071424;
    color: rgba(255,255,255,0.75);
    padding-top: 60px;
}

.footer-modern h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-modern h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--primary-color);
}

.footer-modern ul.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-modern ul.footer-links li {
    margin-bottom: 10px;
}

.footer-modern ul.footer-links li a {
    color: rgba(255,255,255,0.75);
    font-size: 13.5px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-modern ul.footer-links li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom-bar {
    background: #040d17;
    padding: 18px 0;
    font-size: 13px;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
