/* VARIABLES DE COLOR */
:root {
    --color-principal: #0097b2;
    --color-secundario: #005f6b;
    --color-acento: #00c9db;
    --color-texto: #222;
    --color-fondo: #0A1E2D;
    --color-blanco: #fff;
}

/* RESETEO BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--color-fondo);
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(206,231,233,0.09)"/></svg>');
    background-repeat: repeat;
    color: var(--color-texto);
    line-height: 1.6;
}

.container {
    width: min(90%, 1200px);
    margin: 0 auto;
}

/* ENCABEZADO */
header {
    position: sticky;
    top: 0;
    z-index: 1300;
    background: linear-gradient(90deg, #0097b2 0%, #00c9db 100%);
    color: var(--color-blanco);
    padding: 1.2rem 0 1.2rem 0;
    box-shadow: 0 6px 24px -8px rgba(0, 0, 0, 0.10);
    transition: box-shadow 0.3s, background 0.3s;
}

header.scrolled {
    box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.18);
    background: linear-gradient(90deg, #007c91 0%, #0097b2 100%);
}

@media (max-width: 900px) {
    header {
        padding: 0.7rem 0 0.7rem 0;
    }
}

.nav-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    min-height: 64px;
}

.logo-link {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.logo {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    gap: 2.2rem;
    align-items: center;
    margin: 0;
    padding: 0 1.5rem;
}

nav ul a {
    color: var(--color-blanco);
    text-decoration: none;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: color 0.3s, font-weight 0.3s, text-shadow 0.3s;
}

nav ul a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00c9db 0%, #0097a7 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(.4, 2, .6, 1);
}

nav ul a:hover::after,
nav ul a:focus::after {
    transform: scaleX(1);
}

nav ul a:hover,
nav ul a:focus {
    color: #00fff7;
    font-weight: 700;
    text-shadow: 0 2px 12px #00fff7cc;
}

/* SECCIÓN HERO */
.hero {
    background-color: var(--color-secundario);
    color: var(--color-blanco);
    padding: 5rem 0 4rem 0;
    text-align: center;
}

.leyenda {
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.70);
}

/* Mejora de contraste y jerarquía visual en la sección HERO */
.hero h2 {
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
    font-size: 2.7rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

/* Botón futurista KrypCore */
.btn {
    background: linear-gradient(90deg, #00c9db 0%, #0097a7 100%);
    color: #fff;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    box-shadow: 0 0 16px #00c9db80, 0 4px 16px rgba(0, 0, 0, 0.15) inset;
    position: relative;
    overflow: hidden;
    transition: background 0.4s, box-shadow 0.3s, transform 0.2s;
}

.btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, transparent 40%, #fff 50%, transparent 60%);
    opacity: 0.2;
    transform: rotate(25deg);
    transition: opacity 0.4s;
}

.btn:hover {
    background: linear-gradient(90deg, #00fff7 0%, #005f6b 100%);
    box-shadow: 0 0 32px #00fff7cc, 0 8px 32px rgba(0, 0, 0, 0.25) inset;
    transform: translateY(-2px) scale(1.04);
}

.btn:hover::before {
    opacity: 0.5;
    animation: shine 0.8s linear;
}

@keyframes shine {
    0% {
        left: -50%;
    }

    100% {
        left: 120%;
    }
}

/* Estilo para el ícono dentro del botón futurista */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
}

.btn-icon {
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s cubic-bezier(.4, 2, .6, 1), filter 0.3s;
    filter: drop-shadow(0 0 6px #00fff7cc);
}

.btn:hover .btn-icon {
    transform: scale(1.18) rotate(-8deg);
    filter: drop-shadow(0 0 12px #00fff7cc) brightness(1.2);
}

.btn:focus {
    outline: 3px solid #00fff7;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px #00fff766, 0 0 16px #00c9db80;
}

/* SECCIÓN SERVICIOS */
.servicios {
    padding: 3rem 0;
    background: transparent;
}

.servicios h3 {
    color: rgba(206, 231, 233, 0.9);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.25);
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    text-align: center;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

.card {
    background: radial-gradient(circle at 60% 30%, #0097b2 0%, #005f6b 60%, #0A1E2D 100%);
    color: #fff;
    padding: 1.5rem;
    border-radius: 18px;
    border: 1.5px solid rgba(0, 201, 219, 0.18);
    width: 260px;
    text-align: center;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.3s cubic-bezier(.4, 2, .6, 1), transform 0.3s cubic-bezier(.4, 2, .6, 1);
}

.card:hover {
    box-shadow: 0 8px 32px rgba(0, 151, 178, 0.18), 0 2px 12px rgba(0, 0, 0, 0.10);
    transform: translateY(-8px) scale(1.035);
    z-index: 2;
}

.card:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(0, 151, 178, 0.10);
    transition: transform 0.08s cubic-bezier(.4, 2, .6, 1), box-shadow 0.08s;
}

.card h4 {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.25);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* SECCIÓN CLIENTES */
.clientes {
    background-color: var(--color-secundario);
    padding: 3.5rem 0 2.5rem 0;
    text-align: center;
    color: var(--color-blanco);
    box-shadow: 0 -12px 24px -12px rgba(0, 0, 0, 0.10), 0 12px 24px -12px rgba(0, 0, 0, 0.10);
}

.clientes h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: rgba(206, 231, 233, 0.9);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.25);
}

.carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    gap: 0;
    align-items: center;
    width: max-content;
    animation: scroll 15s linear infinite;
    will-change: transform;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-track img {
    height: 64px;
    width: auto;
    object-fit: contain;
    margin: 0 1.5rem;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: transform 0.3s ease, opacity 0.3s ease;
    flex-shrink: 0;
    display: block;
}

.carousel-track img:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* ANIMACIÓN CARRUSEL */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* BOTÓN FLOTANTE */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(0, 201, 219, 0.92);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 24px #00c9db55, 0 2px 8px rgba(0, 0, 0, 0.10);
    border: none;
    outline: none;
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(30px) scale(0.95);
    transition:
        opacity 0.35s cubic-bezier(.4, 2, .6, 1),
        visibility 0.35s,
        transform 0.35s cubic-bezier(.4, 2, .6, 1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.back-to-top:hover,
.back-to-top:focus {
    background: #00fff7;
    box-shadow: 0 8px 32px #00fff7aa, 0 4px 16px rgba(0, 0, 0, 0.18);
    transform: scale(1.08) translateY(-4px);
}

.back-to-top:active {
    transform: scale(0.96);
}

/* PIE DE PÁGINA */
footer {
    background: linear-gradient(90deg, #0097b2 0%, #00c9db 100%);
    color: var(--color-fondo);
    text-align: center;
    padding: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 -8px 24px -8px rgba(0, 0, 0, 0.10);
    letter-spacing: 1px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.footer-logo {
    height: 28px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 0 6px #00fff7cc);
}

/* MEDIA QUERIES PARA DISPOSITIVOS MÓVILES */
@media (min-width: 768px) {
    .nav-container {
        flex-wrap: nowrap;
    }

    .logo-link {
        width: auto;
        margin-bottom: 0;
    }

    nav ul {
        width: auto;
        justify-content: flex-end;
        padding: 0;
    }
}

/* ESTILOS PARA PORTAFOLIO */
.hero-portfolio {
    background-color: var(--color-secundario);
    color: var(--color-blanco);
    padding: 4rem 0;
    text-align: center;
}

.hero-portfolio h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-portfolio p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.portfolio-filter {
    background: rgba(0, 151, 178, 0.18);
    border-radius: 1.5rem;
    box-shadow: 0 6px 24px 0 rgba(0, 151, 178, 0.10);
    margin: 0 auto 2rem auto;
    padding: 1.2rem 0.5rem;
    max-width: 90vw;
    border-top: 2.5px solid var(--color-acento);
    border-bottom: 2.5px solid var(--color-principal);
    margin-top: 2.5rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.filter-btn {
    background-color: var(--color-blanco);
    color: var(--color-principal);
    border: 2px solid var(--color-principal);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-principal);
    color: var(--color-blanco);
}

.portfolio-grid {
    padding: 3rem 0;
    background: transparent;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 250px;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 97, 107, 0.9), transparent);
    color: var(--color-blanco);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-overlay h3 {
    margin-bottom: 0.5rem;
}

.btn-portfolio {
    display: inline-block;
    background-color: var(--color-acento);
    color: var(--color-blanco);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 0.8rem;
    transition: background-color 0.3s ease;
}

.btn-portfolio:hover {
    background-color: var(--color-principal);
}

.cta-portfolio {
    background: transparent;
    color: var(--color-blanco);
    text-align: center;
    padding: 3rem 0;
}

.cta-portfolio h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-portfolio p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card {
        height: 200px;
    }
}

/* ESTILOS PARA ICONOS DE PORTAFOLIO */
.portfolio-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 4rem;
    color: var(--color-principal);
    transition: all 0.3s ease;
}

.portfolio-icon svg {
    width: 64px;
    height: 64px;
    display: block;
}

/* ESTILOS PARA MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 30, 45, 0.7);
    backdrop-filter: blur(4px);
    overflow: auto;
}

.modal-content {
    background-color: var(--color-blanco);
    margin: 5% auto;
    padding: 2rem;
    width: min(90%, 800px);
    border-radius: 10px;
    position: relative;
    border-radius: 1.5rem;
    border: 2.5px solid var(--color-acento);
    box-shadow: 0 8px 32px rgba(20, 224, 255, 0.15);
    animation: modalFadeIn 0.4s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--color-texto);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--color-principal);
}

.modal-body {
    margin-top: 1.5rem;
}

/* Proyecto detallado */
.project-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.project-images img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-info h3 {
    color: var(--color-principal);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.project-info p {
    margin-bottom: 1.5rem;
}

.project-features {
    margin-top: 1.5rem;
}

.project-features h4 {
    color: var(--color-secundario);
    margin-bottom: 0.8rem;
}

.project-features ul {
    list-style-type: none;
}

.project-features li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.project-features li::before {
    content: "•";
    color: var(--color-acento);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -3px;
}

@media (min-width: 768px) {
    .project-detail {
        grid-template-columns: 1fr 1fr;
    }
}

/* ESTILOS PARA PORTAFOLIO MOBILE-FIRST */
.portfolio-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 200px;
    cursor: pointer;
}

.portfolio-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 3rem;
    color: var(--color-principal);
    transition: all 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 97, 107, 0.9), transparent);
    color: var(--color-blanco);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Para desktop: hover */
@media (hover: hover) {
    .portfolio-card:hover .portfolio-overlay {
        opacity: 1;
    }

    .portfolio-card:hover .portfolio-icon {
        color: var(--color-acento);
        transform: scale(1.15);
    }
}

/* Para móviles: clase active */
.portfolio-card.active .portfolio-overlay {
    opacity: 1;
}

.portfolio-card.active .portfolio-icon {
    color: var(--color-acento);
}

.btn-portfolio {
    display: inline-block;
    background-color: var(--color-acento);
    color: var(--color-blanco);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 0.8rem;
    transition: background-color 0.3s ease;
    text-align: center;
}

.btn-portfolio:hover {
    background-color: var(--color-principal);
}

/* Ajustes para pantallas mayores */
@media (min-width: 768px) {
    .portfolio-card {
        height: 250px;
    }

    .portfolio-icon {
        font-size: 4rem;
    }
}

/* ESTILOS PARA CARRUSEL DE DISEÑO */
.design-carousel {
    margin-bottom: 2rem;
}

.design-carousel h3 {
    color: var(--color-secundario);
    margin: 1.5rem 0 0.5rem;
    text-align: center;
}

.carousel-container {
    position: relative;
    margin: 1rem 0 3rem;
    /* Añadido margen inferior para los botones */
    overflow: hidden;
}

.carousel-container img {
    width: 100%;
    border-radius: 8px;
    display: none;
    margin-bottom: 0.5rem;
    /* Espacio entre imagen y botones */
}

.carousel-container img:first-child {
    display: block;
}

.carousel-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.carousel-prev,
.carousel-next {
    background-color: rgba(0, 151, 178, 0.7);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    min-width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: var(--color-principal);
}

@media (min-width: 768px) {
    .design-carousel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .design-carousel h3 {
        grid-column: span 2;
    }

    .carousel-buttons {
        margin-top: 1rem;
    }
}

/* ESTILOS PARA COMPARACIÓN DE IMÁGENES */
.design-comparison {
    width: 100%;
    margin-bottom: 2rem;
}

.design-comparison h3 {
    color: var(--color-secundario);
    text-align: center;
    margin-bottom: 1.5rem;
}

.comparison-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.comparison-slides {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.comparison-slide {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

.comparison-slide.active {
    display: block;
}

.image-comparison {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
}

.image-box {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.image-box h4 {
    color: var(--color-principal);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.comparison-img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #ddd;
}

.comparison-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.comparison-prev,
.comparison-next {
    background-color: var(--color-principal);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.comparison-prev:hover,
.comparison-next:hover {
    background-color: var(--color-secundario);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .image-comparison {
        flex-direction: column;
        gap: 1.5rem;
    }

    .image-box {
        min-width: 100%;
    }

    .comparison-img {
        max-height: 300px;
    }
}

/* MODAL CONTACTO */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
    animation: modalFadeIn 0.5s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--color-blanco);
    margin: 8% auto 2% auto;
    padding: 2rem;
    width: min(90%, 500px);
    border-radius: 18px;
    position: relative;
    box-shadow: 0 8px 32px 0 rgba(0, 151, 178, 0.25), 0 1.5px 8px 0 rgba(0, 201, 219, 0.10);
    animation: modalContentPop 0.6s cubic-bezier(.68, -0.55, .27, 1.55);
}

@keyframes modalContentPop {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content h2 {
    color: var(--color-principal);
    margin-bottom: 1rem;
}

.modal-content label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    color: var(--color-secundario);
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.3rem;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    transition: border 0.3s, box-shadow 0.3s;
    font-size: 1rem;
    background: #f8fcfd;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    border: 1.5px solid var(--color-acento);
    box-shadow: 0 0 0 2px rgba(0, 201, 219, 0.15);
    outline: none;
}

.modal-content .btn {
    margin-top: 1.5rem;
    width: 100%;
    background: linear-gradient(90deg, var(--color-principal) 0%, var(--color-acento) 100%);
    color: var(--color-blanco);
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    padding: 1rem 0;
    box-shadow: 0 4px 16px 0 rgba(0, 151, 178, 0.15);
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    text-align: center !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content .btn:hover {
    background: linear-gradient(90deg, var(--color-acento) 0%, var(--color-principal) 100%);
    box-shadow: 0 8px 32px 0 rgba(0, 201, 219, 0.18);
    transform: translateY(-2px) scale(1.03);
}

.modal-content .btn-contacto {
    display: block;
    margin: 2rem auto 0 auto;
    width: 90%;
    max-width: 400px;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 2.2rem;
    color: var(--color-texto);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.close-modal:hover {
    color: var(--color-acento);
    transform: scale(1.2) rotate(90deg);
}

.modal-content hr {
    border: none;
    border-top: 1.5px solid var(--color-acento);
    margin: 1.5rem 0;
}

/* BOTONES EN COLUMNA DENTRO DE LAS CARDS */
.card .btn {
    display: block;
    margin-top: 0.5rem;
}

/* Ajustar color de texto en la sección ¿Cómo trabajamos? */
.clientes .card {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-principal);
}

.clientes .card h4 {
    color: var(--color-secundario);
}

/* Separación extra para el botón */
.clientes .btn {
    margin-top: 2rem;
}

@media (max-width: 600px) {
    .clientes .btn {
        width: 100%;
    }
}

/* ESTILOS PARA MENÚS DIGITALES */
.menu-qr-section {
    margin-bottom: 2rem;
}

.qr-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.qr-item {
    background-color: var(--color-fondo) !important;
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(206,231,233,0.09)"/></svg>') !important;
    background-repeat: repeat !important;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
    padding: 1.5rem 1rem;
    color: #fff !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qr-features ul {
    list-style-position: outside;
    padding-left: 1.5em;
    margin-left: 0;
}

.qr-features li {
    padding-left: 0;
    margin-bottom: 0.5em;
}

.qr-link-text {
    color: var(--color-acento) !important;
}

.qr-link-text a {
    color: var(--color-acento) !important;
}

.qr-item:hover {
    transform: translateY(-5px);
}

.qr-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.5rem;
    background: white;
}

.qr-link-text {
    margin-top: 1rem;
    color: var(--color-secundario);
    font-size: 0.9rem;
}

.qr-link-text a {
    color: var(--color-acento);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.qr-link-text a:hover {
    color: var(--color-principal);
    text-decoration: underline;
}

.menu-benefits {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.menu-benefits h4 {
    color: var(--color-secundario);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .qr-gallery {
        grid-template-columns: 1fr;
    }

    .qr-img {
        max-width: 180px;
    }
}

/* ESTILOS PARA CATEGORÍAS DE MENÚ */
.qr-category {
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 800;
    margin-bottom: 1.2rem;
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.qr-category.k-alpha {
    background: linear-gradient(135deg, #0097b2 0%, #00c9db 100%);
    border: 2px solid #00c9db;
}

.qr-category.k-sigma {
    background: linear-gradient(135deg, #005f6b 0%, #0097b2 100%);
    border: 2px solid #0097b2;
}

.qr-category.k-quantum {
    background: linear-gradient(135deg, #00343b 0%, #005f6b 100%);
    border: 2px solid #005f6b;
}

/* Ajustes para el contenedor QR */
.qr-item {
    border: 1px solid rgba(0, 151, 178, 0.2);
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.qr-item:hover {
    border-color: var(--color-acento);
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 151, 178, 0.2);
}

/* Texto de características */
.qr-features li::marker {
    color: var(--color-acento);
    font-size: 1.2em;
}

.qr-link-text a {
    color: var(--color-secundario);
    font-weight: 600;
}

.qr-link-text a:hover {
    color: var(--color-acento);
}

.menu-disclaimer {
    margin-top: 2rem;
    padding: 1rem;
    background-color: rgba(0, 151, 178, 0.05);
    border-left: 3px solid var(--color-acento);
    border-radius: 0 5px 5px 0;
    font-size: 0.9rem;
    color: var(--color-secundario);
}

.menu-disclaimer em {
    font-style: italic;
    color: var(--color-texto);
}

/* ESTILOS PARA PROYECTOS WEB */
.web-projects-section {
    margin-bottom: 2rem;
}

.web-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.web-project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--color-fondo);
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(206,231,233,0.09)"/></svg>');
    background-repeat: repeat;
    border-radius: 1rem;
    padding: 1rem;
    color: #fff;
}

.web-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.web-project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--color-acento);
}

.web-project-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.web-project-info h4,
.web-project-info p {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.web-benefits {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.web-benefits h4 {
    color: var(--color-secundario);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .web-projects-grid {
        grid-template-columns: 1fr;
    }

    .web-project-image img {
        height: 180px;
    }
}

/* ESTILOS PARA INVITACIONES DIGITALES */
.invitation-gallery {
    margin-bottom: 2rem;
}

.invitation-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.invitation-card {
    background-color: var(--color-fondo) !important;
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(206,231,233,0.09)"/></svg>') !important;
    background-repeat: repeat !important;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
    padding: 1.5rem 1rem;
    color: #fff !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.invitation-card:hover {
    transform: translateY(-5px);
}

.invitation-header {
    background: linear-gradient(135deg, var(--color-principal) 0%, var(--color-acento) 100%);
    padding: 1rem;
    text-align: center;
    color: white;
}

.invitation-header h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.invitation-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 3px solid white;
    border-radius: 5px;
    margin-top: 0.5rem;
}

.invitation-features {
    padding: 1.5rem;
}

.invitation-features ul {
    margin-bottom: 1rem;
}

.invitation-features li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.invitation-features li::before {
    content: "•";
    color: var(--color-acento);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -3px;
}

/* Eliminar el punto nativo de la lista */
.invitation-features ul {
    list-style-type: none;
    padding-left: 0;
}

.invitation-features li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.invitation-benefits {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .invitation-examples {
        grid-template-columns: 1fr;
    }

    .invitation-image {
        height: 180px;
    }
}

/* Agregar al final de style.css */
.invitation-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.invitation-buttons .btn-portfolio {
    padding: 0.45em 1.4em;
    font-size: 1rem;
    border-radius: 2em;
    background: var(--color-acento);
    color: #fff;
    font-weight: 600;
    border: none;
    box-shadow: 0 2px 8px rgba(20, 224, 255, 0.10);
    margin: 0 0.3em;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}

.invitation-buttons .btn-portfolio:hover {
    background: var(--color-principal);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(20, 224, 255, 0.18);
}

.invitation-buttons .quote-btn {
    background-color: var(--color-secundario);
}

.invitation-buttons .quote-btn:hover {
    background-color: var(--color-principal);
}

@media (max-width: 480px) {
    .invitation-buttons {
        flex-direction: column;
    }
}

/* ESTILOS PARA PERSONALIZACIÓN */
.personalization-section {
    margin-bottom: 2rem;
}

.personalization-carousel {
    margin: 2rem 0;
}

.personalization-carousel .carousel-container {
    background-color: var(--color-fondo) !important;
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(206,231,233,0.09)"/></svg>') !important;
    background-repeat: repeat !important;
    border-radius: 1rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10) !important;
    padding: 2rem 1rem 1rem 1rem !important;
    color: #fff !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.personalization-carousel img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    background-color: var(--color-fondo);
    padding: 1rem;
    display: none;
}

.personalization-carousel .carousel-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.personalization-carousel .carousel-prev,
.personalization-carousel .carousel-next {
    background-color: var(--color-principal);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.personalization-carousel .carousel-prev:hover,
.personalization-carousel .carousel-next:hover {
    background-color: var(--color-secundario);
}

.instagram-link {
    text-align: center;
    margin: 1.5rem 0;
}

.instagram-link .btn-portfolio {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
}

.instagram-link .btn-portfolio:hover {
    background: linear-gradient(45deg, #E1306C, #C13584, #833AB4, #5851DB, #405DE6);
}

.instagram-link i {
    font-size: 1.2rem;
}

.personalization-benefits {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.personalization-benefits h4 {
    color: var(--color-secundario);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .personalization-carousel img {
        max-height: 300px;
    }
}

/* Botón hamburguesa */
.nav-toggle {
    display: none;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: auto;
    height: auto;
    margin: 0;
    padding: 8px 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }
}

.nav-toggle:focus {
    outline: 2px solid #00fff7;
    outline-offset: 2px;
}

.nav-toggle-bar {
    width: 28px;
    height: 4px;
    background: var(--color-blanco);
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

.logo-link {
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.logo {
    height: 38px;
    width: auto;
    display: block;
}

/* Responsive navbar */
@media (max-width: 900px) {
    .nav-toggle {
        background: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        width: auto;
        height: auto;
        margin: 0 auto 1.5rem auto;
        position: relative;
        left: 0;
        right: 0;
        z-index: 1101;
    }

    .nav-toggle-bar {
        width: 28px;
        height: 4px;
        background: var(--color-blanco);
        margin: 4px 0;
        border-radius: 2px;
        transition: all 0.3s;
    }

    .logo-link {
        margin-bottom: 0.3rem;
    }

    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 90vw;
        max-width: 350px;
        background: rgba(0, 151, 178, 0.85);
        backdrop-filter: blur(8px);
        border-radius: 18px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
        padding: 1.2rem 0;
        flex-direction: column;
        align-items: center;
        gap: 1.1rem;
        z-index: 100;
        transition: opacity 0.3s, transform 0.3s;
        opacity: 0;
        pointer-events: none;
    }

    .main-nav ul.show {
        display: flex;
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) scale(1);
    }

    .main-nav ul li {
        width: 100%;
        text-align: center;
    }

    .main-nav ul a {
        font-size: 1.1rem;
        padding: 0.7rem 0;
        border-radius: 10px;
        transition: background 0.2s, color 0.2s;
    }

    .main-nav ul a:hover,
    .main-nav ul a:focus {
        background: rgba(0, 201, 219, 0.18);
        color: #fff;
    }
}

@media (max-width: 900px) {
    .main-nav ul {
        width: 94vw;
        max-width: 370px;
        min-width: 180px;
        padding: 1.2rem 0.5rem;
        gap: 1.2rem;
        z-index: 1201;
    }

    .main-nav ul li {
        width: 100%;
        text-align: center;
        padding: 0.2rem 0;
    }

    .nav-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 8px 8px;
        z-index: 1202;
    }

    .logo-link {
        min-width: 38px;
    }
}

@media (max-width: 900px) {
    .main-nav ul {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 90vw;
        max-width: 350px;
        background: rgba(0, 151, 178, 0.85);
        backdrop-filter: blur(8px);
        border-radius: 18px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
        padding: 1.2rem 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.1rem;
        z-index: 100;
        transition: opacity 0.3s, transform 0.3s;
    }

    .main-nav ul li {
        width: 100%;
        text-align: center;
    }

    .main-nav ul a {
        font-size: 1.1rem;
        padding: 0.7rem 0;
        border-radius: 10px;
        transition: background 0.2s, color 0.2s;
    }

    .main-nav ul a:hover,
    .main-nav ul a:focus {
        background: rgba(0, 201, 219, 0.18);
        color: #fff;
    }
}

@media (max-width: 900px) {
    .cards {
        gap: 1.2rem;
    }

    .card {
        width: 90%;
        min-width: 220px;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .cards {
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
    }

    .card {
        width: 100%;
        min-width: unset;
        max-width: 100%;
    }
}

@media (max-width: 700px) {
    .clientes {
        padding: 2.2rem 0 1.2rem 0;
    }

    .carousel-track {
        gap: 1rem;
        padding: 0.5rem 0;
    }
}

.carousel-track {
    animation: scroll 18s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 0.4rem;
    }

    .footer-logo {
        height: 22px;
    }

    footer {
        font-size: 1rem;
        padding: 1.1rem 0 0.7rem 0;
    }
}

.main-nav ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

@media (max-width: 900px) {
    .modal-content {
        margin: 18% auto 2% auto;
    }
}

@media (max-width: 600px) {
    .modal-content {
        margin: 28% auto 2% auto;
    }
}

.input-error {
    border: 1.5px solid #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.10);
}

.btn-success {
    background: linear-gradient(90deg, #00c9db 0%, #0097b2 100%) !important;
    color: #fff !important;
    animation: pulseSuccess 0.7s;
}

@keyframes pulseSuccess {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 201, 219, 0.3);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 201, 219, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 201, 219, 0);
    }
}

.card .btn-servicio {
    display: block;
    width: 90%;
    margin: 0.5rem auto;
    padding: 0.7rem 0;
    font-size: 1.05rem;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--color-principal) 0%, var(--color-acento) 100%);
    color: var(--color-blanco);
    font-weight: 600;
    box-shadow: 0 2px 8px 0 rgba(0, 151, 178, 0.10);
    border: none;
    text-align: center;
    transition: background 0.3s, transform 0.2s;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.card .btn-servicio:hover {
    background: linear-gradient(90deg, var(--color-acento) 0%, var(--color-principal) 100%);
    transform: translateY(-2px) scale(1.03);
}

.card-flujo {
    background: rgba(0, 151, 178, 0.18);
    color: #00323d;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.10);
    border: 1.5px solid rgba(0, 151, 178, 0.10);
}

.card-flujo h4 {
    color: #007c91;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.7rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.card-flujo p {
    color: #007c91;
    font-size: 1.05rem;
    text-shadow: none;
}

.btn-asesoria {
    display: block;
    margin: 2rem auto 0 auto;
    width: 90%;
    max-width: 400px;
    background: linear-gradient(90deg, var(--color-principal) 0%, var(--color-acento) 100%);
    color: var(--color-blanco);
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    padding: 1rem 0;
    box-shadow: 0 4px 16px 0 rgba(0, 151, 178, 0.15);
    cursor: pointer;
    text-align: center;
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.btn-asesoria:hover {
    background: linear-gradient(90deg, var(--color-acento) 0%, var(--color-principal) 100%);
    box-shadow: 0 8px 32px 0 rgba(0, 201, 219, 0.18);
    transform: translateY(-2px) scale(1.03);
}

/* --- ESTILOS MODERNOS PARA TARJETAS DE PORTAFOLIO (Refactorizado para eliminar !important) --- */
/* Se aumenta la especificidad para que estos estilos prevalezcan sin forzarlos. */

.portfolio-grid .portfolio-overlay {
    display: none;
}

.portfolio-grid .portfolio-card {
    background: rgba(0, 151, 178, 0.10);
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px 0 rgba(0, 151, 178, 0.10);
    border: 1.5px solid rgba(0, 151, 178, 0.10);
    padding: 2.5rem 1.2rem 1.5rem 1.2rem;
    text-align: center;
    min-height: 220px;
    height: auto;
    /* Sobrescribe la altura fija de estilos anteriores */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
    scroll-margin-top: 8rem;
    /* Añade un margen para el scroll y evita que el header cubra la tarjeta */
    /* Sobrescribe el overflow:hidden anterior */
}

.portfolio-grid .portfolio-title {
    color: #007c91;
    font-size: 1.15rem;
    font-weight: bold;
    margin: 1.2rem 0 0.7rem 0;
    display: block;
}

.portfolio-grid .btn-portfolio {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.6rem 1.3rem;
    background: linear-gradient(90deg, var(--color-principal) 0%, var(--color-acento) 100%);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 20px;
    box-shadow: 0 2px 8px 0 rgba(0, 151, 178, 0.10);
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
}

.portfolio-grid .btn-portfolio:hover {
    background: linear-gradient(90deg, var(--color-acento) 0%, var(--color-principal) 100%);
    transform: translateY(-2px) scale(1.03);
}

/* --- RESPONSIVIDAD MODAL Y TARJETAS (AL FINAL DEL CSS) --- */
@media (max-width: 1024px) {
    .modal-content {
        padding: 1.2rem 0.5rem !important;
        max-width: 98vw !important;
        width: 98vw !important;
    }

    .project-detail {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .project-info {
        margin-top: 1.5rem !important;
    }
}

@media (max-width: 600px) {
    .modal-content {
        padding: 0.5rem 0.2rem !important;
        max-width: 100vw !important;
        width: 100vw !important;
    }

    .web-project-card,
    .qr-item,
    .invitation-card {
        max-width: 100% !important;
    }
}

.web-project-card,
.qr-item,
.invitation-card {
    max-width: 370px;
    width: 100%;
    margin: 0 auto;
}

.project-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: flex-start;
}

@media (min-width: 1200px) {
    .modal-content {
        max-width: 1100px !important;
        width: 90vw !important;
        padding: 3rem 3rem !important;
    }

    .project-detail {
        gap: 3rem !important;
    }
}

.comparison-slide .image-box,
.image-comparison .image-box,
.image-box {
    background: var(--color-fondo) url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(206,231,233,0.09)"/></svg>') repeat !important;
    border-radius: 1rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10) !important;
    padding: 1.5rem 1rem !important;
    color: #fff !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
    border: none !important;
}

.comparison-img {
    border: none !important;
}