/* =======================
   TOOLS GRID
======================= */
.tools-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Tool cards */
.tool-card {
    background: rgba(0,0,0,0.25);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.tool-card .tool-content p {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 12px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* Numeración tips */
.tool-card .tool-content p[data-num]::before {
    content: attr(data-num);
    font-weight: bold;
    color: #00d9ff;
    margin-right: 6px;
}

/* =======================
   VIDEOS GRID 3x3
======================= */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.videos-grid .video-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.videos-grid .video-card img {
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px){
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px){
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

/* =======================
   FRANQUICIA CELDAS
======================= */
.franquicia-left, .franquicia-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.franquicia-right img {
    width: 100%;
    border-radius: 12px;
}

/* =======================
   POPUP VIDEOS
======================= */
.video-popup {
    display: none;
    position: fixed;
    top:0;
    left:0;
    width: 100%;
    height:100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.video-popup-content {
    position: relative;
    width: 80%;
    max-width: 900px;
}

.video-popup video {
    width: 100%;
    border-radius: 12px;
}

.close-video {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

/* =======================
   BOTONES
======================= */
.tool-button a, .popup-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 10px;
    transition: background 0.3s;
}

.tool-button a:hover, .popup-link:hover {
    background-color: #0056b3;
}

/* =======================
   CELDAS TIPS AZUL MARINO
======================= */
.tips-left .tool-card,
.tips-right .tool-card,
.tips-observacion .tool-card {
    background-color: #0d1a4f; /* Azul marino */
    padding: 20px;
    border-radius: 12px;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Numeración tips */
.tool-card .tool-content p[data-num]::before {
    content: attr(data-num);
    font-weight: bold;
    color: #00d9ff;
    margin-right: 6px;
}

/* =======================
   FOOTER NUEVO
======================= */
.main-footer-new{
    width:100%;
    padding:50px 40px 20px;
    border-top:1px solid rgba(0,180,255,0.20);
    background:rgba(0,0,0,0.40);
}

.footer-grid-new{
    display:grid;
    grid-template-columns:1fr 1fr 1fr 1fr;
    gap:30px;
    margin-bottom:35px;
}

.footer-box-new h3{
    color:#00d9ff;
    margin-bottom:15px;
}

.footer-box-new p,
.footer-box-new li{
    color:#dddddd;
    list-style:none;
    line-height:1.6;
}

.footer-box-new.footer-logo img{
    width:240px;
}

/* RESPONSIVE FOOTER */
@media(max-width: 768px){
    .footer-grid-new {
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width: 480px){
    .footer-grid-new {
        grid-template-columns:1fr;
    }
}