body {
    font-family: Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    max-width: 100%;
    
    

}




.headerlogos {
    
    display: flex;
    flex-direction: row;
    justify-content: center;
    background-color: #ffffff;
    flex-wrap:wrap ;
    padding-top: 30px;
    padding-bottom: 25px;
}

#topheader {
    display: inline;
    display: table-cell;
}


.Logo {
    height: auto;
    width: 460px;       /* tamaño fijo solo para pantallas grandes */
    padding-right: 100px;
    padding-left: 6rem;
    max-width: 100%;    /* evita que se desborde */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ajuste en móviles */
@media (max-width: 768px) {
    .Logo {
        width: 80%;      /* se adapta al ancho de pantalla */
        padding-right: 0;
        padding-left: 0;
        margin: 0 auto;  /* centrado */
    }
}


.RedesSociales {
  display: flex;
  height: 50px;
  justify-content: flex-end;
  max-width: 100%;
  margin: 10px;
  transition: transform 0.3s ease;
}

.RedesSociales img:hover {
    transform: scale(1.3);
}

nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    text-decoration: none;
    text-align: center;
    margin: 10px;      
    font-size: 30px;
    max-width: 100%;
}

nav ul li a{
    display: inline-block;
    margin-right: 2rem;
    text-decoration: none;
    color: #000;   
}
    
nav ul li a:hover {
    
    color: red;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.barraroja {
    background-color: #e00000;
    height: 2rem;
    width: auto;
    max-width: 100%;
}


.Slider1 {
    display: flex;
    background: #000;
    width: 100%;
    height: auto;
    margin: 0;
}

.Slider1 img{
    width: 100%;
    height: auto;

}

.slick-dots {
    display: flex !important;
    justify-content: center;
    list-style: none;
    margin: 15px 0 0;
    padding: 0;
}

.slick-dots li {
    margin: 0 5px;
}

.slick-dots button {
    border: none;
    background: #ccc;
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.slick-dots .slick-active button {
    background: #333;
    color: #fff;
}

.portafolio {
    text-align: center;
    background-color: rgb(95, 95, 95);
}
    
h1 {
    text-align: center;
    margin-top: 20px;
    font-size: 60px;
    color: rgb(229, 230, 229);
    display: inline-block;
}
    

.servicios {
    
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    background-color: #000;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}
    

.servicios img {
    margin: auto;
    padding: 4%;
    width: 360px;
    height: auto;
    text-align: center;
    
}
    
.servicios img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

footer {
    display: flex;
    flex-wrap: wrap; /* permite que los elementos bajen en pantallas pequeñas */
    justify-content: space-around;
    align-items: center;
    padding: 30px;
    background-color: #1a1a1a;
    color: white;
    border-top: 4px solid rgb(255, 0, 43);
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1 1 300px; /* cada sección puede ocupar mínimo 300px */
    text-align: center;
    margin: 10px;
}

.footer-left {
    text-align: left;
}

.footer-left h2 {
    margin-bottom: 10px;
    font-size: 1.8rem;
    color: rgb(245, 245, 245);
}

.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-icon {
    width: 30px;
    height: auto;
    margin-right: 10px;
}

/* ---- Ajuste para el logo ---- */
.footer-right img {
    max-width: 400px; /* evita que se desborde */
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ---- Ajuste especial en móviles ---- */
@media (max-width: 768px) {
    footer {
        flex-direction: column; /* todo en columna */
        text-align: center;
    }

    .footer-left, .footer-center, .footer-right {
        flex: 1 1 100%;
        text-align: center;
    }

    .footer-right img {
        max-width: 300px; /* logo más pequeño en móvil */
    }
}




.section-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    background-color: black;
    color: white;
}

.section-page img {
    max-width: 80%;
    height: auto;
    margin-bottom: 20px;
   
    
}

.back-button {
    padding: 15px 4cm;
    background-color: rgb(255, 0, 0);
    color: rgb(255, 255, 255);
    font-size: x-large;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: rgb(169, 170, 169);
}

/* estilos galeria portafolio */



.encabezado {
    display: flex;
    flex-direction:row;
    flex-wrap:wrap ;
    justify-content:space-around ;
    text-align: center;
    background-color: #dbdbdb;
    padding: 20px;
}

.Logogaleria {
    max-width: 50%;
}

.encabezado h1 {
    color:#000;
    font-size: 3rem;
}
.slider {
    position: relative;
    max-width: 70%;
    height: auto;
    
    overflow: hidden;
   
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    padding: 1rem;
}

.slides input {
    display: none;
}

.slides-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}

.slides-wrapper img {
    max-width:100%;
    display: flex;
  
}

.controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.controls label {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgb(255, 255, 255);
    cursor: pointer;
}

.textogaleria {
max-width: 70%;
font-size: x-large;
}
#slide1:checked ~ .slides-wrapper {
    transform: translateX(0);
}

#slide2:checked ~ .slides-wrapper {
    transform: translateX(-99.999%);
}

#slide3:checked ~ .slides-wrapper {
    transform: translateX(-199.999%);
}

/* Estilos para las páginas internas */
.page {
    display: flex;
    flex-direction: column;
    background-color: #000000;
    text-align: center;
    max-width: 100%;
    color: #ffffff;
}

.page h1 {
    
    padding: 5px;
    text-align: center; 
    color:#ffffff;
    margin-top:1px ;
    margin-bottom: 1px;
}


.h2 {
    display: flex;
    text-align: left; 
    color:#000;
    font-size: xx-large;
    max-width: 100%;
    padding-left: 40px;
    background-color: #eeeeee;    
}

.page img {
    display: flex;
    justify-content: center;
    max-width: 100%;
    height: auto;
    
}

.parrafo {
    display: flex;
    text-align: justify;
    padding-left: 30px;
    padding-right: 30px;
    max-width: 100%;
    font-size: x-large;
    padding-top: 0;
    background-color: #ffffff;
}
.botonpagina {
    display: flex;
    justify-content: center;
}
.return-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: rgb(255, 0, 0);;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: x-large;
}

.return-button:hover {
    background-color: white;
    color: black;
    border: 2px solid black;
}

.listaservicios {
    display: flex;
    padding-left: 20px;
    font-size: xx-large;
    
}

.logocontacto{
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.contactoenlaces {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content:space-around;
    margin-bottom: 10px;
    font-size: 1.6rem;
    color: rgb(0, 0, 0);
}

.contact-icon {
    width: 40px;
    padding: 1px;
}

.registro {
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: center;
    font-size: x-large;
    color: #000;
}


.contactostyle{
    
        font-family: Helvetica, sans-serif;  
        

        text-align: center;
    margin-top: 20px;
    font-size: 60px;
    color: rgb(229, 230, 229);
    display: inline-block;
}


.videostyle{
    
    text-align: center;
    max-width: 100%;
}

.video{
    text-align: center;
}

.iframemap{
display: flex;
align-items: center;
justify-content: center;
}

/* Ventana emergente codigo completo css */


.listaservicios ul {
    font-size: clamp(22px, 8vw, 50px);
    list-style: none;
    padding: 0;
}
.listaservicios li {
    margin: 8px 0;
}
.listaservicios a {
    text-decoration: none;
    color: rgb(10, 10, 10);
    cursor: pointer;
}

.listaservicios ul :hover {
    background-color: white;
    color: rgb(209, 1, 1);
    border: 2px solid rgb(202, 202, 202);
    box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.5);  
}



/* Ventana emergente */
.modal {
    font-size: 30px;
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Asegura que esté por encima */
}

.modal:target {
    display: flex;
}
.contenido {
    background: white;
    padding: 20px;
    max-width: 400px;
    border-radius: 8px;
    text-align: center;
    z-index: 10000; /* Por encima del fondo oscuro */
}
.cerrar {
    float: right;
    font-size: 50px;
    text-decoration: none;
    color: red;
}

