/* Estilos Generales */
:root {
    --header-padding-y: 10px;
    --header-padding-x: 40px;
    --header-logo-height: 48px;
    --header-logo-max-width: 220px;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.form-alert {
    margin-top: 12px;
    padding: 12px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-alert-success {
    background-color: #ecfdf3;
    border: 1px solid #abefc6;
    color: #027a48;
}

.form-alert-error {
    background-color: #fef3f2;
    border: 1px solid #fecdca;
    color: #b42318;
}

/* Barra de Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: var(--header-padding-y) var(--header-padding-x);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 24px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    min-width: 0;
}

.logo {
    height: var(--header-logo-height);
    width: auto;
    max-width: var(--header-logo-max-width);
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
}

.nav-item {
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-item:hover {
    color: #000;
}

.nav-btn-admin {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.nav-btn-admin:hover {
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Carrusel */
.carousel-container {
    position: relative;
    width: 100%;
    height: var(--carousel-height, 550px);
    overflow: hidden;
    background-color: #000;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--carousel-transition, 1.2s) ease-in-out;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, var(--carousel-overlay, 0.35));
    z-index: 1;
    pointer-events: none;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: var(--carousel-fit, cover);
    object-position: var(--carousel-position, center);
    position: relative;
    z-index: 0;
}

/* Contenido sobre el Carrusel */
.carousel-content {
    position: absolute;
    bottom: 60px;
    left: 60px;
    color: #ffffff;
    z-index: 10;
    text-align: left;
}

.carousel-title {
    margin: 0;
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
    line-height: 1.1;
}

.carousel-location {
    margin: 15px 0 0 0;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.95;
    text-transform: uppercase;
}

.location-icon {
    color: #ff4d4d; /* Color rojizo para el icono de ubicación */
}

/* Botones del Carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: rgba(255,255,255,0.5);
    border: none;
    padding: 20px;
    cursor: pointer;
    font-size: 30px;
    transition: color 0.3s;
    z-index: 20;
}

.carousel-btn:hover {
    color: #ffffff;
}

.prev { left: 20px; }
.next { right: 20px; }

/* Indicadores */
.carousel-dots {
    position: absolute;
    bottom: 25px;
    width: 100%;
    text-align: center;
    z-index: 20;
}

.dot {
    height: 8px;
    width: 8px;
    margin: 0 6px;
    background-color: rgba(255,255,255,0.4);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: #ffffff;
    width: 20px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 992px) {
    .navbar {
        display: flex;
        flex-direction: column;
        --header-padding-y: 15px;
        --header-padding-x: 20px;
        --header-logo-height: 46px;
        --header-logo-max-width: 200px;
        gap: 15px;
    }
    .logo-container { width: 100%; }
    .nav-links { 
        width: 100%;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    .carousel-container { height: 400px; }
    .carousel-content { left: 30px; bottom: 40px; }
    .carousel-title { font-size: 2.2rem; }
}

@media (max-width: 600px) {
    .navbar {
        --header-padding-y: 10px;
        --header-padding-x: 14px;
        --header-logo-height: 42px;
        --header-logo-max-width: 180px;
        gap: 12px;
    }
    .logo {
        height: var(--header-logo-height);
        max-width: var(--header-logo-max-width);
    }
    .nav-links {
        gap: 8px;
        flex-direction: column;
        align-items: stretch;
    }
    .nav-item {
        font-size: 0.9rem;
        padding: 10px 12px;
        border-radius: 12px;
        background-color: #f2f4f7;
        color: #101828;
        text-align: center;
    }
    .nav-btn-admin {
        width: 100%;
        text-align: center;
        padding: 10px 12px;
        font-size: 0.85rem;
        border-radius: 12px;
    }
    .carousel-container { height: var(--carousel-height-mobile, clamp(260px, 65vw, 420px)); }
    .carousel-content {
        left: 18px;
        right: 18px;
        bottom: 28px;
    }
    .carousel-title { font-size: 1.55rem; }
    .carousel-location { font-size: 1rem; }
}

/* Sección de Servicios */
.services-section {
    padding: 80px 20px;
    background-color: #ffffff;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #667085;
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.service-icon {
    min-width: 56px;
    height: 56px;
    background-color: #f2f4f7; /* Gris muy claro azulado como en la imagen */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.service-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #101828;
}

.service-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #667085;
    line-height: 1.5;
}

/* Responsive para Servicios */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .section-title {
        font-size: 2rem;
    }
    .services-section {
        padding: 50px 20px;
    }
}

.cta-section {
    padding: 90px 20px;
    background-color: #f2f4f7;
    text-align: center;
}

.cta-container {
    max-width: 850px;
}

.cta-title {
    margin: 0;
    font-size: 3rem;
    font-weight: 800;
    color: #101828;
    letter-spacing: -0.5px;
}

.cta-subtitle {
    margin: 18px auto 0;
    max-width: 720px;
    font-size: 1.05rem;
    color: #667085;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    margin-top: 28px;
    padding: 14px 28px;
    border: 0;
    border-radius: 12px;
    background-color: #0b3d91;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(11, 61, 145, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.cta-button:hover {
    background-color: #0a347c;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(11, 61, 145, 0.28);
}

@media (max-width: 600px) {
    .cta-section {
        padding: 60px 18px;
    }
    .cta-title {
        font-size: 2rem;
    }
}

.site-footer {
    background-color: #f2f4f7;
    color: #101828;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px;
    padding: 55px 0;
}

.footer-col {
    min-width: 0;
}

.footer-logo {
    height: 48px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}

.footer-brand-text {
    margin: 12px 0 0;
    color: #667085;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-title {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #101828;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    gap: 8px;
}

.footer-list a {
    text-decoration: none;
    color: #667085;
    font-size: 0.9rem;
}

.footer-list a:hover {
    color: #101828;
}

.footer-contact {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0b3d91;
    font-weight: 700;
    font-size: 0.95rem;
}

.footer-contact-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: #e9eef8;
    font-size: 16px;
}

.footer-bottom {
    border-top: 1px solid #e4e7ec;
    padding: 18px 0;
}

.footer-bottom-inner {
    text-align: center;
    color: #667085;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 45px 0;
    }
    .footer-brand-text {
        max-width: none;
    }
}

.contact-page {
    background-color: #ffffff;
}

.page-hero {
    padding: 70px 20px 30px;
    background-color: #ffffff;
    text-align: center;
}

.page-title {
    margin: 0;
    font-size: 3rem;
    font-weight: 900;
    color: #101828;
    letter-spacing: -0.8px;
}

.page-subtitle {
    margin: 14px auto 0;
    max-width: 720px;
    font-size: 1.05rem;
    color: #667085;
    line-height: 1.6;
}

.contact-section {
    padding: 35px 20px 90px;
    background-color: #ffffff;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-heading {
    margin: 0 0 18px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #101828;
}

.contact-info-list {
    display: grid;
    gap: 18px;
}

.contact-info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: #f2f4f7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.contact-info-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #101828;
}

.contact-info-link,
.contact-info-value {
    margin-top: 4px;
    display: inline-block;
    font-size: 0.95rem;
    color: #667085;
    text-decoration: none;
}

.contact-info-link:hover {
    color: #101828;
}

.contact-hours {
    margin-top: 28px;
    padding: 18px 18px;
    border-radius: 14px;
    background-color: #f2f4f7;
}

.contact-hours-title {
    font-size: 0.95rem;
    font-weight: 900;
    color: #101828;
}

.contact-hours-line {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #667085;
}

.contact-form-card {
    background-color: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 16px;
    padding: 26px 26px;
    box-shadow: 0 18px 36px rgba(16, 24, 40, 0.08);
}

.contact-form-title {
    margin: 0 0 18px;
    font-size: 1.2rem;
    font-weight: 900;
    color: #101828;
}

.form-group {
    margin-top: 16px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: #101828;
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 12px 12px;
    font-size: 0.95rem;
    outline: none;
    box-sizing: border-box;
    background-color: #ffffff;
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #0b3d91;
    box-shadow: 0 0 0 4px rgba(11, 61, 145, 0.12);
}

.contact-form-submit {
    width: 100%;
    margin-top: 18px;
    padding: 14px 16px;
    border: 0;
    border-radius: 12px;
    background-color: #f97316;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.contact-form-submit:hover {
    background-color: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(249, 115, 22, 0.26);
}

@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .page-hero {
        padding: 50px 18px 25px;
    }
    .page-title {
        font-size: 2.2rem;
    }
    .contact-section {
        padding: 25px 18px 60px;
    }
    .contact-form-card {
        padding: 20px 18px;
    }
}

.admin-body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #0b4f85 0%, #0a3b67 100%);
}

.admin-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 18px;
}

.admin-card {
    width: 100%;
    max-width: 420px;
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.22);
    padding: 28px 28px 22px;
    text-align: center;
}

.admin-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.admin-logo {
    height: 42px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.admin-title {
    margin: 10px 0 0;
    font-size: 1.45rem;
    font-weight: 900;
    color: #101828;
    line-height: 1.2;
}

.admin-subtitle {
    margin: 10px auto 0;
    max-width: 320px;
    font-size: 0.9rem;
    color: #667085;
    line-height: 1.5;
}

.admin-form {
    text-align: left;
    margin-top: 18px;
}

.admin-submit {
    width: 100%;
    margin-top: 18px;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background-color: #0b3d91;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(11, 61, 145, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.admin-submit:hover {
    background-color: #0a347c;
    transform: translateY(-1px);
    box-shadow: 0 16px 26px rgba(11, 61, 145, 0.26);
}

.admin-back {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.9rem;
}

.admin-card .admin-back {
    color: #667085;
    text-decoration: none;
    font-weight: 700;
}

.admin-card .admin-back:hover {
    color: #101828;
}

.panel-page {
    background-color: #ffffff;
}

.panel-hero {
    padding: 50px 20px 20px;
    background-color: #ffffff;
}

.panel-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 900;
    color: #101828;
}

.panel-subtitle {
    margin: 10px 0 0;
    color: #667085;
    font-size: 1rem;
    line-height: 1.6;
}

.panel-section {
    padding: 20px 20px 70px;
    background-color: #ffffff;
}

.panel-card {
    border: 1px solid #eaecf0;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 18px 36px rgba(16, 24, 40, 0.08);
    overflow: hidden;
}

.panel-table-wrap {
    overflow: auto;
}

.panel-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.panel-table th,
.panel-table td {
    padding: 14px 14px;
    border-bottom: 1px solid #eaecf0;
    vertical-align: top;
    font-size: 0.9rem;
}

.panel-table th {
    background-color: #f9fafb;
    color: #101828;
    font-weight: 800;
    text-align: left;
    letter-spacing: 0.2px;
}

.panel-message {
    max-width: 520px;
    white-space: pre-wrap;
    word-break: break-word;
    color: #344054;
}

.panel-actions {
    width: 1%;
    white-space: nowrap;
}

.panel-delete {
    border: 1px solid #fecdca;
    background-color: #fff5f5;
    color: #b42318;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
}

.panel-delete:hover {
    background-color: #fee4e2;
}

.panel-empty {
    padding: 18px 14px;
    color: #667085;
    text-align: center;
}

.portfolio-page {
    background-color: #ffffff;
}

.portfolio-hero {
    background-color: #ffffff;
    padding: 36px 20px 12px;
}

.portfolio-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.portfolio-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 900;
    color: #101828;
}

.portfolio-subtitle {
    margin: 6px 0 0;
    color: #667085;
    font-size: 1rem;
}

.portfolio-add-btn {
    text-decoration: none;
    background-color: #0b3d91;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 12px 22px rgba(11, 61, 145, 0.18);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.portfolio-add-btn:hover {
    background-color: #0a347c;
}

.portfolio-add-icon {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    background-color: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.portfolio-section {
    padding: 12px 20px 70px;
    background-color: #ffffff;
}

.portfolio-table-card {
    border: 1px solid #eaecf0;
    border-radius: 16px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 18px 36px rgba(16, 24, 40, 0.08);
}

.portfolio-table-scroll {
    overflow: auto;
    max-height: 70vh;
    -webkit-overflow-scrolling: touch;
}

.portfolio-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.portfolio-table th,
.portfolio-table td {
    padding: 16px 16px;
    border-bottom: 1px solid #eaecf0;
    font-size: 0.95rem;
    vertical-align: middle;
}

.portfolio-table th {
    background-color: #f9fafb;
    color: #667085;
    text-transform: none;
    font-weight: 800;
    letter-spacing: 0.2px;
    position: sticky;
    top: 0;
    z-index: 2;
}

.portfolio-th-actions {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.portfolio-project-name {
    font-weight: 900;
    color: #101828;
}

.portfolio-loc-icon {
    opacity: 0.8;
    margin-right: 6px;
}

.portfolio-date-icon {
    opacity: 0.8;
    margin-right: 6px;
}

.portfolio-images-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid #eaecf0;
    background-color: #f9fafb;
    text-decoration: none;
    color: #101828;
    font-weight: 800;
    font-size: 0.9rem;
}

.portfolio-images-icon {
    width: 26px;
    height: 22px;
    border-radius: 8px;
    background-color: #eef2f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.portfolio-images-count {
    min-width: 10px;
}

.portfolio-actions {
    display: inline-flex;
    gap: 10px;
    justify-content: flex-end;
    width: 100%;
}

.portfolio-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 0;
    background-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    font-size: 16px;
}

.portfolio-icon-btn:hover {
    background-color: #f2f4f7;
}

.portfolio-card {
    border: 1px solid #eaecf0;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 18px 36px rgba(16, 24, 40, 0.08);
    padding: 18px 18px;
}

.portfolio-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.portfolio-card-title {
    font-weight: 900;
    color: #101828;
    font-size: 1.1rem;
}

.portfolio-link {
    color: #0b3d91;
    text-decoration: none;
    font-weight: 800;
}

.portfolio-link:hover {
    color: #0a347c;
}

.portfolio-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 220px;
    gap: 14px;
}

.portfolio-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.portfolio-primary {
    border: 0;
    background-color: #0b3d91;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.portfolio-primary:hover {
    background-color: #0a347c;
}

.portfolio-secondary {
    border: 1px solid #eaecf0;
    background-color: #ffffff;
    color: #101828;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.portfolio-secondary:hover {
    background-color: #f9fafb;
}

.portfolio-danger {
    width: 100%;
    border: 1px solid #fecdca;
    background-color: #fff5f5;
    color: #b42318;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 900;
    cursor: pointer;
}

.portfolio-danger:hover {
    background-color: #fee4e2;
}

.portfolio-empty {
    padding: 18px 16px;
    color: #667085;
}

.portfolio-upload {
    margin-top: 10px;
}

.portfolio-upload-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.portfolio-file {
    flex: 1;
}

.portfolio-images-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.portfolio-image-card {
    border: 1px solid #eaecf0;
    border-radius: 16px;
    background-color: #ffffff;
    overflow: hidden;
    padding: 10px 10px;
    display: grid;
    gap: 10px;
}

.portfolio-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    background-color: #f2f4f7;
}

@media (max-width: 992px) {
    .portfolio-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .portfolio-form-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .portfolio-title {
        font-size: 1.6rem;
    }
    .portfolio-add-btn {
        width: 100%;
        text-align: center;
    }
    .portfolio-images-grid {
        grid-template-columns: 1fr;
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(16, 24, 40, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    z-index: 2000;
}

.modal-overlay.is-open {
    display: flex;
}

.modal-card {
    width: 100%;
    max-width: 920px;
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #eaecf0;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #101828;
}

.modal-close {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 0;
    background-color: #ffffff;
    cursor: pointer;
    font-size: 24px;
    color: #667085;
}

.modal-close:hover {
    background-color: #f2f4f7;
    color: #101828;
}

.modal-form {
    padding: 18px 22px 22px;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modal-desc {
    grid-column: 1 / -1;
}

.modal-drop {
    grid-column: 1 / -1;
}

.modal-textarea {
    min-height: 120px;
}

.modal-file-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.dropzone {
    border: 2px dashed #d0d5dd;
    border-radius: 16px;
    padding: 28px 20px;
    background-color: #ffffff;
    text-align: center;
    cursor: pointer;
}

.dropzone.is-dragover {
    border-color: #0b3d91;
    background-color: rgba(11, 61, 145, 0.04);
}

.dropzone-icon {
    font-size: 28px;
    color: #667085;
    margin-bottom: 12px;
}

.dropzone-title {
    font-weight: 900;
    color: #101828;
}

.dropzone-subtitle {
    margin-top: 6px;
    color: #667085;
    font-size: 0.9rem;
}

.dropzone-files {
    margin-top: 10px;
    color: #0b3d91;
    font-weight: 800;
    font-size: 0.9rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eaecf0;
}

.modal-cancel {
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid #eaecf0;
    background-color: #ffffff;
    color: #101828;
    font-weight: 900;
    cursor: pointer;
}

.modal-cancel:hover {
    background-color: #f9fafb;
}

.modal-primary {
    padding: 12px 18px;
    border-radius: 12px;
    border: 0;
    background-color: #0b3d91;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(11, 61, 145, 0.18);
}

.modal-primary:hover {
    background-color: #0a347c;
}

@media (max-width: 600px) {
    .modal-header {
        padding: 16px 16px;
    }
    .modal-form {
        padding: 16px 16px 18px;
    }
    .modal-grid {
        grid-template-columns: 1fr;
    }
}

.clients-page {
    background-color: #ffffff;
}

.clients-hero {
    padding: 70px 20px 20px;
    background-color: #ffffff;
    text-align: center;
}

.clients-title {
    margin: 0;
    font-size: 3.2rem;
    font-weight: 900;
    color: #101828;
    letter-spacing: -1px;
}

.clients-subtitle {
    margin: 16px auto 0;
    max-width: 720px;
    color: #667085;
    line-height: 1.6;
    font-size: 1.05rem;
}

.clients-section {
    padding: 28px 20px 90px;
    background-color: #ffffff;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    justify-items: center;
}

.client-card {
    width: 100%;
    max-width: 320px;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 14px 28px rgba(16, 24, 40, 0.12);
    overflow: hidden;
}

.client-card-button {
    border: 0;
    padding: 0;
    text-align: left;
    cursor: pointer;
    display: block;
}

.client-card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(16, 24, 40, 0.16);
}

.client-card-button:focus-visible {
    outline: 3px solid rgba(11, 61, 145, 0.35);
    outline-offset: 4px;
}

.client-card-media {
    position: relative;
    height: 190px;
    background-color: #f2f4f7;
}

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

.client-card-img-placeholder {
    background: linear-gradient(135deg, #eef2f6 0%, #f9fafb 100%);
}

.client-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(16, 24, 40, 0.85);
    color: #ffffff;
    border-radius: 10px;
    padding: 6px 9px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 0.85rem;
}

.client-card-badge-icon {
    width: 26px;
    height: 22px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.client-card-body {
    padding: 14px 16px 16px;
}

.client-card-name {
    font-weight: 900;
    color: #101828;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.client-card-meta {
    margin-top: 10px;
    display: grid;
    gap: 8px;
    color: #667085;
    font-size: 0.9rem;
}

.client-card-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.client-meta-icon {
    opacity: 0.8;
}

@media (max-width: 992px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        justify-items: stretch;
    }
}

@media (max-width: 600px) {
    .clients-title {
        font-size: 2.2rem;
    }
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .client-card {
        max-width: 100%;
    }
    .client-card-media {
        height: 220px;
    }
}

.client-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(16, 24, 40, 0.55);
    display: none;
    padding: 22px;
    z-index: 3000;
    overflow: auto;
}

.client-modal-overlay.is-open {
    display: block;
}

.client-modal {
    position: relative;
    margin: 22px auto;
    width: min(1100px, 100%);
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
    padding: 24px 24px 24px;
}

.client-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 0;
    background-color: transparent;
    font-size: 26px;
    line-height: 1;
    color: #667085;
    cursor: pointer;
}

.client-modal-close:hover {
    background-color: #f2f4f7;
    color: #101828;
}

.client-modal-header {
    padding-right: 56px;
}

.client-modal-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #101828;
    letter-spacing: -0.8px;
    text-transform: uppercase;
}

.client-modal-chips {
    margin-top: 10px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.client-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background-color: #f2f4f7;
    color: #101828;
    font-weight: 900;
    font-size: 0.9rem;
}

.client-chip-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.client-modal-body {
    margin-top: 18px;
}

.client-modal-image-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background-color: #000000;
}

.client-modal-image {
    width: 100%;
    height: min(520px, 60vh);
    object-fit: cover;
    display: block;
}

.client-modal-image.is-placeholder {
    background: linear-gradient(135deg, #eef2f6 0%, #f9fafb 100%);
}

.client-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 0;
    background-color: rgba(16, 24, 40, 0.55);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.client-modal-nav:hover {
    background-color: rgba(16, 24, 40, 0.75);
}

.client-modal-prev {
    left: 14px;
}

.client-modal-next {
    right: 14px;
}

.client-modal-about {
    margin-top: 18px;
    border-radius: 16px;
    border: 1px solid #eaecf0;
    background-color: #f9fafb;
    padding: 16px 16px;
}

.client-about-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #101828;
}

.client-about-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.client-about-text {
    margin-top: 10px;
    color: #667085;
    line-height: 1.6;
    font-size: 0.95rem;
    white-space: pre-wrap;
}

@media (max-width: 600px) {
    .client-modal {
        padding: 18px 16px 18px;
    }
    .client-modal-title {
        font-size: 1.6rem;
    }
    .client-modal-image {
        height: 300px;
    }
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    right: calc(18px + env(safe-area-inset-right));
    bottom: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: 60px;
    height: 60px;
    border-radius: 999px;
    background-color: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 18px 36px rgba(16, 24, 40, 0.22);
    z-index: 2500;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-float:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 44px rgba(16, 24, 40, 0.26);
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
    display: block;
    fill: currentColor;
}

@media (max-width: 600px) {
    .whatsapp-float {
        right: 14px;
        right: calc(14px + env(safe-area-inset-right));
        bottom: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom));
        width: 62px;
        height: 62px;
        border-radius: 999px;
    }
    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }
}
