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

.mi-portafolio {
    --amarillo-boton-30: rgba(242, 183, 5, 0.3);
    margin: 0;
    font-family: "Inter", sans-serif;
    background: #0f172a;
    color: white;
}

/* Navbar */
.mi-portafolio nav {
    background: #020617;
}

.Text_barra {
    color: #cbd5f5;
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    margin-left: 0.5rem;
    line-height: 1.1;
    white-space: nowrap;
}

.mi-portafolio nav a.Text_barra-link {
    color: inherit;
    text-decoration: none;
    font-size: inherit;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: clamp(0.35rem, 1vw, 0.6rem);
    line-height: inherit;
}

.logo-navbar {
    display: block;
    width: auto;
    height: clamp(40px, 5.2vw, 56px);
    object-fit: contain;
    border-radius: 4px;
}

.logo-brand-text {
    display: inline-block;
}

.mi-portafolio nav a.Text_barra-link:hover {
    color: #cbd5f5;
}

.mi-portafolio nav a.Text_barra-link:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 4px;
    border-radius: 6px;
}

.yellow {
    color: #fbbf24;
}

.navbar{
    padding-left: 0;
}

.mi-portafolio nav a {
    color: white;
    margin-right: 15px;
    margin-left: 15px;
    text-decoration: none;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
}

.mi-portafolio nav a:hover {
    color: #fbbf24;
}

/* Dropdown móvil */
.mi-dropdown-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
    color: white;
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mi-dropdown-btn:hover {
    border-color: rgba(96, 165, 250, 0.75);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.45);
}

.mi-dropdown-btn:active {
    transform: scale(0.97);
}

.mi-dropdown-btn:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

.mi-hamburger {
    position: relative;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #e2e8f0;
    transition: background 0.2s ease;
}

.mi-hamburger::before,
.mi-hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #e2e8f0;
    transition: transform 0.2s ease;
}

.mi-hamburger::before {
    top: -6px;
}

.mi-hamburger::after {
    top: 6px;
}

.mi-dropdown-btn[aria-expanded="true"] .mi-hamburger {
    background: transparent;
}

.mi-dropdown-btn[aria-expanded="true"] .mi-hamburger::before {
    transform: translateY(6px) rotate(45deg);
}

.mi-dropdown-btn[aria-expanded="true"] .mi-hamburger::after {
    transform: translateY(-6px) rotate(-45deg);
}

.mi-dropdown-menu {
    background: rgba(2, 6, 23, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.25);
    min-width: clamp(220px, 65vw, 280px);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 10px;
    padding: 6px;
    box-shadow: 0 20px 36px rgba(2, 6, 23, 0.5);
    backdrop-filter: blur(6px);
}

.mi-dropdown-menu .dropdown-item {
    color: #e2e8f0;
    padding: 12px 14px;
    font-size: clamp(0.95rem, 3.8vw, 1.05rem);
    border-radius: 10px;
    font-weight: 500;
    margin: 0;
    text-align: left;
    white-space: normal;
    line-height: 1.25;
}

.mi-dropdown-menu .dropdown-item:hover {
    background: rgba(30, 58, 138, 0.42);
    color: #bfdbfe;
}

.mi-dropdown-menu .dropdown-item:focus-visible {
    background: rgba(30, 58, 138, 0.42);
    color: #bfdbfe;
    outline: none;
}

.mi-dropdown-menu .dropdown-item:active {
    background: rgba(37, 99, 235, 0.6);
    color: #ffffff;
}

/* Secciones */
.mi-portafolio section {
    padding: clamp(20px, 3vw, 30px) 20px;
    text-align: center;
}

.mi-portafolio section + section {
    margin-top: clamp(6px, 1vw, 10px);
}

.Contacto {
    padding-top: clamp(20px, 3vw, 28px);
    padding-bottom: clamp(10px, 1.8vw, 16px);
}

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

.portada-imagen-wrap {
    width: 100%;
    max-width: clamp(240px, 31vw, 430px);
    margin-right: auto;
    border-radius: 0;
    overflow: visible;
    border: none;
    box-shadow: none;
}

.portada-imagen {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.portada-texto {
    max-width: 560px;
    text-align: left;
    margin-left: auto;
}

.Contacto h1 {
    font-size: clamp(2rem, 3.2vw, 2.7rem);
    margin-bottom: 10px;
}

.Contacto p {
    margin-bottom: 0;
    color: #cbd5f5;
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    line-height: 1.5;
}

/* Ajuste sutil de separación y escala en servicios */
#servicios {
    padding-top: clamp(8px, 1.4vw, 14px);
}

#servicios h2 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: clamp(1.5rem, 2.2vw, 1.85rem);
}

#servicios .servicios-row {
    --servicios-gap: 10px;
    --servicios-visible: 3;
    margin-top: 1rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: var(--servicios-gap);
    align-items: stretch;
    transform: translateX(0);
    will-change: transform;
    backface-visibility: hidden;
}

#servicios .servicios-carrusel {
    width: 100%;
    overflow: hidden;
    transition: height 320ms ease;
}

#servicios .servicios-row.servicios-slider-ready {
    transition: transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

#servicios .servicios-row > [class*="col-"] {
    flex: 0 0 calc((100% - (var(--servicios-gap) * (var(--servicios-visible) - 1))) / var(--servicios-visible));
    max-width: calc((100% - (var(--servicios-gap) * (var(--servicios-visible) - 1))) / var(--servicios-visible));
    margin: 0 !important;
    padding: 0;
}

#servicios .servicio-card {
    min-height: 260px;
    height: auto;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
}

#servicios .servicio-card h3 {
    margin: 0;
    font-size: clamp(1.1rem, 1.6vw, 1.24rem);
}

#servicios .servicio-card p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.62;
    color: #cbd5f5;
}

#opiniones {
    padding-top: clamp(8px, 1.4vw, 14px);
}

#opiniones h2 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: clamp(1.5rem, 2.2vw, 1.85rem);
}

#opiniones .opiniones-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
}

#opiniones .opiniones-listado {
    width: 100%;
}

.opiniones-resumen {
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 22px;
}

.rating-gauge {
    --rating: 0;
    --max-rating: 5;
    --angle: calc((var(--rating) / var(--max-rating)) * 180deg);
    width: clamp(190px, 28vw, 230px);
    height: clamp(95px, 14vw, 115px);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.rating-gauge-circle {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: conic-gradient(
        from 270deg,
        #f2b705 0deg var(--angle),
        #334155 var(--angle) 180deg,
        transparent 180deg 360deg
    );
    -webkit-mask: radial-gradient(circle, transparent calc(50% - 11px), #000 calc(50% - 10px));
    mask: radial-gradient(circle, transparent calc(50% - 11px), #000 calc(50% - 10px));
}

.rating-gauge-center {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
}

.rating-gauge-value {
    font-size: clamp(1.45rem, 2.4vw, 1.8rem);
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1;
}

.rating-gauge-max {
    font-size: 0.9rem;
    color: #94a3b8;
}

.rating-gauge-caption {
    margin: 0.55rem 0 0;
    font-size: 0.94rem;
    color: #cbd5f5;
}

#opiniones .opiniones-row {
    max-width: 980px;
    margin: 0 auto;
}

.opiniones-actions {
    margin-top: 6px;
    text-align: center;
}

.opiniones-cargar-mas {
    font-size: 1rem;
    padding: 10px 18px;
}

.opinion-card {
    min-height: 180px;
    padding: 22px 24px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
}

.opinion-info {
    flex: 1;
}

.opinion-info h3 {
    margin: 0 0 6px;
    font-size: clamp(1.1rem, 1.6vw, 1.24rem);
}

.opinion-rating {
    margin: 0 0 10px;
    font-size: 0.98rem;
    font-weight: 600;
    color: #f2b705;
}

.opinion-comment {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.62;
    color: #cbd5f5;
}

.opinion-stars {
    min-width: 132px;
    padding-left: 16px;
    border-left: 1px solid #334155;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.opinion-stars .stars {
    color: #f2b705;
    letter-spacing: 2px;
    font-size: 1.2rem;
    line-height: 1;
}

.opinion-stars .score {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e2e8f0;
}

@media (min-width: 992px) {
    #opiniones .opiniones-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }

    .opiniones-resumen {
        flex: 0 0 300px;
        max-width: 300px;
        margin: 0;
    }

    #opiniones .opiniones-listado {
        flex: 1;
        min-width: 0;
    }

    #opiniones .opiniones-row {
        max-width: none;
        margin: 0;
    }
}

#clientes {
    padding-top: clamp(8px, 1.4vw, 14px);
}

#clientes h2 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: clamp(1.5rem, 2.2vw, 1.85rem);
}

.clientes-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 20px);
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.cliente-card {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 108px;
    padding: 14px;
    border-radius: 12px;
    background: #1e293b;
    border: 1px solid #334155;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cliente-card img {
    width: 100%;
    max-width: 128px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(1) contrast(1.05);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.cliente-card[aria-label="Samsung"] img {
    max-width: 156px;
    height: 52px;
}

.cliente-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 18px rgba(2, 6, 23, 0.35);
    border-color: #475569;
}

.cliente-card:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.cliente-tooltip {
    position: absolute;
    left: 50%;
    bottom: -34px;
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    pointer-events: none;
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.85rem;
    line-height: 1;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cliente-card:hover .cliente-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#tecnologias {
    padding-top: clamp(8px, 1.4vw, 14px);
}

#tecnologias h2 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: clamp(1.5rem, 2.2vw, 1.85rem);
}

.tecnologias-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 20px);
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.tech-card {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    padding: 16px;
    border-radius: 12px;
    background: #1e293b;
    border: 1px solid #334155;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tech-card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: grayscale(1) contrast(1.05);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.tech-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 18px rgba(2, 6, 23, 0.35);
    border-color: #475569;
}

.tech-card:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.tech-tooltip {
    position: absolute;
    left: 50%;
    bottom: -34px;
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    pointer-events: none;
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.85rem;
    line-height: 1;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tech-card:hover .tech-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Botones */
.mi-btn {
    background: #f2b705;    
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    color:white;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(2, 6, 23, 0.55);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.mi-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.35), 0 0 16px rgba(242, 183, 5, 0.45);
}

.mi-btn:active {
    transform: scale(0.98);
}

.mi-btn-link {
    text-decoration: none;
    display: inline-block;
}

.mi-btn-link:hover {
    color: white;
    background: #1d4ed8;
}

.mi-btn-catalogo:hover {
    color: white;
    background: #f2b705;
}

/* Cards */
.mi-card {
    background: #1e293b;
    padding: 20px;
    border-radius: 12px;
}

@media (min-width: 768px) {
    .servicios-row > [class*="col-"] {
        display: flex;
    }

    .servicio-card {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    #servicios .servicios-row {
        flex-direction: column;
    }

    #servicios .servicios-row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
}

/* Carrusel de 3 tarjetas */
#miCarrusel {
    margin: clamp(20px, 3vw, 40px) auto;
    padding: 40px 20px;
    border-radius: 20px;
    background: #020617;
    border: 1px solid #020617;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
    max-width: 1200px;
    overflow: hidden;
    touch-action: pan-y;
}

#miCarrusel .carousel-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    min-height: 420px;
}

.mi-tarjeta {
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    transition:
        transform 0.68s cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 0.68s cubic-bezier(0.22, 0.61, 0.36, 1),
        box-shadow 0.68s cubic-bezier(0.22, 0.61, 0.36, 1);
    background-size: cover;
    background-position: center;
    background-color: #1e293b;
    padding: 12px;
    will-change: transform, opacity;
    flex: 0 0 auto;
    width: 260px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mi-tarjeta-izquierda,
.mi-tarjeta-derecha {
    opacity: 0.7;
    transform: scale(0.85);
}

.mi-tarjeta-izquierda {
    order: 1;
}

.mi-tarjeta-centro {
    z-index: 10;
    transform: scale(1.25);
    box-shadow: 0 20px 40px rgba(242, 183, 5, 0.3);
    order: 2;
}

.mi-tarjeta-derecha {
    order: 3;
}

.mi-tarjeta-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Animaciones de salida de tarjetas */
@keyframes tarjetaSaleIzq {
    from {
        opacity: 0.7;
        transform: translateX(0) scale(0.85);
    }
    to {
        opacity: 0;
        transform: translateX(-400px) scale(0.7);
    }
}

@keyframes tarjetaSaleCentro {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
        z-index: 10;
    }
    to {
        opacity: 0.7;
        transform: translateX(-150px) scale(0.85);
        z-index: 5;
    }
}

@keyframes tarjetaSaleDer {
    from {
        opacity: 0.7;
        transform: translateX(0) scale(0.85);
    }
    to {
        opacity: 1;
        transform: translateX(-150px) scale(1);
        z-index: 10;
    }
}

/* Animaciones de entrada de tarjetas */
@keyframes tarjetaEntraIzq {
    from {
        opacity: 0;
        transform: translateX(400px) scale(0.7);
    }
    to {
        opacity: 0.7;
        transform: translateX(0) scale(0.85);
    }
}

@keyframes tarjetaEntraCentro {
    from {
        opacity: 0;
        transform: translateX(400px) scale(0.85);
        z-index: 5;
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
        z-index: 10;
    }
}

@keyframes tarjetaEntraDer {
    from {
        opacity: 0;
        transform: translateX(400px) scale(0.95);
    }
    to {
        opacity: 0.7;
        transform: translateX(0) scale(0.85);
    }
}

.mi-tarjeta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease;
    padding: 20px;
    text-align: center;
}

.mi-tarjeta:hover .mi-tarjeta-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.mi-tarjeta-titulo {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mi-tarjeta:hover .mi-tarjeta-titulo {
    opacity: 1;
}

/* Color de fondo según posición */
.mi-tarjeta-centro {
    background-color: #f2b705;
}

.mi-tarjeta-izquierda,
.mi-tarjeta-derecha {
    background-color: #1e293b;
}

/* Botones de navegación */
.mi-carrusel-prev,
.mi-carrusel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(242, 183, 5, 0.8);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 15;
    transition: background 0.3s ease;
}

.mi-carrusel-prev:hover,
.mi-carrusel-next:hover {
    background: rgba(242, 183, 5, 1);
}

.mi-carrusel-prev {
    left: 10px;
}

.mi-carrusel-next {
    right: 10px;
}

/* Indicadores */
.carousel-indicators {
    display: flex !important;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    position: static !important;
    background: transparent !important;
}

.carousel-indicator-dot {
    background-color: #2b70fac6;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-indicator-dot.active {
    background-color: #f2b705;
}

.carousel-indicator-dot:hover {
    background-color: #f2b705;
}

.carousel-indicators button {
    background-color: #2b70fac6 !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
}

.carousel-indicators .active {
    background-color: white !important;
}

/* Catalogo de proyectos */
.catalogo-card {
    width: 100%;
    height: 100%;
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    background: #1e293b;
    color: white;
    text-align: left;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalogo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.4);
}

.catalogo-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.catalogo-body {
    padding: 16px;
}

.catalogo-body h3 {
    color: #cbd5f5;
    font-size: 24px;
    margin-bottom: 10px;
}

.catalogo-body p {
    margin: 0;
    color: #cbd5f5;
}

.modal-proyecto-img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

/*Para telefono*/
@media (max-width: 768px) {

    .clientes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .cliente-card {
        min-height: 100px;
    }

    .cliente-card img {
        max-width: 98px;
        height: 32px;
    }

    .cliente-card[aria-label="Samsung"] img {
        max-width: 124px;
        height: 42px;
    }

    .cliente-tooltip {
        bottom: -30px;
        font-size: 0.8rem;
    }

    .tecnologias-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .tech-card {
        min-height: 104px;
    }

    .tech-card img {
        width: 62px;
        height: 62px;
    }

    .tech-tooltip {
        bottom: -30px;
        font-size: 0.8rem;
    }

    .portada-imagen-wrap {
        max-width: 320px;
        margin: 0 auto;
    }

    .portada-imagen {
        height: auto;
        max-height: 360px;
    }

    .portada-texto {
        text-align: center;
        margin: 0 auto;
    }

    .Contacto h1 {
        font-size: clamp(1.8rem, 8vw, 2.3rem);
    }

    #servicios .servicio-card {
        min-height: 260px;
    }

    .opiniones-resumen {
        max-width: 100%;
        padding: 18px;
    }

    .rating-gauge {
        width: min(88vw, 220px);
        height: min(44vw, 110px);
    }

    .opinion-card {
        min-height: 0;
        flex-direction: column;
        gap: 14px;
    }

    .opinion-stars {
        width: 100%;
        min-width: 0;
        padding-left: 0;
        padding-top: 12px;
        border-left: none;
        border-top: 1px solid #334155;
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
    }

    #miCarrusel {
        margin: 12px 8px;
        padding: 10px;
        border-radius: 14px;
        gap: 10px;
    }

    #miCarrusel .carousel-inner {
        min-height: 340px;
    }

    .mi-tarjeta {
        padding: 8px;
    }

    .mi-tarjeta-izquierda,
    .mi-tarjeta-derecha {
        display: none !important;
    }

    .mi-tarjeta-centro,
    .mi-tarjeta-unica {
        width: min(82vw, 320px);
        height: min(105vw, 400px);
        transform: scale(1) !important;
    }

    .mi-tarjeta-titulo {
        font-size: 18px;
    }

    .mi-carrusel-prev,
    .mi-carrusel-next {
        display: none !important;
    }

    .catalogo-img {
        height: 180px;
    }

    .catalogo-body h3 {
        font-size: 20px;
    }
}

.mi-portafolio input,
.mi-portafolio textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    border: none;
    background: #334155;
    color: white;
}

footer {
    background: #020617;
    padding: 20px;
    text-align: center;
    color: gray;
}

.mi-modal {
    background: #020617;
    color: white;
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid #1e293b;
}

.modal-title {
    color: #2b70fac6;
}

.btn-close {
    filter: invert(1);
}

.mi-footer {
    background: #020617;
    color: #cbd5f5;
    padding: clamp(18px, 2.5vw, 28px) 20px;
    font-size: 0.95rem;
}

.mi-footer .row {
    row-gap: 0.5rem;
}

.mi-footer h5 {
    color: #cbd5f5;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.mi-footer p {
    margin: 3px 0;
    line-height: 1.4;
}

.mi-footer hr {
    margin: 12px 0;
    opacity: 0.2;
}

@media (max-width: 768px) {
    .mi-footer {
        padding: 16px;
    }

    .mi-footer h5 {
        font-size: 1rem;
        margin-bottom: 4px;
    }
}

