/* Reset general */
body {
    font-family: 'Playfair Display', serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: rgb(255, 255, 255); /* Color de fondo en RGB */
}
.icono-modo {
    font-size: 24px; /* Ajusta el tamaño */
    color: #000000; /* Color por defecto (naranja/sol) */
    margin-right: 50px; /* Ajusta la posición horizontal */
}
.icono {
    font-size: 15px;
    margin: 10px;
    color: #ffffff;
}
a[href^="tel"] {
    color: inherit; /* Mantiene el color del texto original */
    text-decoration: none; /* Elimina el subrayado si lo tiene */
  }
.up-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.up-bar {
    position: fixed; /* Barra fija en la parte superior */
    top: 0px; /* Barra en la parte superior */
    left: 0; /* Alineación a la izquierda */
    width: 100%; /* Ancho completo */
    height: 40px; /* Altura de la barra */
    background-color: #1a6c7a ; /* Fondo oscuro semitransparente */
    display: flex; /* Flexbox para alinear elementos */
    align-items: center; /* Centra verticalmente los elementos */
    justify-content: space-between; /* Espacio entre la imagen y los enlaces */
    padding: 0 20px; /* Espacio interno en los extremos */
    z-index: 2000; /* Asegura que esté sobre otros elementos */
}
.up-img {
    width: 33px;
    height: auto;
    margin-right: 5px;
}

.cor-img {
    width: 25px;
    height: auto;
    margin-right: 20px;
}

.up-text {
    font-size: 15px; /* Tamaño del texto */
    color: white; /* Texto blanco para contraste */
    text-align: center; /* Centra el texto */
    display: flex; /* Flexbox para centrar el contenido */ 
    align-items: center; /* Centra verticalmente el texto */
    justify-content: center; /* Centra horizontalmente el texto */
    height: 100%; /* Altura completa */
    margin-right: 50px;  /* Espacio entre la imagen y los enlaces */
}

.icon-img {
    width: 24px;
    height: 24px;
    margin-right: 50px;
    display: block;
}
/* Barra superior para botones de navegación */

.top-bar {
    position: fixed; /* Barra fija en la parte superior */
    top: 39px; /* Barra en la parte superior */
    left: 0; /* Alineación a la izquierda */
    width: 100%; /* Ancho completo */
    height: 80px; /* Altura de la barra */
    background-color: rgb(255, 255, 255); /* Fondo oscuro semitransparente */
    display: flex; /* Flexbox para alinear elementos */
    align-items: center; /* Centra verticalmente los elementos */
    justify-content: space-between; /* Espacio entre la imagen y los enlaces */
    padding: 0 20px; /* Espacio interno en los extremos */
    z-index: 2000; /* Asegura que esté sobre otros elementos */
}

/* Contenedor de los enlaces de navegación */
.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-right: 5vw; /* Espacio entre la imagen y los enlaces */
}

/* Estilo de los enlaces en la barra superior */
.nav-links {
    list-style: none; /* Quita los puntos de la lista */
    display: flex; /* Flexbox para alinear los enlaces horizontalmente */
    gap: 10px; /* Espacio entre los enlaces */
    padding: 0; /* Elimina el espacio interno de la lista */
    margin: 0; /* Elimina el margen de la lista */
}

.nav-links li {
    margin: 0; /* Elimina el margen de los elementos de la lista */
}

.nav-links a {
    color: rgb(0, 0, 0); /* Texto blanco para contraste */
    text-decoration: none; /* Quita el subrayado de los enlaces */
    font-size: 18px; /* Tamaño del texto */
    padding: 10px 25px; /* Espacio interno del botón */
    border-radius: 5px; /* Bordes redondeados */
    transition: background 0.3s ease, transform 0.2s ease;
}
  
.nav-links a:hover {
    background-color: rgba(0, 0, 0, 0.2); /* Cambio de color en hover */
    transform: scale(1.05); /* Pequeño aumento al pasar el ratón */
}

.nav-links .presupuesto a {
    color: #ffffff;
    background-color: #1a6c7a;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 35px; 
    border-radius: 5px; 
    transition: background 0.3s ease, transform 0.2s ease;
    margin-left: 25px;
  }

.nav-links .presupuesto a:hover {
    background-color: #11444d; /* Cambio de color en hover */
    transform: scale(1.05); /* Pequeño aumento al pasar el ratón */
}

header {
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(255, 255, 255);
    text-align: center;
    margin-top: 118px;

}

.text-bordered { /* TITULO con borde */
    color: rgb(255, 255, 255);
    font-family: 'Playfair Display', serif; /* Fuente específica */
    font-size: min(10vh,8vw) !important;
    font-weight: bold;
    text-align: center;
    margin-top: -150px; /* Ajusta el valor según lo necesario */
    /*text-shadow: -2px -2px 0 black, 2px -2px 0 black, -2px 2px 0 black, 2px 2px 0 black; /* Sombra */
}

/* Capa de la imagen de fondo */
.header-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: url('img/paneles2.jpg') no-repeat center center; /* Centra la imagen */
    background-size: cover; /* Asegura que la imagen cubra todo el área */
    transform: translate(-50%, -50%); /* Centra la imagen correctamente */
    z-index: -1; /* Detrás de otros elementos */
    border-radius: 0px; /* Bordes redondeados en la imagen */
    object-fit: cover; /* Mantiene la proporción de la imagen */
    overflow: hidden; /* Oculta cualquier parte de la imagen que se desborde */
    max-width: 100%;
}
.header-content {

    position: absolute;
    margin-top: 90px;
    z-index: 1;
}
.slogan {
    font-size: min(6vh,5vw) !important;
    font-style: italic; 
    color: white;
    text-align: center;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin-top: -10px; /* Ajusta el valor para el slogan */
    /*text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black; /* Sombra */
}

/* Estilo para el texto "Metálicas XYZ" */
.logo {
    font-size: 32px;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 50px; /* Ajusta el tamaño según sea necesario */
    height: auto;
    margin-right: 30px; /* Espacio entre la imagen y los enlaces */
}

.hero {
    padding: 40px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    width: 90%;
    max-width: 1200px;
    text-align: center;  
    margin-top: 50px; /* Ajusta este valor según sea necesario */
}

.hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: #000000;  /* Color que uses para el título de los servicios */
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    font-weight: 400;
    color: #333;  /* Color para el texto del párrafo, igual que el de los servicios */
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero a {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background-color: #0066cc;  /* Color del botón o enlace */
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.hero a:hover {
    background-color: #004d99;  /* Color cuando el botón se pasa sobre él */
}

/* Sección de servicios */
.services {
    padding: 50px 50px;
    text-align: center;
}
.service-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.service.reverse .service-content {
    flex-direction: row-reverse;
}
.service {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; 
    padding: 0px 40px; 
    background-color: #f9f9f9; /* Fondo suave para separar cada servicio */
    border-radius: 10px; /* Bordes redondeados para una apariencia más fluida */
    margin: 5px 0; /* Espacio entre cada servicio */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra ligera para dar más énfasis */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transición suave para efectos */
    width: 90%; /* El contenedor ocupa el 80% del ancho total */
    margin-left: auto;
    margin-right: auto; /* Centra el contenedor */
}
.service-img-cal:hover {
    transform: scale(1.05);
}
.service-img-aire:hover {
    transform: scale(1.05);
}
.service-img-calentador:hover {
    transform: scale(1.05);
}
.service-img-linea_gas:hover {
    transform: scale(1.05);
}
.service-img-lineas:hover {
    transform: scale(1.05);
}
.service-img-gas-natural:hover {
    transform: scale(1.05);
}
.service-img-11:hover {
    transform: scale(1.05);
}
.service-img-as:hover {
    transform: scale(1.05);
}
.service-img-revision-de-seguridad:hover {
    transform: scale(1.05);
}
.service-img-certificado-de-instalaciones:hover {
    transform: scale(1.05);
}


.service-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px;
}


.service-img-cal {
    width: 25vw;
    height: 15vw;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-image: url("img/serv/cal.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.service-img-aire {
    width: 20vw;
    height: 20vw;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-image: url("img/serv/aire2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.service-img-calentador {
    width: 20vw;
    height: 20vw;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-image: url("img/serv/calentador.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.service-img-linea_gas {
    width: 25vw;
    height: 15vw;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-image: url("img/serv/linea_gas.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.service-img-lineas {
    width: 30%;
    height: 350px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-image: url("img/lineas.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.service-img-gas-natural {
    width: 30%;
    height: 500px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-image: url("img/gasnatural.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.service-img-11 {
    width: 30%;
    height: 400px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-image: url("img/serv/11.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.service-img-as {
    width: 30%;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-image: url("img/serv/asesorar.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.service-img-revision-de-seguridad {
    width: 30%;
    height: 300px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-image: url("img/serv/revision_de_seguridad.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.service-img-certificado-de-instalaciones {
    width: 30%;
    height: 300px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-image: url("img/serv/certificado_de_instalaciones.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.service-img:hover {
    transform: scale(1.05); /* Aumento de tamaño al pasar el ratón */
}
.service-text {
    width: 65%;
    text-align: left;
    font-size: 20px;
    line-height: 1;
    color: #333;
}
.service-text h1 {
    font-size: clamp(24px, 1.5vw, 36px);
    margin-bottom: 15px;
    color: #222;
    font-weight: bold;
    text-align: center;
}

.service-text h2 {
    font-size: clamp(16px, 1.2vw, 28px);
    margin-bottom: 15px;
    color: #222;
    font-weight: bold;
}

.service-text p {
    font-size: clamp(14px, 1vw, 21px);
    color: #666;
    margin-left: 50px;
    line-height: 1;
}

/* Formulario de contacto */
.contact {
    padding: 50px;
    text-align: center;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 300px;
    margin: auto;
}

.contact input, .contact textarea {
    padding: 10px;
    border: 1px solid #ccc;
}

.contact button {
    background: #333;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
}

/* Pie de página */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}

/* Desplazamiento suave para toda la página */
html {
    scroll-behavior: smooth;
}

.titulo-servicios {
    font-size: 3rem; /* Ajusta el tamaño según lo necesites */
    font-weight: bold; /* Hace que el texto sea más grueso */
    text-align: center; /* Centra el texto */
    margin-bottom: 20px; /* Espacio inferior para separar del contenido */
}

/* Estilo de la galería de fotos */
.photo-gallery {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap; /* Permite que las imágenes se ajusten en varias filas */
    margin: 20px auto;
    width: 90%; /* Ajusta el ancho según sea necesario */
    max-width: 1200px; /* Puedes cambiar el tamaño máximo si lo prefieres */
}

.photo-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 30%; /* Cada columna ocupa el 30% del ancho */
    box-sizing: border-box;
}

.photo-item {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Bordes redondeados para las imágenes */
    object-fit: cover; /* Mantiene la proporción de la imagen */
    transition: transform 0.3s ease;
}

/* Efecto de hover en las imágenes */
.photo-item:hover {
    transform: scale(1.05); /* Aumento de tamaño cuando el ratón pasa sobre la imagen */
}

/* Estilo para centrar el botón */
.btn-navegar {
    display: block; /* Convierte el botón en un bloque para centrarlo */
    margin: 0 auto; /* Centra horizontalmente */
    padding: 10px 20px; /* Espacio interno del botón */
    font-size: clamp(14px, 1vw, 21px); /* Tamaño del texto */ 
    font-weight: bold; /* Texto en negrita */
    color: white; /* Color del texto */ 
    background-color: #1a6c7a; /* Ajusta el color según tu diseño */
    border: none; /* Sin borde */ 
    border-radius: 8px; /* Bordes redondeados */
    cursor: pointer; /* Cambia el cursor al pasar sobre el botón */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Transiciones suaves */
}

.btn-navegar:hover {
    background-color: #004d99; /* Color cuando el ratón pasa sobre el botón */
    transform: scale(1.05); /* Efecto de aumento al pasar el ratón */
}

/* Si el botón está dentro de un contenedor, asegúrate de centrar ese contenedor */
.container-boton {
    display: flex; /* Flexbox para centrar el contenido */
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    width: 100%; /* Ancho completo */
    padding: 20px 0; /* Espacio interno del contenedor */
}

a {
    text-decoration: none; /* Quita el subrayado de todos los enlaces */
}

.btn-navegar {
    text-decoration: none; /* Asegura que el botón no tenga subrayado */
}

.galeria {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Tres columnas iguales */
    grid-auto-rows: minmax(100px, auto); /* Minimo de 100px por fila, pero adaptado */
    gap: 25px; /* Espacio entre las imágenes */
    grid-auto-flow: dense; /* Acomoda para evitar huecos */
}

.galeria img {
    width: 100%; /* Ajusta el ancho de la imagen */
    height: 100%; /* Ajusta la altura de la imagen */
    object-fit: cover; /* Recorta la imagen para ajustarla */
    border-radius: 5px; /* Bordes suaves opcionales */
}

/* Clases para los distintos tamaños, basados en píxeles */
.img-1x1 { grid-column: span 1; grid-row: span 1; height: 75; width: 75; } /* Imagen cuadrada */
.img-1x2 { grid-column: span 1; grid-row: span 2; height: 150; width: 75; } /* Imagen vertical */
.img-2x1 { grid-column: span 2; grid-row: span 1; height: 75; width: 150; } /* Imagen horizontal */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}


.whatsapp-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-top: -2px;
    margin-left: 2px;
}

.close-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    font-size: 14px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    line-height: 20px;
}

.icono-modo-btn .icono-modo {
    margin-right: 0 !important;
}

.icono-modo-btn {
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    margin-right: 50px;
    outline: none;
}

.icono-modo-btn:hover {
    background: #e0e0e0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: scale(1.08);
}

.icono-modo {
    font-size: 22px;
    color: #1a6c7a;
    transition: color 0.3s;
    margin-right: 0 !important; /* Asegura que no se desplace */
}

body.dark-mode .icono-modo-btn {
    background: #222;
}

body.dark-mode .icono-modo {
    color: #ffd600;
}

body.dark-mode,
.dark-mode .up-bar,
.dark-mode .top-bar{
    background-color: #121212;
    color: white;
}

.dark-mode .hero,
.dark-mode .hero h1,
.dark-mode .hero p,
.dark-mode .service{
    background-color: #212121;
    color: #eeeeee;
}

.dark-mode .nav-links a{
    color: #eeeeee;
}

.dark-mode .presupuesto a,
.dark-mode .btn-navegar{
    background-color: #0e383f;
    color: #eeeeee;
}
.dark-mode .btn-navegar:hover{
    background-color: #11444d;
}

.dark-mode .service-text h1{
    color: #eeeeee;
}
.dark-mode .service-text h2{
    color: #eeeeee;
}
.dark-mode .service-text p{
    color: #bbbbbb;
}