| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/laragon/www/sections/ |
Upload File : |
<?php include(__DIR__ . '/../app/unidades.php'); ?>
<div class="section flv_section flv_sections_18 full-width " id="unidades-section">
<div class="section_wrapper clearfix">
<div class="column one column_fancy_heading">
<div class="fancy_heading fancy_heading_icon">
<div class="animate" data-anim-type="zoomInLeftLarge">
<h3 class="title">NUESTRAS UNIDADES</h3>
<div class="inside">
<span class="big">Visite Nuestras Unidades</span>
</div>
</div>
</div>
</div>
<div class="unidades-container">
<?php foreach ($unidadesList as $item): ?>
<div class="unidad-card">
<a href="/modules/unidades/index-<?= htmlspecialchars($item['url']) ?>.html" class="trailer_box unidad-link">
<div class="unidad-image-container">
<img class="unidad-image scale-with-grid"
src="<?= htmlspecialchars($item['image']) ?>"
alt="<?= htmlspecialchars($item['title']) ?>"
loading="lazy">
<div class="desc">
<h2 class="unidad-title"><?= htmlspecialchars($item['title']) ?></h2>
<div class="line"></div>
</div>
<div class="image-overlay">
<div class="unidad-action">
<i class="<?= htmlspecialchars($item['icon']) ?>"></i> VER MÁS
</div>
</div>
</div>
</a>
</div>
<?php endforeach; ?>
<!-- PTDI Special Card -->
<div class="unidad-card">
<a href="/pages/transparencia.html" class="trailer_box unidad-link">
<div class="unidad-image-container">
<img class="unidad-image scale-with-grid"
src="/assets/images/units/cards/PTDI CUADRO.png"
alt="PTDI"
loading="lazy">
<div class="desc">
<h3 class="unidad-title">PTDI</h3>
<div class="line"></div>
</div>
<div class="image-overlay">
<div class="unidad-action">
<i class="icon-compass"></i> VER MÁS
</div>
</div>
</div>
</a>
</div>
</div>
</div>
</div>
<style>
.trailer_box .desc {
padding: 20px 15px 50px;
}
.unidades-section {
padding: 40px 0;
background: #f8fafc;
}
.unidades-container {
display: flex;
flex-wrap: nowrap;
overflow-x: auto;
max-width: 1200px;
margin: 0 auto;
padding: 10px;
gap: 20px;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
box-sizing: border-box;
}
.unidades-container::-webkit-scrollbar {
display: none;
}
.unidad-card {
flex: 0 0 auto;
/* width: 280px;
background: white; */
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}
.unidad-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}
.unidad-link {
display: block;
text-decoration: none;
color: inherit;
}
.unidad-image-container {
/* height: 250px; */
position: relative;
overflow: hidden;
}
.unidad-image {
/* width: 100%; */
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}
.unidad-card:hover .unidad-image {
transform: scale(1.05);
}
.image-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, transparent 100%);
padding: 10px;
}
.unidad-title {
/* margin: 0; */
color: white;
/* font-size: 18px; */
/* font-weight: 600; */
text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.unidad-action {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 20px;
background: #06a0e2;
color: white;
border-radius: 20px;
font-size: 14px;
font-weight: 500;
transition: all 0.3s ease;
}
.unidad-card:hover .unidad-action {
background: #4299e1;
transform: translateY(-2px);
}
/* Responsive Adjustments */
@media (min-width: 992px) {
.unidades-container {
flex-wrap: wrap;
justify-content: center;
overflow-x: visible;
padding: 10px;
}
.unidad-card {
width: calc(25% - 15px);
/* margin-bottom: 20px; */
}
}
@media (min-width: 768px) and (max-width: 991px) {
.unidad-card {
width: calc(33.333% - 20px);
}
}
@media (max-width: 767px) {
.unidades-container {
max-width: 100%;
margin: 0;
}
.unidad-card {
width: 260px;
}
.unidad-image-container {
height: 160px;
}
.unidad-title {
font-size: 16px;
}
}
</style>