body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #e9f7f8, #f1f8fa);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #334155;
}

.header {
    background: #ffffff;
    border-bottom: 4px solid #2A9D8F;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo { height: 55px; }

.portal-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 40px 15px;
}

.portal-grid {
    display: flex;
    gap: 30px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    height: 380px;
}

.portal-item { flex: 1; perspective: 1200px; }

.portal-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .6s cubic-bezier(.4, .2, .2, 1);
    border-radius: 18px;
}

.portal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(42, 157, 143, 0.15) !important;
}

.portal-card h4 { color: #2A9D8F; font-weight: 700; }

.portal-card.flipped { transform: rotateY(180deg); }

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 18px;
    padding: 35px 30px;
    background: white;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.card-front { justify-content: space-between; }
.card-back { transform: rotateY(180deg); background: #f8fdfd; justify-content: space-between; }

.titulo { color: #1B4D4A; font-weight: 700; }
.subtitulo { color: #64748b; font-weight: 500; }

.portal-content { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.portal-actions { display: flex; gap: 12px; }

.btn-portal { flex: 1; border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 600; transition: all 0.3s ease; }
.btn-info-soft { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.btn-info-soft:hover { background: #e2e8f0; color: #1e293b; }
.btn-main { background: #2A9D8F; color: white; border: none; box-shadow: 0 4px 10px rgba(42, 157, 143, 0.3); }
.btn-main:hover { background: #23867a; color: white; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(42, 157, 143, 0.4); }

.info-wrapper { position: fixed; bottom: 25px; right: 25px; z-index: 999; }
.info-float {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(145deg, #2A9D8F, #1B4D4A);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 8px 20px rgba(27, 77, 74, 0.3); transition: .3s ease;
}
.info-float:hover { transform: scale(1.1) translateY(-3px); box-shadow: 0 12px 25px rgba(27, 77, 74, 0.4); }
.info-inner { color: white; font-size: 26px; }
/*Modal*/
/* ===== MODAL LIMPIO Y PROFESIONAL ===== */

.modal-content {
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* HEADER */
.modal-header-custom {
    background: linear-gradient(135deg, #1B4D4A, #2A9D8F);
    color: white;
    padding: 18px 20px;
}

.modal-header-custom .modal-title {
    font-weight: 600;
    font-size: 16px;
}

.modal-header-custom .btn-close {
    filter: invert(1);
}

/* BODY */
.modal-body-custom {
    background: #f8fafc;
    color: #334155;
}

/* LOGO SN */
.sn-logo-badge {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #2A9D8F, #1B4D4A);
    color: white;
    font-weight: 700;
    font-size: 18px;
    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 10px;
}

/* TITULOS SECCION */
.section-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 25px 0 10px;
}

/* CAJAS INFO */
.info-box {
    background: white;
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    transition: all 0.2s ease;
}

.info-box:hover {
    border-color: #2A9D8F;
    box-shadow: 0 4px 10px rgba(42,157,143,0.15);
}

/* CAJA EN COLUMNA */
.info-box.col-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

/* TEXTO */
.info-box span:first-child {
    color: #64748b;
}

.info-box span:last-child {
    font-weight: 600;
    color: #1e293b;
}

/* CARDS DEV */
.dev-card {
    display: flex;
    align-items: center;
    gap: 12px;

    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;

    padding: 12px;
    margin-bottom: 10px;
}

.dev-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;

    background: #2A9D8F;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
}

/* TECNOLOGIAS */
.tech-badge {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    background: white;
    font-size: 13px;
    font-weight: 500;

    display: flex;
    align-items: center;
    gap: 6px;
}

/* SCROLL */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #cbd5f5;
    border-radius: 10px;
}

.dev-card {
    transition: all 0.25s ease;
}

.dev-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
footer { background: #1B4D4A; color: #e2e8f0; padding: 25px 0; font-size: 14px; }
footer .right { text-align: right; }

/* MEDIA QUERIES */
@media (max-width: 992px) {
    .portal-grid { flex-direction: column; height: auto; }
    .portal-card { height: 320px; }
    footer .right, footer .text-md-start { text-align: center !important; margin-top: 15px; }
}
@media (max-width: 576px) {
    .portal-card { height: auto; min-height: 300px; transform: none !important; }
    .card-face { position: relative; height: auto; }
    .portal-card.flipped .card-front { display: none; }
    .portal-card.flipped .card-back { display: flex; }
    .card-back { display: none; transform: none; }
    .card-front { transform: none; }
}