:root {
    --primary-dark: #0E2D43;
    --primary-blue: #173D57;
    --accent-teal: #2E969B;
    --accent-teal-dark: #247A80;
    --light-gray: #F4F6F9;
    --white: #FFFFFF;
    --text-dark: #163044;
    --text-muted: #667580;
    --shadow-sm: 0 2px 8px rgba(14, 45, 67, 0.08);
    --shadow-md: 0 4px 16px rgba(14, 45, 67, 0.12);
    --shadow-lg: 0 8px 24px rgba(14, 45, 67, 0.16);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

main {
    padding-top: 118px;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    background-color: var(--white);
    border-bottom: 1px solid rgba(14, 45, 67, 0.08);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
    padding: 0;
}

.navbar-logo {
    display: block;
    width: auto;
    height: 86px;
    object-fit: contain;
}

.nav-link {
    color: var(--primary-dark);
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-teal);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--accent-teal-dark), var(--accent-teal));
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--accent-teal), var(--primary-blue));
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-home {
    background-image:
        linear-gradient(135deg, rgba(8, 27, 43, 0.82) 0%, rgba(12, 45, 74, 0.72) 58%, rgba(20, 88, 92, 0.68) 100%),
        url('../Heros/inicio.jpg');
}

.hero-servicios {
    background-image: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
}

.hero-servicios-page {
    background-image:
        linear-gradient(135deg, rgba(12, 45, 74, 0.78) 0%, rgba(46, 150, 155, 0.66) 100%),
        url('../Heros/servicios.jpg');
}

.hero-blog {
    background-image:
        linear-gradient(135deg, rgba(8, 27, 43, 0.78) 0%, rgba(12, 45, 74, 0.66) 100%),
        url('../Heros/blog.jpg');
}

.hero-portafolio {
    background-image:
        linear-gradient(135deg, rgba(8, 27, 43, 0.8) 0%, rgba(20, 88, 92, 0.68) 100%),
        url('../Heros/portafolio.jpg');
}

.hero-nosotros {
    background-image:
        linear-gradient(135deg, rgba(12, 45, 74, 0.76) 0%, rgba(20, 88, 92, 0.68) 100%),
        url('../Heros/nosotros.jpg');
}

.hero-contacto {
    background-image:
        linear-gradient(135deg, rgba(8, 27, 43, 0.8) 0%, rgba(12, 45, 74, 0.68) 100%),
        url('../Heros/contacto.jpg');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 27, 43, 0.28);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

/* Sections */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Problem Cards */
.problem-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    text-align: center;
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.problem-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.problem-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.problem-card p {
    color: var(--text-muted);
    margin: 0;
}

/* Service Cards */
.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.service-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

/* Process Steps */
.process-step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-teal);
    margin-bottom: 1rem;
    opacity: 0.3;
}

.process-step h5 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.process-step p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    padding: 5rem 0;
    color: var(--white);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Detail Cards (Servicios) */
.detail-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    height: 100%;
    transition: var(--transition);
}

.detail-card:hover {
    box-shadow: var(--shadow-lg);
}

.detail-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.detail-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.detail-description {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.detail-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.detail-list {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.5rem 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.detail-list i {
    flex: 0 0 auto;
    color: var(--accent-teal);
    margin-top: 0.25rem;
}

.detail-card-action {
    margin-top: auto;
    padding-top: 1.5rem;
}

.detail-card-action .btn {
    max-width: 100%;
    white-space: normal;
}

/* Case Studies */
.case-study {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.case-study:hover {
    box-shadow: var(--shadow-lg);
}

.case-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.case-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.case-client {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.case-section {
    margin-bottom: 1.5rem;
}

.case-section h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.case-section p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.result-list {
    list-style: none;
    padding: 0;
}

.result-list li {
    padding: 0.4rem 0;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.result-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: 700;
}

/* Tech Cards */
.tech-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.tech-card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.tech-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.tech-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* Portfolio Systems */
.portfolio-hero {
    min-height: 72vh;
}

.portfolio-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 600;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(10px);
}

.portfolio-hero-stats {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.portfolio-hero-stats div {
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
}

.portfolio-hero-stats strong,
.portfolio-hero-stats span {
    display: block;
}

.portfolio-hero-stats strong {
    font-size: 1.7rem;
    line-height: 1;
    color: var(--white);
}

.portfolio-hero-stats span {
    margin-top: 0.4rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
}

.trust-strip {
    padding: 1.5rem 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
}

.trust-strip .trust-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 780px;
    margin: 0 auto;
}

.trust-strip .trust-stats div {
    text-align: center;
    padding: 1.1rem 1.25rem;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
}

.trust-strip .trust-stats strong {
    font-size: 1.55rem;
}

.portfolio-systems-section {
    background:
        linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%);
}

.portfolio-filter-bar {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

@media (min-width: 992px) {
    .portfolio-filter-bar {
        justify-content: flex-end;
    }
}

.portfolio-filter {
    border: 1px solid #D7DEE8;
    background: var(--white);
    color: var(--primary-dark);
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-weight: 600;
    line-height: 1;
    transition: var(--transition);
}

.portfolio-filter:hover,
.portfolio-filter.active {
    color: var(--white);
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    box-shadow: var(--shadow-sm);
}

.portfolio-system-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.5rem;
    border: 1px solid #E5EAF1;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.portfolio-system-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-teal));
}

.portfolio-system-card:hover {
    transform: translateY(-8px);
    border-color: rgba(46, 150, 155, 0.28);
    box-shadow: var(--shadow-lg);
}

.home-portfolio-section {
    background: var(--light-gray);
}

.home-portfolio-card {
    height: 100%;
}

.home-portfolio-card .portfolio-card-body {
    flex: 1;
}

.home-portfolio-card .portfolio-card-body p {
    line-height: 1.7;
}

.home-portfolio-card .portfolio-tech-list {
    margin-top: auto;
    margin-bottom: 1rem;
}

.home-portfolio-card-actions {
    justify-content: flex-start;
    margin-top: 0;
}

.home-portfolio-card-actions .btn {
    width: 100%;
}

.home-portfolio-actions {
    margin-top: 2.25rem;
}

.newsletter-section {
    background: var(--white);
}

.newsletter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    border: 1px solid rgba(14, 45, 67, 0.12);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(14, 45, 67, 0.04), rgba(46, 150, 155, 0.08));
    box-shadow: var(--shadow-sm);
}

.newsletter-copy h2 {
    color: var(--primary-dark);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    margin: 0.4rem 0 0.75rem;
}

.newsletter-copy p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0;
}

.newsletter-form {
    width: 100%;
}

.newsletter-input-group {
    display: flex;
    gap: 0.75rem;
}

.newsletter-input-group .form-control {
    min-height: 54px;
    border-color: #D7DEE8;
    border-radius: 8px;
}

.newsletter-input-group .btn {
    flex: 0 0 auto;
}

.home-portfolio-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background:
        radial-gradient(circle at 80% 20%, rgba(46, 150, 155, 0.42), transparent 32%),
        linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    font-size: 3rem;
}

.portfolio-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.portfolio-card-image {
    aspect-ratio: 16 / 10;
    margin: -0.25rem 0 1.25rem;
    border-radius: 10px;
    overflow: hidden;
    background: var(--light-gray);
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.portfolio-system-card .portfolio-card-image img {
    object-fit: contain;
    background: #050B19;
}

.portfolio-card-carousel .carousel-inner,
.portfolio-card-carousel .carousel-item {
    height: 100%;
}

.portfolio-card-carousel .carousel-inner {
    overflow: hidden;
    border-radius: inherit;
}

.portfolio-card-carousel .carousel-control-prev,
.portfolio-card-carousel .carousel-control-next {
    width: 2.8rem;
    opacity: 0;
    transition: var(--transition);
    z-index: 3;
}

.portfolio-card-carousel:hover .carousel-control-prev,
.portfolio-card-carousel:hover .carousel-control-next,
.portfolio-card-carousel:focus-within .carousel-control-prev,
.portfolio-card-carousel:focus-within .carousel-control-next {
    opacity: 1;
}

.portfolio-card-carousel .carousel-control-prev-icon,
.portfolio-card-carousel .carousel-control-next-icon {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    background-color: rgba(10, 34, 57, 0.78);
    background-size: 58%;
}

.portfolio-card-carousel .carousel-indicators {
    right: 0.75rem;
    bottom: 0.55rem;
    left: auto;
    justify-content: flex-end;
    gap: 0.35rem;
    margin: 0;
    z-index: 4;
}

.portfolio-card-carousel .carousel-indicators [data-bs-target] {
    width: 0.5rem;
    height: 0.5rem;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.72);
    opacity: 1;
}

.portfolio-card-carousel .carousel-indicators .active {
    width: 1.2rem;
    background-color: var(--accent-teal);
}

.portfolio-system-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    font-size: 1.65rem;
}

.portfolio-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(46, 150, 155, 0.12);
    color: var(--primary-blue);
    font-size: 0.82rem;
    font-weight: 700;
}

.portfolio-status.status-demo,
.portfolio-status.status-adaptable {
    color: #0E6F73;
    background: rgba(46, 150, 155, 0.14);
}

.portfolio-status.status-implemented {
    color: #276749;
    background: rgba(39, 103, 73, 0.12);
}

.portfolio-status.status-private {
    color: #4A5568;
    background: rgba(74, 85, 104, 0.12);
}

.portfolio-status.status-development {
    color: #975A16;
    background: rgba(151, 90, 22, 0.12);
}

.portfolio-card-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.portfolio-status.featured {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
}

.portfolio-category {
    display: inline-block;
    color: var(--accent-teal);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.55rem;
}

.portfolio-card-body h3 {
    color: var(--primary-dark);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.portfolio-card-body p {
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

.portfolio-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.portfolio-tech-list span {
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    background: var(--light-gray);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 600;
}

.portfolio-value-list {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.portfolio-value-list span {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.7rem;
    border: 1px solid rgba(46, 150, 155, 0.18);
    border-radius: 999px;
    color: var(--primary-dark);
    background: rgba(46, 150, 155, 0.08);
    font-size: 0.84rem;
    font-weight: 700;
}

.portfolio-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
}

.portfolio-card-actions .btn {
    white-space: nowrap;
}

.portfolio-system-card > .portfolio-tech-list,
.portfolio-system-card > .portfolio-value-list {
    min-height: 4.75rem;
    margin-top: auto;
}

.portfolio-system-card > .portfolio-tech-list + .portfolio-card-actions,
.portfolio-system-card > .portfolio-value-list + .portfolio-card-actions {
    margin-top: 0;
}

.portfolio-contact-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

.portfolio-contact-link:hover {
    color: var(--accent-teal);
}

.portfolio-item.is-hidden {
    display: none;
}

.portfolio-empty-state {
    max-width: 520px;
    margin: 3rem auto 0;
    text-align: center;
    padding: 2.5rem;
    border: 1px dashed #C8D2DF;
    border-radius: 12px;
    background: var(--white);
}

.portfolio-empty-state i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.portfolio-empty-state h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.project-modal .modal-content {
    position: relative;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    max-height: calc(100vh - 2rem);
    box-shadow: var(--shadow-lg);
}

.project-modal .modal-dialog {
    max-width: min(1280px, calc(100vw - 2rem));
}

.project-modal .modal-body {
    padding: 1.25rem;
    overflow-x: hidden;
}

.project-modal .modal-body > .row {
    align-items: flex-start;
}

.project-modal .modal-footer {
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-color: #E5EAF1;
    background: var(--white);
}

.project-modal .project-whatsapp-action {
    background: #25D366;
    border-color: #25D366;
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.22);
}

.project-modal .project-whatsapp-action:hover,
.project-modal .project-whatsapp-action:focus-visible {
    background: #1FB65A;
    border-color: #1FB65A;
}

.project-modal-header {
    align-items: flex-start;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    border: 0;
    padding: 1.35rem 1.5rem;
}

.project-modal-header .portfolio-category {
    color: rgba(255, 255, 255, 0.78);
}

.project-modal-header .modal-title {
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 700;
    line-height: 1.2;
}

.project-preview-panel {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: calc(100vh - 13.5rem);
    min-height: 0;
    padding: 1.5rem;
    border-radius: 12px;
    color: var(--white);
    background:
        radial-gradient(circle at 85% 15%, rgba(46, 150, 155, 0.35), transparent 28%),
        linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    overflow: hidden;
}

.project-preview-icon {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

.project-preview-image {
    flex: 0 0 auto;
    aspect-ratio: 16 / 10;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(4, 18, 35, 0.5);
}

.project-preview-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.project-preview-copy {
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.45rem;
}

.project-preview-copy::-webkit-scrollbar {
    width: 0.35rem;
}

.project-preview-copy::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.project-preview-copy::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.42);
    border-radius: 999px;
}

.project-preview-panel h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.project-preview-panel p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.75;
    margin-bottom: 0;
}

.project-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.project-preview-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.88rem;
    font-weight: 700;
}

.project-preview-meta .bi-circle-fill {
    font-size: 0.45rem;
    color: var(--accent-teal);
}

.project-detail-block {
    margin-bottom: 1.5rem;
}

.project-detail-block h4 {
    color: var(--primary-dark);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.project-detail-block p {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 0;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.project-gallery-item {
    margin: 0;
    border: 1px solid #E5EAF1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
}

.project-gallery-trigger {
    width: 100%;
    display: block;
    padding: 0;
    border: 0;
    color: inherit;
    background: #050B19;
    cursor: pointer;
    text-decoration: none;
}

.project-gallery-trigger img {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: contain;
    background: #050B19;
}

.project-gallery-trigger.active {
    outline: 3px solid var(--accent-teal);
    outline-offset: -3px;
}

.project-gallery-trigger:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: -3px;
}

.project-gallery-item figcaption {
    display: grid;
    gap: 0.2rem;
    padding: 0.75rem;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.project-gallery-item figcaption strong {
    color: var(--primary-dark);
    font-size: 0.92rem;
}

.project-gallery-item figcaption span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.project-image-viewer {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem 2rem;
    background: rgba(4, 18, 35, 0.92);
}

.project-image-viewer[hidden] {
    display: none;
}

.project-image-viewer img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: var(--shadow-lg);
}

.project-image-viewer-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.35rem;
    transform: translateY(-50%);
    transition: var(--transition);
}

.project-image-viewer-nav.prev {
    left: 1rem;
}

.project-image-viewer-nav.next {
    right: 1rem;
}

.project-image-viewer-nav:hover,
.project-image-viewer-nav:focus-visible {
    background: rgba(46, 150, 155, 0.85);
}

.project-image-viewer-counter {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    color: var(--white);
    background: rgba(4, 18, 35, 0.72);
    font-size: 0.86rem;
    font-weight: 700;
    transform: translateX(-50%);
}

.project-image-viewer-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.25rem;
    transition: var(--transition);
}

.project-image-viewer-close:hover,
.project-image-viewer-close:focus-visible {
    background: rgba(46, 150, 155, 0.85);
}

.admin-confirm-modal .modal-content {
    border: 0;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
}

.admin-confirm-modal .modal-header {
    align-items: flex-start;
    border-bottom-color: #E5EAF1;
}

.admin-confirm-modal .modal-title {
    color: var(--primary-dark);
    font-size: 1.35rem;
    font-weight: 900;
}

.admin-confirm-modal .modal-body {
    color: var(--text-muted);
    line-height: 1.75;
}

.blog-content {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.9;
}

.blog-content a {
    color: var(--primary-blue);
    font-weight: 700;
}

.project-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-check-list li {
    position: relative;
    padding: 0.42rem 0 0.42rem 1.65rem;
    color: var(--text-muted);
}

.project-check-list li:before {
    content: "\F26E";
    position: absolute;
    left: 0;
    top: 0.48rem;
    font-family: "bootstrap-icons";
    color: var(--accent-teal);
    font-size: 0.95rem;
}

.project-check-list.two-columns {
    columns: 2;
    column-gap: 2rem;
}

.modal-tech-list {
    margin-bottom: 0;
}

.portfolio-cta .btn-primary-custom {
    background: var(--white);
    color: var(--primary-blue);
}

.portfolio-cta .btn-primary-custom:hover {
    background: var(--light-gray);
}

/* FAQ / AEO Content */
.faq-section {
    background: var(--white);
}

.faq-card {
    height: 100%;
    padding: 1.75rem;
    border: 1px solid #E5EAF1;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-card:hover {
    transform: translateY(-5px);
    border-color: rgba(46, 150, 155, 0.28);
    box-shadow: var(--shadow-md);
}

.faq-card h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.faq-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* About Section */
.about-content {
    padding-right: 2rem;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-stats {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
    min-height: 9.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.05;
}

.stat-number.is-text-stat {
    font-size: clamp(2.1rem, 2.8vw, 2.55rem);
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1rem;
}

/* Experience Cards */
.experience-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.experience-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.experience-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.experience-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* Methodology Cards */
.methodology-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.methodology-card:hover {
    box-shadow: var(--shadow-md);
}

.methodology-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-teal);
    opacity: 0.3;
    flex-shrink: 0;
}

.methodology-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.methodology-content p {
    color: var(--text-muted);
    margin: 0;
}

/* Tech Badges */
.tech-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.tech-badge i {
    font-size: 2.5rem;
    color: var(--white);
    display: block;
    margin-bottom: 0.75rem;
}

.tech-badge span {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.contact-interest-note {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(46, 150, 155, 0.22);
    border-radius: 10px;
    color: var(--primary-dark);
    background: rgba(46, 150, 155, 0.08);
}

.contact-interest-note i {
    color: var(--accent-teal);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(46, 150, 155, 0.14);
}

/* Contact Info */
.contact-info {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 12px;
    height: 100%;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.contact-details a,
.contact-details p {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--primary-blue);
}

.contact-social {
    display: flex;
    gap: 1rem;
}

.social-link-lg {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-link-lg:hover {
    background: var(--accent-teal);
    transform: translateY(-3px);
}

.info-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
}

.info-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Map */
.map-container {
    position: relative;
    background: var(--white);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    min-height: 450px;
    display: block;
}

.map-caption {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    color: var(--white);
    background: rgba(14, 45, 67, 0.92);
    box-shadow: var(--shadow-md);
    font-weight: 700;
    transform: translateX(-50%);
}

.map-caption i {
    color: var(--accent-teal);
}

/* WhatsApp floating button */
.whatsapp-container {
    position: fixed;
    right: 25px;
    bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
}

.whatsapp-bubble {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: var(--white);
    box-shadow: var(--shadow-md);
    font-size: 0.94rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: var(--transition);
}

.btn-wsp {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    background: #25D366;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-size: 1.65rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-wsp:hover,
.btn-wsp:focus-visible {
    color: var(--white);
    transform: scale(1.08);
}

.whatsapp-container:hover .whatsapp-bubble,
.whatsapp-container:focus-within .whatsapp-bubble {
    opacity: 1;
    transform: translateX(0);
}

.animated-wsp {
    animation: wsp-pulse 2s infinite;
}

@keyframes wsp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* CTA Boxes */
.cta-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.cta-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.cta-box i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.cta-box h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.cta-box p {
    color: var(--text-muted);
    margin: 0;
}

/* Footer */
.footer-section {
    background: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer-title i {
    color: var(--accent-teal);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--accent-teal);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* Auth */
.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(46, 150, 155, 0.14), transparent 30%),
        linear-gradient(135deg, var(--light-gray), var(--white));
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-card {
    width: min(100%, 440px);
    padding: 2rem;
    border: 1px solid #E5EAF1;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.login-logo-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.login-logo {
    width: 150px;
    height: auto;
}

.login-heading {
    margin-bottom: 1.5rem;
}

.login-heading h1 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-heading p,
.login-form .form-check-label {
    color: var(--text-muted);
}

.login-eyebrow {
    display: inline-flex;
    margin-bottom: 0.65rem;
    color: var(--accent-teal);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.login-form .form-label {
    color: var(--primary-dark);
    font-weight: 700;
}

.login-form .form-control {
    border: 1px solid #D7DEE8;
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
}

.login-form .form-control:focus {
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 0.2rem rgba(46, 150, 155, 0.15);
}

.login-back-link {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
}

.login-back-link:hover {
    color: var(--accent-teal);
}

/* Admin */
.admin-body {
    min-height: 100vh;
    background: var(--light-gray);
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    color: var(--white);
    background: linear-gradient(180deg, var(--primary-dark), #081B2B);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.08);
}

.admin-sidebar::-webkit-scrollbar {
    width: 0.45rem;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 2rem;
}

.admin-brand:hover {
    color: var(--white);
}

.admin-brand-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(46, 150, 155, 0.6);
    border-radius: 8px;
    color: var(--accent-teal);
}

.admin-nav {
    display: grid;
    gap: 0.5rem;
}

.admin-nav-group {
    border-radius: 8px;
}

.admin-nav-group[open],
.admin-nav-group.active {
    background: rgba(255, 255, 255, 0.04);
}

.admin-nav-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    font-weight: 800;
    list-style: none;
    transition: var(--transition);
}

.admin-nav-group-toggle::-webkit-details-marker {
    display: none;
}

.admin-nav-group-toggle span {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.admin-nav-group-toggle span i,
.admin-nav-link i {
    flex: 0 0 1rem;
}

.admin-nav-group-toggle .bi-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.admin-nav-group[open] .admin-nav-group-toggle .bi-chevron-down {
    transform: rotate(180deg);
}

.admin-nav-group-toggle:hover,
.admin-nav-group.active .admin-nav-group-toggle {
    color: var(--white);
    background: rgba(46, 150, 155, 0.18);
}

.admin-nav-group-toggle:focus-visible,
.admin-nav-link:focus-visible {
    outline: 2px solid rgba(46, 150, 155, 0.85);
    outline-offset: 2px;
}

.admin-nav-group-links {
    display: grid;
    gap: 0.35rem;
    padding: 0.35rem 0 0.45rem 0.85rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.admin-nav-group-links .admin-nav-link {
    padding: 0.72rem 0.85rem;
    font-size: 0.94rem;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    color: var(--white);
    background: rgba(46, 150, 155, 0.18);
}

.admin-nav-link.disabled {
    cursor: default;
    opacity: 0.55;
}

.admin-nav-link.disabled:hover {
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
}

.admin-sidebar-footer {
    margin-top: auto;
    padding-top: 2rem;
    color: rgba(255, 255, 255, 0.55);
}

.admin-content {
    min-width: 0;
}

.admin-topbar {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 2rem;
    background: var(--white);
    border-bottom: 1px solid #E5EAF1;
    box-shadow: var(--shadow-sm);
}

.admin-eyebrow {
    display: inline-flex;
    margin-bottom: 0.35rem;
    color: var(--accent-teal);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-topbar h1,
.admin-welcome h2,
.admin-panel-card h3 {
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: 0;
}

.admin-topbar h1 {
    font-size: 1.55rem;
    margin: 0;
}

.admin-userbox {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-user-meta {
    display: grid;
    text-align: right;
    line-height: 1.25;
}

.admin-user-meta strong {
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.admin-user-meta span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.admin-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 700;
}

.admin-logout-btn:hover {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
    color: var(--white);
}

.admin-main {
    padding: 2rem;
}

.admin-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #E5EAF1;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.admin-welcome h2 {
    font-size: 1.65rem;
    margin-bottom: 0.5rem;
}

.admin-welcome p {
    max-width: 700px;
    color: var(--text-muted);
    margin: 0;
}

.admin-stat-card,
.admin-panel-card {
    height: 100%;
    border: 1px solid #E5EAF1;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
}

.admin-stat-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    font-size: 1.45rem;
}

.admin-stat-card strong,
.admin-stat-card span {
    display: block;
}

.admin-stat-card strong {
    color: var(--primary-dark);
    font-size: 2rem;
    line-height: 1;
}

.admin-stat-card span {
    margin-top: 0.3rem;
    color: var(--text-muted);
    font-weight: 600;
}

.admin-stat-card .admin-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    color: var(--white);
}

.admin-stat-card .admin-stat-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    color: var(--white);
    line-height: 1;
}

.admin-panel-card {
    padding: 1.5rem;
}

.admin-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-panel-card h3 {
    font-size: 1.25rem;
    margin: 0;
}

.admin-panel-icon {
    color: var(--accent-teal);
    font-size: 1.8rem;
}

.admin-roadmap {
    display: grid;
    gap: 0.9rem;
}

.admin-roadmap div {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 1rem;
    padding: 1rem;
    border: 1px solid #E5EAF1;
    border-radius: 10px;
    background: #FBFCFE;
}

.admin-roadmap span {
    grid-row: span 2;
    color: var(--accent-teal);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
}

.admin-roadmap strong {
    color: var(--primary-dark);
}

.admin-roadmap p {
    color: var(--text-muted);
    margin: 0.25rem 0 0;
}

.admin-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-check-list li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.65rem;
    color: var(--text-muted);
}

.admin-check-list li:before {
    content: "\F26E";
    position: absolute;
    left: 0;
    top: 0.6rem;
    font-family: "bootstrap-icons";
    color: var(--accent-teal);
}

.admin-inline-link {
    color: var(--primary-blue);
    font-weight: 800;
    text-decoration: none;
}

.admin-inline-link:hover {
    color: var(--accent-teal);
}

.admin-metric-large {
    color: var(--primary-dark);
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.admin-activity-list {
    display: grid;
    gap: 0.85rem;
}

.admin-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid #E5EAF1;
    border-radius: 10px;
    background: #FBFCFE;
}

.admin-activity-item > span {
    color: var(--accent-teal);
    font-size: 1.35rem;
    line-height: 1;
}

.admin-activity-item strong,
.admin-activity-item small {
    display: block;
}

.admin-activity-item strong {
    color: var(--primary-dark);
}

.admin-activity-item small {
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.admin-line-chart {
    display: grid;
    gap: 0.75rem;
}

.admin-line-chart svg {
    width: 100%;
    min-height: 220px;
    border: 1px solid #E5EAF1;
    border-radius: 10px;
    background: linear-gradient(180deg, #FBFCFE 0%, #FFFFFF 100%);
}

.admin-line-chart line {
    stroke: #D7E2EA;
    stroke-width: 2;
}

.admin-line-chart polyline {
    fill: none;
    stroke: var(--accent-teal);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 5;
}

.admin-line-chart circle {
    fill: var(--primary-dark);
    stroke: var(--white);
    stroke-width: 3;
}

.admin-line-chart-value {
    fill: var(--primary-dark);
    font-size: 26px;
    font-weight: 900;
    paint-order: stroke;
    stroke: var(--white);
    stroke-linejoin: round;
    stroke-width: 6px;
}

.admin-chart-axis {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.admin-bar-list,
.admin-ranking-bars {
    display: grid;
    gap: 1rem;
}

.admin-bar-item,
.admin-ranking-bar {
    display: grid;
    gap: 0.45rem;
}

.admin-bar-label,
.admin-ranking-copy {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.admin-bar-label span,
.admin-ranking-copy strong {
    color: var(--primary-dark);
    font-weight: 800;
}

.admin-bar-label strong,
.admin-ranking-copy span {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.admin-bar-track,
.admin-ranking-track {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #ECF2F5;
}

.admin-bar-track span,
.admin-ranking-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-teal));
}

.admin-ranking-bar {
    grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
}

.admin-ranking-copy {
    display: grid;
    gap: 0.15rem;
}

@media (max-width: 768px) {
    .admin-ranking-bar {
        grid-template-columns: 1fr;
    }

    .admin-bar-label {
        align-items: flex-start;
    }
}

.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    margin-bottom: 0;
}

.admin-table thead th {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom-color: #E5EAF1;
}

.admin-table tbody td {
    color: var(--text-dark);
    border-bottom-color: #EEF2F6;
}

.admin-table-title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 280px;
}

.admin-table-title > span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 10px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
}

.admin-table-title strong,
.admin-table-title small {
    display: block;
}

.admin-table-title strong {
    color: var(--primary-dark);
}

.admin-table-title small {
    color: var(--text-muted);
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    color: var(--primary-blue);
    background: rgba(46, 150, 155, 0.12);
    font-size: 0.8rem;
    font-weight: 800;
}

.admin-badge.success {
    color: #16784A;
    background: rgba(22, 120, 74, 0.12);
}

.admin-badge.muted {
    color: var(--text-muted);
    background: #EEF2F6;
}

.admin-badge.warning {
    color: #8A5A00;
    background: rgba(255, 193, 7, 0.18);
}

.admin-badge.primary {
    color: var(--primary-blue);
    background: rgba(46, 150, 155, 0.12);
}

.admin-badge.secondary {
    color: var(--text-muted);
    background: #EEF2F6;
}

.admin-table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.admin-table-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
}

.admin-pagination {
    padding-top: 1rem;
}

.admin-pagination nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.admin-pagination .pagination {
    margin-bottom: 0;
}

.admin-pagination .page-link {
    color: var(--primary-dark);
    border-color: #D7DEE8;
    min-width: 2.35rem;
    text-align: center;
}

.admin-pagination .page-item.active .page-link {
    color: #FFFFFF;
    background: var(--accent-teal);
    border-color: var(--accent-teal);
}

.admin-pagination .page-item.disabled .page-link {
    color: var(--text-muted);
    background: #F4F7FA;
}

.admin-pagination svg {
    width: 1rem;
    height: 1rem;
}

.admin-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.admin-row-unread {
    background: rgba(46, 150, 155, 0.06);
}

.admin-empty-state {
    padding: 3rem 1rem;
    text-align: center;
}

.admin-empty-state i {
    color: var(--accent-teal);
    font-size: 2.3rem;
}

.admin-empty-state h3 {
    color: var(--primary-dark);
    font-size: 1.25rem;
    font-weight: 800;
    margin-top: 0.75rem;
}

.admin-empty-state p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.admin-form .form-label {
    color: var(--primary-dark);
    font-weight: 800;
}

.admin-form .form-control {
    border-color: #D7DEE8;
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
}

.admin-form textarea.form-control {
    resize: vertical;
}

.admin-form .form-control:focus {
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 0.2rem rgba(46, 150, 155, 0.15);
}

.admin-form-side {
    position: sticky;
    top: 1rem;
    padding: 1rem;
    border: 1px solid #E5EAF1;
    border-radius: 12px;
    background: #FBFCFE;
}

.admin-form-preview {
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
    border: 1px solid #E5EAF1;
    border-radius: 10px;
    background: var(--white);
}

.admin-form-preview span {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
}

.admin-form-preview strong {
    color: var(--primary-dark);
}

.admin-form-preview small {
    color: var(--text-muted);
}

.admin-dropzone {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    padding: 2rem;
    border: 2px dashed #C9D4E2;
    border-radius: 12px;
    color: var(--text-muted);
    text-align: center;
    background: #FBFCFE;
    cursor: pointer;
    transition: var(--transition);
}

.admin-dropzone:hover,
.admin-dropzone.is-dragover {
    border-color: var(--accent-teal);
    background: rgba(46, 150, 155, 0.08);
}

.admin-dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.admin-dropzone-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    font-size: 1.8rem;
}

.admin-dropzone strong {
    color: var(--primary-dark);
}

.admin-upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.admin-upload-preview-item {
    overflow: hidden;
    border: 1px solid #E5EAF1;
    border-radius: 10px;
    background: var(--white);
}

.admin-upload-preview-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
    background: #F4F7FA;
}

.admin-upload-preview-item span {
    display: block;
    overflow: hidden;
    padding: 0.55rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-primary-note {
    color: var(--accent-teal) !important;
    font-weight: 700;
}

.admin-image-preview {
    overflow: hidden;
}

.admin-image-preview img {
    width: 100%;
    max-width: 100%;
    max-height: 280px;
    display: block;
    border-radius: 8px;
    object-fit: contain;
    background: #F4F7FA;
}

.admin-image-preview small {
    overflow-wrap: anywhere;
}

.admin-image-thumb {
    width: 140px;
    max-width: 100%;
    aspect-ratio: 16 / 10;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    background: #F4F7FA;
}

.admin-message-box {
    white-space: pre-line;
    padding: 1rem;
    border: 1px solid #E5EAF1;
    border-radius: 10px;
    color: var(--text-dark);
    background: #FBFCFE;
}

.admin-detail-list {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
}

.admin-detail-list div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #EEF2F6;
}

.admin-detail-list dt {
    color: var(--text-muted);
    font-weight: 800;
}

.admin-detail-list dd {
    color: var(--primary-dark);
    margin: 0;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        min-height: auto;
        overflow: visible;
        padding: 1rem;
    }

    .admin-nav {
        grid-template-columns: 1fr;
    }

    .admin-nav-group-links {
        padding-left: 0;
    }

    .admin-sidebar-footer {
        display: none;
    }

    .admin-topbar,
    .admin-welcome {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-userbox {
        width: 100%;
        justify-content: space-between;
    }

    .admin-user-meta {
        text-align: left;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1.1rem;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .project-preview-panel {
        position: static;
        max-height: none;
    }
}

@media (max-width: 767px) {
    .login-card {
        padding: 1.5rem;
    }

    .admin-nav {
        grid-template-columns: 1fr;
    }

    .admin-topbar,
    .admin-main {
        padding: 1rem;
    }

    .admin-userbox {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-userbox form,
    .admin-logout-btn,
    .admin-welcome .btn {
        width: 100%;
    }

    .admin-welcome {
        padding: 1.25rem;
    }

    .admin-roadmap div {
        grid-template-columns: 1fr;
    }

    .admin-roadmap span {
        grid-row: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .case-title {
        font-size: 1.5rem;
    }

    .detail-card h3 {
        font-size: 1.5rem;
    }

    .portfolio-hero-stats {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .portfolio-filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
    }

    .portfolio-filter {
        flex: 0 0 auto;
    }

    .portfolio-card-top {
        align-items: flex-start;
    }

    .portfolio-card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .portfolio-system-card > .portfolio-tech-list,
    .portfolio-system-card > .portfolio-value-list {
        min-height: auto;
    }

    .portfolio-card-actions .btn {
        width: 100%;
    }

    .portfolio-contact-link {
        text-align: center;
    }

    .home-portfolio-actions .btn {
        width: 100%;
    }

    .newsletter-panel {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .newsletter-input-group .btn {
        width: 100%;
    }

    .portfolio-card-carousel .carousel-control-prev,
    .portfolio-card-carousel .carousel-control-next {
        width: 2.4rem;
        opacity: 1;
    }

    .portfolio-card-carousel .carousel-control-prev-icon,
    .portfolio-card-carousel .carousel-control-next-icon {
        width: 1.35rem;
        height: 1.35rem;
    }

    .portfolio-card-carousel .carousel-indicators {
        right: 0.55rem;
        bottom: 0.45rem;
        gap: 0.28rem;
    }

    .portfolio-card-carousel .carousel-indicators [data-bs-target] {
        width: 0.42rem;
        height: 0.42rem;
    }

    .portfolio-card-carousel .carousel-indicators .active {
        width: 0.95rem;
    }

    .project-modal .modal-dialog {
        max-width: calc(100vw - 1rem);
        margin: 0.5rem auto;
    }

    .project-modal .modal-content {
        max-height: calc(100vh - 1rem);
    }

    .project-modal .modal-body {
        padding: 1rem;
    }

    .project-modal-header {
        padding: 1.1rem;
    }

    .project-modal .modal-footer {
        align-items: stretch;
        flex-direction: column;
        padding: 1rem;
    }

    .project-modal .modal-footer .btn {
        width: 100%;
    }

    .project-check-list.two-columns {
        columns: 1;
    }

    .project-gallery-grid {
        grid-template-columns: 1fr;
    }

    .project-preview-panel {
        min-height: auto;
        padding: 1.25rem;
    }

    .project-preview-image {
        max-height: 220px;
    }

    .map-container iframe {
        min-height: 360px;
    }

    .map-caption {
        width: calc(100% - 2rem);
        justify-content: center;
        border-radius: 12px;
        text-align: center;
    }

    .whatsapp-container {
        right: 16px;
        bottom: 16px;
    }

    .whatsapp-bubble {
        display: none;
    }

    .btn-wsp {
        width: 54px;
        height: 54px;
        font-size: 1.5rem;
    }
}
