
/* CONFIGURACIÓN GENERAL */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: #111111;
    font-family: Arial, sans-serif;
    color: #FFFFFF;
}

h1 {
    color: #D71920;
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
}

h2 {
    color: #D71920;
    font-size: 32px;
    margin-top: 30px;
}

p {
    font-size: 16px;
    line-height: 1.6;
}

/* BOTONES */

button {
    background-color: #D71920;
    color: #FFFFFF;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #FFFFFF;
    color: #171717;
    transform: translateY(-3px);
}

/* ENCABEZADO */

header {
    background-color: #111111;
    padding: 15px 25px;
    border-bottom: 2px solid #D71920;
}

.contenedor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.marca {
    display: flex;
    align-items: center;
    gap: 12px;
}

.marca img {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.marca h1 {
    color: #D71920;
    font-size: 28px;
    margin: 0;
}

nav a {
    color: #FFFFFF;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #D71920;
}

/* BIENVENIDA */

.bienvenida {
    background-color: #171717;
    color: #FFFFFF;
    padding: 65px 30px 80px;
    text-align: center;
}

.contenido-bienvenida {
    max-width: 900px;
    margin: auto;
}

.bienvenida h2 {
    color: #D71920;
    font-size: 42px;
    margin-bottom: 10px;
}

.bienvenida h3 {
    color: #FFFFFF;
    font-size: 26px;
}

.bienvenida p {
    font-size: 17px;
    line-height: 1.7;
}

.imagen-principal {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    margin-bottom: 25px;
}

.boton-whatsapp {
    display: inline-block;
    background-color: #D71920;
    color: #FFFFFF;
    padding: 15px 30px;
    margin-top: 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.boton-whatsapp:hover {
    background-color: #FFFFFF;
    color: #171717;
    transform: translateY(-3px);
}

/* SERVICIOS */

.servicios {
    padding: 60px 30px;
    text-align: center;
    background-color: #111111;
}

.servicios h2 {
    color: #D71920;
    font-size: 32px;
    margin-bottom: 35px;
}

.contenedor-servicios {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.tarjeta {
    background: linear-gradient(145deg, #222222, #171717);
    color: #FFFFFF;
    padding: 25px;
    width: 250px;
    border-radius: 12px;
    border: 1px solid #333333;
    border-bottom: 4px solid #D71920;
    transition: all 0.3s ease;
}

.tarjeta:hover {
    transform: translateY(-8px);
    border-color: #D71920;
    box-shadow: 0 10px 25px rgba(215, 25, 32, 0.2);
}

.tarjeta h3 {
    color: #D71920;
}

.tarjeta p {
    line-height: 1.5;
}

/* GALERÍA DE TRABAJOS */

.galeria {
    background-color: #1A1A1A;
    padding: 60px 20px;
    text-align: center;
    overflow: hidden;
    border-top: 1px solid #333333;
    border-bottom: 1px solid #333333;
}

.galeria h2 {
    color: #FFFFFF;
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 35px;
}

.carrusel {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
}

.carrusel-imagenes {
    display: flex;
    gap: 20px;
    transition: transform 0.8s ease-in-out;
}

.carrusel-imagenes img {
    width: calc((100% - 40px) / 3);
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.carrusel-imagenes img:hover {
    transform: scale(1.03);
}

/* CONTACTO */

.contacto {
    background-color: #111111;
    color: #FFFFFF;
    padding: 60px 20px;
    text-align: center;
}

.contacto h2 {
    color: #D71920;
    font-size: 32px;
}

.datos-contacto {
    margin-top: 25px;
}

.boton-contacto {
    display: inline-block;
    background-color: #D71920;
    color: #FFFFFF;
    padding: 14px 25px;
    margin-top: 15px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.boton-contacto:hover {
    background-color: #FFFFFF;
    color: #171717;
    transform: translateY(-3px);
}

/* FORMULARIO */

.titulo-formulario {
    color: #D71920;
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 50px;
    margin-bottom: 25px;
}

form {
    max-width: 500px;
    margin: 30px auto 60px;
    padding: 30px;
    background: linear-gradient(145deg, #222222, #181818);
    border: 1px solid #333333;
    border-top: 4px solid #D71920;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #FFFFFF;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #444444;
    border-radius: 6px;
    background-color: #111111;
    color: #FFFFFF;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: #D71920;
}

form textarea {
    resize: vertical;
}

/* ANIMACIONES SUAVES */

.tarjeta,
.boton-whatsapp,
.boton-contacto,
button {
    will-change: transform;
}

/* ADAPTACIÓN PARA CELULARES */

@media (max-width: 768px) {

    header {
        padding: 15px;
    }

    .contenedor-header {
        flex-direction: column;
        gap: 18px;
    }

    .marca img {
        width: 60px;
        height: 60px;
    }

    .marca h1 {
        font-size: 23px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    nav a {
        margin-left: 0;
    }

    .bienvenida {
        padding: 35px 15px 55px;
    }

    .bienvenida h2 {
        font-size: 30px;
    }

    .bienvenida h3 {
        font-size: 22px;
    }

    .imagen-principal {
        max-height: 250px;
    }

    .servicios {
        padding: 45px 15px;
    }

    .contenedor-servicios {
        flex-direction: column;
        align-items: center;
    }

    .tarjeta {
        width: 100%;
        max-width: 350px;
    }

    .galeria {
        padding: 45px 15px;
    }

    .carrusel-imagenes img {
        height: 180px;
    }

    form {
        width: calc(100% - 30px);
        padding: 20px;
    }

}


/* NUEVO DISEÑO DE IMAGEN PRINCIPAL */

.bienvenida {
    position: relative;
    isolation: isolate;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 25px;
    text-align: center;
    overflow: hidden;
    background-color: #111111;
}

/* IMAGEN DE FONDO */

.imagen-principal {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    margin: 0;
    z-index: -2;
}

/* CAPA OSCURA SOBRE LA FOTOGRAFÍA */

.bienvenida::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.75)
    );
    z-index: -1;
}

/* TEXTO ENCIMA DE LA IMAGEN */

.contenido-bienvenida {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.bienvenida h2 {
    color: #D71920;
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px #000000;
}

.bienvenida h3 {
    color: #FFFFFF;
    font-size: 30px;
    text-shadow: 2px 2px 8px #000000;
}

.bienvenida p {
    color: #FFFFFF;
    font-size: 18px;
    text-shadow: 1px 1px 5px #000000;
}

/* ADAPTACIÓN PARA CELULARES */

@media (max-width: 768px) {

    .bienvenida {
        min-height: 520px;
        padding: 50px 20px;
    }

    .bienvenida h2 {
        font-size: 32px;
    }

    .bienvenida h3 {
        font-size: 23px;
    }

    .bienvenida p {
        font-size: 16px;
    }

}


/* CONTROLES DEL CARRUSEL */

.carrusel {
    position: relative;
    touch-action: pan-y;
}

.carrusel-imagenes {
    cursor: grab;
    user-select: none;
}

.carrusel-imagenes:active {
    cursor: grabbing;
}

.carrusel-imagenes img {
    pointer-events: none;
}

.flecha-carrusel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background-color: #D71920;
    color: white;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.flecha-carrusel:hover {
    background-color: #171717;
    color: white;
}

.flecha-carrusel.anterior {
    left: 8px;
}

.flecha-carrusel.siguiente {
    right: 8px;
}

/* PIE DE PÁGINA */

.pie-pagina {
    background-color: #080808;
    color: #FFFFFF;
    text-align: center;
    padding: 35px 20px 20px;
    border-top: 3px solid #D71920;
}

.redes-contacto {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 45px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.redes-contacto a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    transition: 0.3s;
}

.icono-contacto {
    font-size: 30px;
    background-color: #1A1A1A;
    border: 2px solid #D71920;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redes-contacto a:hover {
    color: #D71920;
    transform: translateY(-5px);
}

.copyright {
    border-top: 1px solid #333333;
    padding-top: 20px;
    margin-bottom: 0;
    font-size: 13px;
    color: #AAAAAA;
}

@media (max-width: 600px) {
    .redes-contacto {
        gap: 25px;
    }
}

/* PIE DE PÁGINA */

.pie-pagina {
    background-color: #111111;
    color: white;
    text-align: center;
    padding: 40px 20px 20px;
    border-top: 3px solid #D71920;
}

.pie-pagina h2 {
    color: #D71920;
    font-size: 26px;
    margin-bottom: 10px;
}

.pie-pagina > p {
    font-size: 15px;
    margin-bottom: 25px;
}

.iconos-contacto {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.iconos-contacto a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: transparent;
    border: none;
    border-radius: 0;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.iconos-contacto a:hover {
    transform: scale(1.15);
}

.iconos-contacto img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.iconos-contacto span {
    color: #D71920;
    font-family: Arial, sans-serif;
    font-size: 48px;
    text-decoration: none;
    line-height: 1;
}

.copyright {
    border-top: 1px solid #444444;
    padding-top: 20px;
    font-size: 13px;
    color: #aaaaaa;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .iconos-contacto {
        gap: 25px;
    }

    .iconos-contacto a {
        width: 58px;
        height: 58px;
    }

    .iconos-contacto img {
        width: 38px;
        height: 38px;
    }
}

/* SELECTOR DE IDIOMAS */

.selector-idioma {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
    font-size: 15px;
    font-weight: bold;
}

.selector-idioma a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.selector-idioma a:hover {
    color: #D71920;
}

.selector-idioma .idioma-activo {
    color: #D71920;
}

.selector-idioma span {
    color: #777777;
}

/* CENTRAR EL MENÚ DE NAVEGACIÓN */

/* CENTRAR MENÚ EXACTAMENTE */

.contenedor-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contenedor-header nav {
    position: absolute;
    left: 53%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    white-space: nowrap;
}

.selector-idioma {
    margin-left: auto;
    position: relative;
    z-index: 2;
}

/* ENCABEZADO RESPONSIVE PARA CELULARES */

@media (max-width: 768px) {

    header .contenedor-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px;
        padding: 15px 10px;
    }

    header .contenedor-header .marca {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 8px;
    }

    header .contenedor-header .marca img {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }

    header .contenedor-header .marca h1 {
        font-size: 20px;
        margin: 0;
        white-space: nowrap;
    }

    header .contenedor-header nav {
        position: static !important;
        left: auto !important;
        transform: none !important;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        order: 2;
    }

    header .contenedor-header nav a {
        font-size: 13px;
        white-space: nowrap;
    }

    header .contenedor-header .selector-idioma {
        position: static !important;
        margin: 0;
        order: 3;
    }
}

/* AJUSTES GENERALES PARA CELULARES */

@media (max-width: 768px) {

    body {
        width: 100%;
        overflow-x: hidden;
    }

    img {
        max-width: 100%;
    }

    section {
        width: 100%;
        box-sizing: border-box;
    }

}

/* ADAPTACIÓN DEL CONTENIDO A CELULARES */

/* AJUSTES FINALES PARA CELULARES */

@media (max-width: 768px) {

    /* IMAGEN PRINCIPAL */

    .bienvenida {
        min-height: 520px;
        padding: 40px 12px;
    }

    .imagen-principal {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        object-position: center;
        margin: 0;
        border-radius: 0;
    }

    .contenido-bienvenida {
        position: relative;
        z-index: 1;
    }

    /* TARJETAS DE SERVICIOS */

    .contenedor-servicios {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .tarjeta {
        width: 100%;
        max-width: none;
        padding: 15px 10px;
    }

    .tarjeta:last-child {
        grid-column: 1 / -1;
        width: calc((100% - 12px) / 2);
        justify-self: center;
    }

        /* FOTOGRAFÍAS MÁS GRANDES EN CELULARES */

    .carrusel {
        width: 100%;
        max-width: 100%;
    }

    .carrusel-imagenes {
        gap: 0;
    }

    .carrusel-imagenes img {
        width: 100%;
        height: 280px;
        object-fit: cover;
        flex-shrink: 0;
    }

}

/* VISOR DE FOTOGRAFÍAS EN GRANDE */

.visor-imagen {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.visor-imagen.activo {
    display: flex;
}

.visor-imagen img {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.cerrar-visor {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 45px;
    cursor: pointer;
    font-weight: bold;
}