

* {
    box-sizing: border-box;
}

/* Fondo negro sólido para toda la página */
html,
body {
    margin: 0;
    background-color: #111;
    color: white;
}

main {
    flex: 1;
}

h1,
h2,
h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 2.5rem;
    position: relative;
}

h1::after,
h2::after,
h3::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: red;
    margin: 1.5rem auto 0 auto;
    border-radius: 2px;
}

.gradiente-footer {
    position: relative;
    width: 100%;
    height: auto;
    background: linear-gradient(to bottom, #00000000, rgba(255, 0, 0, 0.3));
    overflow: hidden;
    z-index: 1;
}

main .container {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    min-height: 100vh;
    padding-top: 70px;
}

.navbar.bg-dark.bg-opacity-75 {
    background-color: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(10px);
}

.imagenes-hover {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 1rem;
    width: 100%;
}

.img-container {
    position: relative;
    flex: 1 1 48%;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
    max-width: 100%;
    height: 220px;
    margin: 0;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    z-index: 0;
    position: relative;
}

.overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1rem;
    text-align: center;
    z-index: 2;
    border-radius: inherit;
}

.img-container img,
.carousel-inner {
    max-height: 500px;
    /* altura máxima del carrusel */
    overflow: hidden;
    /* evita desbordes */
}



.img-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle,
            rgba(0, 0, 0, 0) 60%,
            rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
    border-radius: inherit;
}

.img-container:hover img {
    transform: scale(1.05);
}

.overlay-text {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 100%;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1rem;
    text-align: center;
}

.img-container:hover .overlay-text {
    opacity: 1;
}

.nav-link,
.navbar a,
.navbar i {
    color: white !important;
}

#marcas,
#contacto {
    background-color: transparent;
}

/* Responsive para pantallas muy pequeñas */
@media (max-width: 600px) {
    .img-container {
        flex: 1 1 100%;
    }

    #carouselTripleExample .carousel-item .d-flex {
        flex-direction: column;
    }

    #carouselTripleExample img {
        width: 100% !important;
        height: 200px;
    }

    .contacto-container {
        flex-direction: column;
    }

    .contacto-form,
    .contacto-imagen {
        flex: 1 1 100%;
    }
}

.carousel-item img {
    height: 70vh;
    object-fit: cover;
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 45vh;
    }
}

@media (max-width: 576px) {
    .marcas-container img {
        max-width: 100px;
    }
}

.marcas-container img {
    max-width: 140px;
    width: 100%;
    filter: brightness(0) invert(1);
}

#carouselTripleExample .carousel-item img:hover {
    transform: scale(1.05);
}

footer.footer-con-humo {
    position: relative;
    background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(255, 0, 0, 0.1));
    color: white;
    padding: 2rem 1rem;
    overflow: hidden;
    z-index: 1;
}

.marcas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.img-wrapper {
    flex: 0 0 auto;
    width: 120px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.cybex-img {
    filter: brightness(0) invert(1);
}

.nautilus-img {
    filter: brightness(0) invert(1);
}

/* 🔥 NUEVO: Estilos formulario contacto + imagen + mapa */
.contacto-section {
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(255, 0, 0, 0.15));
}

.contacto-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.contacto-form {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
}

#contacto h2 {
    text-align: center;
}

.contacto-form form {
    display: flex;
    flex-direction: column;
}

.contacto-form label {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.contacto-form input,
.contacto-form textarea {
    background-color: #222;
    border: 1px solid #444;
    color: white;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-family: inherit;
}

.contacto-form button {
    background-color: red;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contacto-form button:hover {
    background-color: darkred;
}

.contacto-info p {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #ccc;
}

.contacto-imagen {
    flex: 1 1 45%;
}

.contacto-imagen img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    max-height: 300px;
}

#carouselExample .carousel-item img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
    display: block;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
}

#carouselExample .carousel-item img:hover {
    transform: scale(1.02);
}

#carouselTripleExample .carousel-item .d-flex {
    gap: 1rem;
}

#carouselTripleExample img {
    width: 30%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 768px) {
    #carouselTripleExample .carousel-item .d-flex {
        flex-direction: column;
        align-items: center;
    }

    #carouselTripleExample img {
        width: 100%;
        height: 200px;
    }
}
.contacto-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contacto-form,
.card {
    flex: 1 1 45%;
}

.contacto-imagen {
    flex: 1 1 100%;
}

.contacto-imagen iframe {
    width: 100%;
    height: 350px;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .contacto-form,
    .card,
    .contacto-imagen {
        flex: 1 1 100%;
    }
}
@media (max-width: 600px) {
    .img-container {
        height: 180px;
    }

    .overlay-text {
        font-size: 0.9rem;
    }
}
