/* Mobile First (default) */
body { font-size: 14px; }

/* Tablet (768px en adelante) */
@media (min-width: 768px) {
  body { font-size: 16px; }
}

/* Desktop (1024px en adelante) */
@media (min-width: 1024px) {
  body { font-size: 18px; }
}

/* TV/Pantallas grandes (1440px+) */
@media (min-width: 1440px) {
  .container { max-width: 1400px; }
}

img, video {
  max-width: 100%;
  height: auto;
}

.nav-desktop { display: none; }
.hamburger-btn { display: block; }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .hamburger-btn { display: none; }
}

.mantenimiento{
    text-align: center;
    width: 300px;
    height: 100px;
};

.fabricacion{
    padding: 10px;
    width: 10px;
    height: 10px;
};

.fabricacionImg{
    width: 10px;
    height: 10px;
};

.rounded-circle{
    width: 10px;
    border-radius: 50%;
    border: 10;
};

.hover-card {
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            transition: all 0.4s ease;
        }
        
        .hover-card img {
            width: 100%;
            height: 250px;
            object-fit: cover;
            transition: transform 0.4s ease;
        }
        
        .hover-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 1.5rem;
            transform: translateY(100%);
            transition: transform 0.4s ease;
        }
        
        .hover-card:hover .hover-overlay {
            transform: translateY(0);
        }
        
        .hover-card:hover img {
            transform: scale(1.05);
        }

        .hover-container {
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            margin-bottom: 1.5rem;
        }
        
        .hover-container img {
            width: 100%;
            height: 250px;
            object-fit: cover;
            display: block;
        }
        
        .hover-text {
            position: absolute;
            bottom: -100%;
            left: 0;
            width: 100%;
            background: rgba(0, 0, 0, 0.85);
            color: white;
            padding: 1.5rem;
            transition: bottom 0.4s ease;
        }
        
        .hover-container:hover .hover-text {
            bottom: 0;
        }

        .weWorks {
            margin-top: 30px;
            text-align: center;
            margin-bottom: 30px;
        }
        
        /* Galería de trabajos */
        .portfolio-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .portfolio-item {
            position: relative;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.4s ease;
            aspect-ratio: 4/3; /* Proporción de las imágenes (Por si se necesita ajustar) */
        }
        
        .portfolio-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.5s ease;
        }
        
        /* Efecto hover */
        .portfolio-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }
        
        .portfolio-item:hover img {
            transform: scale(1.05);
        }
        
        /* Efecto que aparece al pasar el cursor */
        .portfolio-info {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 20px;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            color: white;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .portfolio-item:hover .portfolio-info {
            opacity: 1;
        }
        
        .portfolio-info h3 {
            margin: 0 0 5px 0;
            font-size: 1.2rem;
        }
        
        .portfolio-info p {
            margin: 0;
            font-size: 0.9rem;
        }


        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap; /* Para que los elementos se ajusten */
        }

        /* Video (nuevo) */
        .portfolio-video {
            grid-column: 1 / -1; /* Ocupa todo el ancho */
            margin: 30px 0;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        .portfolio-video1 {
            margin: 0;
            width: 690px;
            height: 490px;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        .portfolio-video2 {
            margin: 0;
            width: 690px;
            left: 106%;
            height: 490px;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        .portfolio-video video {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
        }

        .video-container {
            position: absolute;
            width:100%;
            height: 1000px;
            aspect-ratio: 21/9; /* Proporción clásica de video (ajústala si es necesario!!) */
        }
        
        /* Animación al cargar */
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .portfolio-item {
            animation: fadeInUp 0.6s ease forwards;
            opacity: 0;
        }

        .portfolio-item, .portfolio-video {
            animation: fadeInUp 0.6s ease forwards;
            opacity: 0;
        }
        
        /* Retrasos para animación en cascada */
        .portfolio-item:nth-child(1) { animation-delay: 0.1s; }
        .portfolio-item:nth-child(2) { animation-delay: 0.2s; }
        .portfolio-item:nth-child(3) { animation-delay: 0.3s; }
        .portfolio-item:nth-child(4) { animation-delay: 0.4s; }
        .portfolio-item:nth-child(5) { animation-delay: 0.5s; }
        .portfolio-item:nth-child(6) { animation-delay: 0.6s; }

/* Botón que te sigue WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;

    width: 60px;
    height: 60px;

    background-color: #25D366;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;

    transition: transform 0.3s ease;
}

/* Icono */
.whatsapp-float img {
    width: 32px;
    height: 32px;
}

/* Efecto hover */
.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float i {
    font-size: 32px;
    color: white;
}


/* Contenedor grid para los videos*/
.portafolio-videos {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    gap: 20px;
    max-width: 1400px;
    margin: auto;
    padding: 30px;
}

/* Videos */
.portafolio-videos video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* Responsive para celular */
@media (max-width: 600px) {
    .portafolio-videos {
        grid-template-columns: 1fr; /* 1 columna */
    }
}

.video-box {
    width: 100%;
    aspect-ratio: 18 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: black;
}

.video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 600px) {
    .portafolio-videos {
        max-width: 100%;
        padding: 15px;
    }

    .video-box {
        aspect-ratio: 16 / 9;
    }
}

.contact-container{
max-width:1200px;
margin:auto;
padding:40px 20px;
font-family:'Roboto',sans-serif;
}

.contact-header{
text-align:center;
margin-bottom:40px;
}

.contact-header h1{
font-size:40px;
margin-bottom:10px;
}

.contact-header p{
color:#666;
font-size:18px;
}

.contact-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:30px;
}

/* CARDS */

.map-card,
.contact-card{
background:white;
border-radius:12px;
padding:25px;
box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

/* MAPA */

.map-wrapper iframe{
width:100%;
height:350px;
border:0;
border-radius:10px;
}

/* BOTONES UBICACIÓN */

.location-links{
margin-top:15px;
display:flex;
flex-wrap:wrap;
gap:10px;
}

.location-links button{
border:none;
background:#951e1e;
color:white;
padding:8px 14px;
border-radius:6px;
cursor:pointer;
font-size:14px;
}

.location-links button:hover{
background:#951e1e;
}

/* INFO */

.info-box{
margin-top:15px;
font-size:14px;
color:#444;
}

/* CONTACTO */

.contact-item{
display:flex;
align-items:center;
gap:10px;
margin-bottom:15px;
font-size:16px;
}

.contact-item i{
font-size:20px;
color:#951e1e;
}

/* REDES */

.social-icons{
margin-top:20px;
display:flex;
gap:15px;
}

.social-icons a{
font-size:22px;
color:#333;
transition:0.3s;
}

.social-icons a:hover{
color:#951e1e;
transform:scale(1.2);
}

/* BOTON */

.back-btn{
display:inline-block;
margin-top:25px;
background:#222;
color:white;
padding:10px 18px;
border-radius:6px;
text-decoration:none;
}


.back-btn:hover{
background:#951e1e;
}

/* RESPONSIVE */

@media (max-width:900px){

.contact-grid{
grid-template-columns:1fr;
}

.contact-header h1{
font-size:32px;
}

}   

.map-card,
.contact-card{
animation: fadeUp 0.8s ease;
}

@keyframes fadeUp{
from{
opacity:0;
transform:translateY(20px);
}
to{
opacity:1;
transform:translateY(0);
}
}

.map-card:hover,
.contact-card:hover{
transform:translateY(-5px);
box-shadow:0 15px 35px rgba(0,0,0,0.15);
transition:0.3s;
}

.contact-item a{
text-decoration:none;
color:#333;
}

.contact-item a:hover{
color:#951e1e;
}

.custom-navbar{
    background-color: #ffffff;
}

/* HEADER */
.custom-navbar{
    background-color: #ffffff;
    padding: 12px 0;
}

/* CONTENEDOR */
.custom-header-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* LOGO + TEXTO */
.custom-brand{
    display: flex;
    align-items: center;
    text-decoration: none !important;
    gap: 15px;
}

/* IMAGEN */
.imgFab{
    width: 105px;
    height: auto;
    object-fit: contain;
}

/* TEXTO */
.brand-text{
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-title{
    color: #801111 !important;
    font-size: 1.7rem;
    font-weight: 800;
    text-decoration: none !important;
}

/* LINKS */
.custom-nav-links{
    display: flex;
    align-items: center;
    gap: 70px;
    margin-right: 20px;
}

/* QUITAR AZUL DE BOOTSTRAP */
.nav-custom-link{
    color: #801111 !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1rem;
    transition: 0.3s;
}

.nav-custom-link:hover{
    color: #b30000 !important;
}

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

    .custom-header-container{
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .custom-brand{
        flex-direction: column;
        gap: 8px;
    }

    .imgFab{
        width: 95px;
    }

    .brand-title{
        font-size: 1.45rem;
    }

    .custom-nav-links{
        width: 100%;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
        margin-top: 8px;
    }

    .nav-custom-link{
        font-size: 0.95rem;
        padding: 6px 10px;
    }
}

/* PANTALLAS GRANDES */
@media (min-width: 992px){

    .custom-nav-links{
        gap: 90px;
    }

    .nav-custom-link{
        font-size: 1.05rem;
    }

}