main { background-image: url('/static/y_img/solutions/girl.png'); background-repeat: no-repeat; background-position: center bottom; } .parent { /* padding: 5em; */ display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); /* gap: 2em; */ & div { background-size: contain; background-position: center; background-repeat: no-repeat; transition: all 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94); border: 2px solid transparent; /* border: 2px solid red; */ border-radius: 15px; &:hover { animation: vibrate 0.1s ease infinite !important; transform: scale(1.05) !important; box-shadow: 0 5px 15px rgba(255, 255, 255, 0.5) !important; border-color: #00acc1 !important; filter: brightness(1.05) !important; z-index: 10 !important; border-radius: 15px !important; } } } /* Imágenes específicas */ .i-i { background-image: url('/static/y_img/solutions/reclutamiento_seleccion.png'); } .i-ii { background-image: url('/static/y_img/solutions/liderazgo.png'); } .i-iii { background-image: url('/static/y_img/solutions/capacitacion.png'); } .ii-i { background-image: url('/static/y_img/solutions/cambio.png'); grid-row: 2; } .ii-ii { background-image: url('/static/y_img/solutions/objetivos.png'); grid-column: 3; grid-row: 2; } main { place-items: center; } /* Smartphones (hasta 767px) */ @media (max-width: 767px) { main { place-items: start; min-height: 80vh; background-size: 65% auto; border-radius: 15px; padding: 1em; /* Añadido para espacio interno */ } .parent { width: 100%; padding: 1em; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(120px, auto); /* Renglones automáticos */ gap: 1em; } .parent div { min-height: 120px; width: 100%; background-size: contain; background-position: center; background-repeat: no-repeat; border: 2px solid rgba(255, 255, 255, 0.5); } .ii-ii { grid-column: 1 / span 2; /* Ocupa las dos columnas */ grid-row: 3; /* Está en la tercera fila */ justify-self: center; /* Centrado dentro de las dos columnas */ width: 60%; margin-top: 1em; } } /* Tablets (768px - 1023px) */ @media (min-width: 768px) and (max-width: 1023px) { main { place-items: start; min-height: 50vh; background-size: auto 45%; border-radius: 15px; padding: 1em; } .parent { width: 100%; padding: 1em; display: grid; grid-template-columns: repeat(3, 1fr); /* 3 columnas */ grid-template-rows: repeat(2, minmax(120px, auto)); /* 2 filas */ gap: 1em; } .parent div { min-height: 120px; width: 100%; background-size: contain; background-position: center; background-repeat: no-repeat; border: 2px solid rgba(255, 255, 255, 0.5); } /* Ajustes específicos de posición */ /* Primeros tres divs no necesitan ajuste, fluyen normalmente */ .ii-i { grid-column: 1; /* Columna 1 */ grid-row: 2; /* Fila 2 */ } .ii-ii { grid-column: 3; /* Columna 3 */ grid-row: 2; /* Fila 2 */ } } /* Laptops (1024px - 1439px) */ @media (min-width: 1024px) and (max-width: 1439px) { .parent { width: 100% !important; height: 65vw; gap: 2em; } main { background-size: 50% auto; /* 30% del ancho del contenedor */ min-height: 70dvh; } } /* PCs de escritorio (1440px - 1919px) */ @media (min-width: 1440px) and (max-width: 1919px) { .parent { width: 100% !important; height: 50vw; gap: 2em; } main { background-size: 45% auto; /* 30% del ancho del contenedor */ height: 80vh; } } /* Pantallas Ultrawide (1920px en adelante) */ @media (min-width: 1920px) { .parent { width: 100% !important; height: 40vw; gap: 2em; } main { background-size: 50% auto; /* 30% del ancho del contenedor */ min-height: 80vh; } }