body {
    font-family: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

h1 {
    color: aliceblue;
    font-size: 2.5rem;
    margin: 0;    
}

h2,
h3 {
    text-align: center;
    color: #1f2937;
    margin-top: 0.7rem;
}

a {
    text-decoration: none;
}

/* Header - FORMATO ORIGINAL para pantallas grandes */
.header {
    padding: 2% 5% 3% 5%;
    display: block;
    background-color: #1f2937;
    height: auto;
}

.hInicio {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3%;
    align-items: center;
}

.hInicio img {
    width: 100px;
    height: auto;
    padding: 0px;
    border-bottom: 1px solid #e5e7e9;
}

.hInicio p {
    color: #e5e7e9;
}

.hInicio ul {
    display: flex;
    font-size: medium;
    margin: 0;
    padding: 0;
}

.hInicio li {
    list-style-type: none;
    color: #e5e7eb;
    width: 150px;
    text-align: center;
    height: auto;
    padding: 10px;
    border-radius: 10px;
}

.hInicio li:hover {
    background-color: #e5e7eb;
    color: #1f2937;
    cursor: pointer;
}

.hDetalle {
    display: flex;
    gap: 4%;
}

.hDetalle img {
    width: 50%;
    height: auto;
    object-fit: cover;
}

.hTexto {
    display: block;
}

.hTexto p {
    width: 100%;
    color: #e5e7eb;
    text-align: justify;
    margin: 0;
}

/* Sección de Fotos (cFotos) - FORMATO ORIGINAL */
.cFotos {
    display: flex;
    justify-content: center;
    gap: 2%;
}

.cFotos#desborde {
    flex-wrap: wrap;
}

.cFoText {
    flex-direction: column;
}

.cFoText img {
    width: 250px;
    height: 150px;
    object-fit: cover;
}

.serv img {
    border-radius: 5%;
}

.serv {
    margin: auto;
}

.cFoText p {
    width: 500px;
    height: auto;
    text-align: center;
    color: #1f2937;
}
#quincho-video, #termotanque-video, #yeso-video, #int2-video{
        cursor:pointer;
        transition: transform 0.3s ease-in-out;
        position: relative;
        z-index: 1;
    }
#quincho-video:hover, #termotanque-video:hover, #yeso-video:hover, #int2-video:hover { 
  transform: scale(1.05);   
  z-index: 2;
}
.serv p {
    width: 250px;
    height: auto;
    text-align: center;
}

.cFoText#idcFoText img,
.cFoText#idcFoText video {
    width: 500px;
    height: 400px;
    object-fit: cover;
}

/* Galería - FORMATO ORIGINAL */
.gallery-container {
    width: 500px;
    height: 400px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: #fff;
}

.gallery-container input[type="radio"] {
    display: none;
}

.images-wrapper {
    width: 700%;    
    height: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-slide {
    width: 14.28%;    
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 30px 20px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-slide:hover .image-info {
    transform: translateY(0);
}

.image-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: bold;
}

.image-info p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.nav-dot.active {
    background: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.2);
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-container:hover .arrow {
    opacity: 1;
}

.arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.arrow-prev {
    left: 15px;
}

.arrow-next {
    right: 15px;
}

.gallery-title {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-title {
    text-align: center;
    color: #0f095c;
    margin: 10px 0 10px 0;
    font-size: small;
}

.galerias {
    color: #0f095c;
    font-weight: bolder;
    font-family: 'Times New Roman', Times, serif;
    text-align: center;
    font-size: 35px;
    margin-top: 100px;
}

.contenedorDeGalerias {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
}

/* Marcas - FORMATO ORIGINAL */
.marcas {
    display: flex;
    margin: 100px 70px 100px 20px;
    justify-content: space-between;
    align-items: center;
}

.marcas img {
    gap: 100px;
}

#xtremo {
    width: 300px;
    object-fit: cover;
}

#inter {
    width: 300px;
    height: auto;
    object-fit: cover;
}

#vitamsol {
    width: 150px;
    border-radius: 50%;
    height: auto;
    object-fit: cover;
}

.marcas h4 {
    border: 1px solid #0f095c;
    box-shadow: 2px 4px 16px rgba(141, 102, 102, 0.06);
    color: #333;
    border-radius: 50px;
    padding: 10px;
    font-size: large;
    font-family: 'Times New Roman', Times, serif;
}

/* Botón de subir */
.boton-subir {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    text-decoration: none;
    font-size: 24px;
    padding: 10px 15px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.boton-subir:hover {
    background-color: #555;
}

/* Llamada a la acción - FORMATO ORIGINAL */
.pllamada {
    width: 600px;
    background-color: #3882f6;
    color: #e5e7e9;
    border-radius: 10px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    font-weight: 900;
}

.pllamada button {
    background-color: #3882f6;
    color: #e5e7e9;
    width: 300px;
    height: 50px;
    margin-bottom: 15px;
    font-size: xx-large;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-weight: bolder;
    margin-top: 20px;
}

.llamanos {
    margin: 50px auto 10px auto;
    text-align: center;
    color: #0f095c;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 28px;
}

/* Footer - FORMATO ORIGINAL */
footer {
    background-color: #1f2937;
    color: #e5e7e9;
    margin-top: 70px;
    height: 300px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fRedes, .fDatos, .experiencia {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.experiencia img {
    width: 150px;
    height: 150px;
}

.fRedes p {
    margin-left: 10px;
}

.fRedes {
    margin-left: 100px;
}

.fDatos {
    margin-right: 100px;
}

.fRimglogo {
    width: 100px;
    height: 100px;
    margin-bottom: 5px;
}

.fRimgRed {
    width: 30px;
    height: 30px;
}

.dMail {
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px;
    margin: 0;
    padding-top: 0;
}

.dContacto {
    font-family: 'Times New Roman', Times, serif;
    font-size: 28px;
    border-bottom: 1px solid #e5e7e9;
}

.fData {
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    margin-bottom: 20px;
}

.social {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.social svg {
    fill: #FFFFFF;
}

/* ===== MEDIA QUERIES - SOLO PARA DISPOSITIVOS PEQUEÑOS ===== */

/* Tablets (768px - 1024px) */
@media screen and (max-width: 1024px) {
    /* Header centrado y optimizado */
    .header {
        padding: 1.5% 3% 2% 3%;
    }
    
    .hInicio {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .hInicio img {
        width: 90px;
        min-width: 80px;
        margin: 0 auto;
    }
    
    .hInicio ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .hInicio li {
        width: auto;
        min-width: 120px;
    }
    
    .hDetalle {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .hDetalle img {
        width: 80%;
        max-width: 400px;
    }
    
    .hTexto {
        text-align: center;
    }
    
    .hTexto p {
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Fotos en columnas centradas */
    .cFotos {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .cFoText {
        display: flex;
        align-items: center;
    }
    
    .cFoText p {
        width: 100%;
        max-width: 400px;
    }
    
    .serv {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .serv p {
        width: 100%;
        max-width: 250px;
    }
    
    .cFoText#idcFoText img,
    .cFoText#idcFoText video {
        width: 90%;
        max-width: 400px;
        height: 300px;
    }
    
    /* Galería responsive */
    .gallery-container {
        width: 90%;
        max-width: 400px;
        height: 300px;
        margin: 0 auto;
    }
    
    .contenedorDeGalerias {
        padding: 0 1rem;
    }
    
    /* Marcas centradas */
    .marcas {
        flex-direction: column;
        margin: 60px 20px;
        gap: 2rem;
        text-align: center;
    }
    
    #xtremo, #inter {
        width: 250px;
        max-width: 90%;
    }
    
    #vitamsol {
        width: 120px;
        min-width: 100px;
    }
    
    /* Footer centrado */
    footer {
        height: auto;
        min-height: 300px;
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 2rem;
        text-align: center;
    }
    
    .fRedes, .fDatos, .experiencia {
        height: auto;
        margin: 0;
        width: 100%;
        max-width: 300px;
    }
    
    .experiencia img {
        width: 120px;
        height: 120px;
        min-width: 100px;
    }
    
    .fRimglogo {
        width: 80px;
        height: 80px;
        min-width: 70px;
    }
    
    .pllamada {
        width: 90%;
        max-width: 500px;
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .pllamada button {
        width: 100%;
        max-width: 300px;
        font-size: large;
    }
}

/* Móviles grandes (480px - 768px) */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .header {
        padding: 1rem 2% 1.5% 2%;
    }
    
    .hInicio img {
        width: 80px;
        min-width: 70px;
    }
    
    .hInicio li {
        min-width: 100px;
        font-size: small;
        padding: 8px;
    }
    
    .hDetalle img {
        width: 90%;
        max-width: 350px;
    }
    
    .hTexto p {
        font-size: 14px;
        max-width: 400px;
    }
    
    .cFoText img,
    .serv img {
        width: 220px;
        height: 130px;
        min-width: 200px;
    }
    
    .cFoText#idcFoText img,
    .cFoText#idcFoText video {
        max-width: 350px;
        height: 250px;
    }
    
    .gallery-container {
        max-width: 350px;
        height: 250px;
    }
    
    .arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .galerias {
        font-size: 28px;
        margin-top: 60px;
    }
    
    #xtremo, #inter {
        width: 200px;
    }
    
    #vitamsol {
        width: 100px;
        min-width: 80px;
    }
    
    .llamanos {
        font-size: 22px;
    }
    
    .pllamada button {
        height: 45px;
        font-size: medium;
    }
    
    .experiencia img {
        width: 100px;
        height: 100px;
        min-width: 80px;
    }
    
    .fRimglogo {
        width: 70px;
        height: 70px;
        min-width: 60px;
    }
    
    .fRimgRed {
        width: 25px;
        height: 25px;
        min-width: 22px;
    }
    
    .dContacto {
        font-size: 22px;
    }
    
    .dMail {
        font-size: 16px;
    }
    
    .fData {
        font-size: 14px;
    }
}

/* Móviles pequeños (320px - 480px) */
@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .header {
        padding: 1rem 1% 1% 1%;
    }
    
    .hInicio img {
        width: 70px;
        min-width: 60px;
    }
    
    .hInicio li {
        min-width: 80px;
        font-size: x-small;
        padding: 6px;
    }
    
    .hTexto p {
        font-size: 13px;
        max-width: 320px;
    }
    
    .cFoText img,
    .serv img {
        width: 200px;
        height: 120px;
        min-width: 180px;
    }
    
    .cFoText p {
        max-width: 300px;
        font-size: 14px;
    }
    
    .serv p {
        max-width: 200px;
        font-size: 14px;
    }
    
    .cFoText#idcFoText img,
    .cFoText#idcFoText video {
        max-width: 300px;
        height: 220px;
    }
    
    .gallery-container {
        max-width: 300px;
        height: 220px;
    }
    
    .image-info {
        padding: 20px 15px 10px;
    }
    
    .image-info h3 {
        font-size: 16px;
    }
    
    .image-info p {
        font-size: 12px;
    }
    
    .arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .nav-dot {
        width: 10px;
        height: 10px;
    }
    
    .galerias {
        font-size: 24px;
        margin-top: 40px;
    }
    
    #xtremo, #inter {
        width: 180px;
        min-width: 150px;
    }
    
    #vitamsol {
        width: 90px;
        min-width: 70px;
    }
    
    .marcas h4 {
        font-size: medium;
        padding: 8px;
    }
    
    .llamanos {
        font-size: 20px;
    }
    
    .pllamada {
        padding: 1rem;
    }
    
    .pllamada button {
        height: 40px;
        font-size: small;
    }
    
    .experiencia img {
        width: 90px;
        height: 90px;
        min-width: 70px;
    }
    
    .fRimglogo {
        width: 60px;
        height: 60px;
        min-width: 50px;
    }
    
    .fRimgRed {
        width: 22px;
        height: 22px;
        min-width: 20px;
    }
    
    .dContacto {
        font-size: 20px;
    }
    
    .dMail {
        font-size: 14px;
    }
    
    .fData {
        font-size: 13px;
    }
    
    .social svg {
        width: 22px;
        height: 22px;
    }
    
    .boton-subir {
        padding: 8px 12px;
        font-size: 20px;
    }
}

/* Móviles muy pequeños (menos de 320px) */
@media screen and (max-width: 320px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .header {
        padding: 0.5rem 1% 1% 1%;
    }
    
    .hInicio img {
        width: 60px;
        min-width: 50px;
    }
    
    .hInicio li {
        min-width: 70px;
        font-size: xx-small;
        padding: 4px;
    }
    
    .cFoText img,
    .serv img {
        width: 180px;
        height: 110px;
        min-width: 160px;
    }
    
    .cFoText p,
    .serv p {
        max-width: 250px;
        font-size: 13px;
    }
    
    .cFoText#idcFoText img,
    .cFoText#idcFoText video {
        max-width: 280px;
        height: 200px;
    }
    
    .gallery-container {
        max-width: 280px;
        height: 200px;
    }
    
    .galerias {
        font-size: 20px;
    }
    
    #xtremo, #inter {
        width: 160px;
        min-width: 130px;
    }
    
    #vitamsol {
        width: 80px;
        min-width: 60px;
    }
    
    .llamanos {
        font-size: 18px;
    }
    
    .pllamada button {
        height: 35px;
        font-size: x-small;
    }
    
    .experiencia img {
        width: 80px;
        height: 80px;
        min-width: 60px;
    }
    
    .fRimglogo {
        width: 50px;
        height: 50px;
        min-width: 40px;
    }
    
    .dContacto {
        font-size: 18px;
    }
    
    .dMail {
        font-size: 13px;
    }
    
    .fData {
        font-size: 12px;
    }
}