/* --- CONFIGURACIÓN GENERAL --- */
body {
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; /* funte principal*/
    margin: 0; /* quita margen del navegador por defecto*/
    padding: 0; /* quita rellenos del navegador por defecto*/
    width: 100%; /*ocupa todo el ancho*/
    overflow-x: hidden; /* evita scrooll horizonal*/
}

/* MENÚ ROJO*/
.menu1 {
    background-color: #E33C24;
    color: white;
    padding: 10px;
    display: flex;/* activa flexbox*/
    justify-content: center;
    align-items: center;
    gap: 40px;/* espacio entre elementos*/
}

.menu1 span {
    font-weight: bold;
}

.menu1 a {
    font-weight: bold; 
    text-decoration: none;
    color: white;
}

.menu1 a:hover {
    color: #5D6363;
}

/* MENÚ GRIS */

.menu2 {
    background-color: #5D6363;
    padding: 10px 20px; /* Un poco de aire a los lados */
    display: flex;
    flex-wrap: wrap;       /* PERMITE QUE LOS ELEMENTOS BAJEN SI NO CABEN */
    align-items: center;
    justify-content: space-between; /* Logo a la izquierda, botones a la derecha */
    width: 100%;
    box-sizing: border-box; /* Evita que el padding sume ancho extra */
}
/* tamaño logo empresa*/
.menu2 img { 
    width: 250px;
    margin-left: 50px;
}
/*botón del menu*/
.menu2 button {
    background-color: #E33C24;
    border: 1px solid white;
    color: white;
    margin-left: 30px;
    width: 90px;
    height: 50px;
}

/* ESTILO PARA ENLACES DEL MENÚ */
.menu2-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px; /* Espacio uniforme entre botones */
}
/* 1. Estilo base para TODOS los enlaces del Menú 2 */
.menu2 a, 
.dropbtn {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    display: inline-block;
    position: relative; /* Necesario para posicionar la línea */
    transition: 0.3s;
}
.menu2 a:hover, 
.dropdown:hover .dropbtn {
    color: #E33C24; /* Cambia el texto a rojo */
}
 /*centrar los enlaces del menu*/
.links {
    flex: 1;/* ocupa espacio disponible*/
    display: flex;/* flexbox*/
    justify-content: center;
    align-items: center;
}

/*LINEA DEBAJO DE ENLACE*/
.links a::after {
    content: '';/*crea pseudo-elemento*/
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #E33C24;
    transform: scaleX(0); /* Invisible al inicio */
    transform-origin: bottom right;/*punto de origen*/
    transition: transform 0.3s ease-out;/* animacion*/
}

/* --- EFECTO HOVER: TEXTO ROJO + LÍNEA --- */
.links a:hover, 
.dropdown:hover .dropbtn {
    color: #E33C24 !important; /* El texto vuelve a ponerse rojo */
}

/* La línea sigue funcionando igual pero vinculada al mismo hover */
.links a:hover::after,
.dropdown:hover .dropbtn::after {
    transform: scaleX(1); /*muestra la linea*/
    transform-origin: bottom left;/*dirección animacióm*/
}

/*los enlaces de adentro NO tengan la línea*/
.dropdown-content a::after {
    display: none;
}

/* Ajuste para el botón de LLAMAR para que no le salga la línea */
.menu2 button::after {
    display: none;
}

/*CARRITO COMPRA*/
.carrito {
    width: 30px;
    height: auto;
    vertical-align: middle;
    /* Forzar color BLANCO mediante filtros */
    filter: brightness(0) invert(1); 
}

/* Efecto al pasar por encima: color GRIS (#5D6363) */
.carrito:hover {
    transform: scale(1.2); /* Mantiene el efecto de crecimiento */
    
    /* Filtro para aproximar el color gris #5D6363 */
    filter: invert(39%) sepia(7%) saturate(301%) hue-rotate(136deg) brightness(94%) contrast(89%);
}
/* CABECERA (IMAGEN PRINCIPAL) */
.contenedor-imagen {
    position: relative;
    display: block;
    width: 100%; 
    left: 0;
    margin: 0;
}

.contenedor-imagen img {
    width: 100%;
    height: 650px; /* Altura fija para unificar todas las páginas */
    object-fit: cover; /* Mantiene la proporción sin deformar la imagen */
    display: block;
}

/* Texto superpuesto en la imagen de cabecera */
.texto-encima {
    position: absolute;
    top: 50%;              
    left: 50%;            
    transform: translate(-50%, -50%); /*centrado exacto*/
    color: white; 
    text-align: center;
    font-size:40px;
    background-color: rgba(0, 0, 0, 0.4); 
    border-radius: 10px;
    padding: 20px;
    width: 1000px;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

/* SECCIÓN DE CONTENIDO */
.textoventa {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
}

.fila-venta {
    display: flex;
    align-items: center;
    gap: 40px;
}

.col-text {
    flex: 1;
    text-align: justify;
}

.col-text h3 {
    color: #E33C24;
    margin-bottom: 10px;
}
.col-text p{
    color: grey;
}

.col-img {
    flex: 1;
}

.col-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Botón de contacto en la sección de ventas */
.venta-enlace {
    text-align: center;
    padding: 40px;
}

.venta-enlace button {
    background-color: black;
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 5px;
}

.venta-enlace button:hover {
    background-color: #615f5f;
}

/* FOOTER  */
.footer {
    background-color: #000;
    color: #fff;
    padding: 60px 10% 20px 10%;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h2 {
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    font-weight: bold;
}

.footer-col p, 
.footer-col a {
    display: block;
    color: #bbb;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.footer-col a:hover {
    color: #fff;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.logo-section p {
    max-width: 220px;
    color: #bbb;      
    font-size: 14px; 
    line-height: 1.4;
    margin-bottom: 12px;
    margin-right: 20px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888;
}

/* BOTÓN SUBIR */
#botonSubir {
    display: none;
    position: fixed; 
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 50%; 
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/*imagen de los apartados de mantenimiento*/
.contenedor {
    position: relative;
    width: 100%;  
    height: 150px;
    overflow: hidden;
}

.contenedor img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita que la imagen se estire */
    display: block;
}

.texto-en {
    position: absolute;
    top: 50%;              
    left: 50%;            
    transform: translate(-50%, -50%); 
    color: white; 
    text-align: center;
    border-radius: 10px;
    padding: 20px;
}

.texto-en h3{
    font-style: oblique;
}

/* DROPDOWN DE MANTENIMIENTO Y ESPOSICIÓN */
/* Asegurar que el contenedor del dropdown no se estire */
.dropdown {
    position: relative;
    display: inline-flex; /* Cambia a inline-flex */
    align-items: center;  /* Centra el texto del botón verticalmente */
    vertical-align: middle;
}

.dropdown-content {
    display: none; 
    position: absolute; /* Esto hace que flote y no empuje a los demás */
    background-color: #ffffff;
    min-width: 280px; /* Ancho suficiente para los textos largos */
    box-shadow: 0px 8px 16px rgba(0,0,0,0.3);
    z-index: 1000;
    top: 100%; /* Aparece justo debajo del texto */
    left: 0;
    border-radius: 4px;
    padding: 10px 0;
    /* Forzamos que los hijos se alineen en vertical */
    flex-direction: column; 
}

/* Los enlaces de dentro del cuadro blanco */
.dropdown-content a {
    color: #5D6363 !important ;
    padding: 12px 20px;
    text-decoration: none;
    margin: 0; 
    font-size: 15px;
    text-align: left;
    line-height: 1.2;
    border-bottom: 1px solid #eee;
}
/* MOSTRAR EL DROPDOWN AL PASAR EL RATÓN */
.dropdown:hover .dropdown-content {
    display: flex;
}

/*ESTILOS AVISO LEGAL, ACCESIBILIDAD  Y POLITICA PRIVACIDAD*/

.legal-container {
            max-width: 800px;
            margin: 40px auto;
            background: #fff;
            padding: 40px;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            line-height: 1.6;
            color: #444;
            font-family: sans-serif;
        }

        .legal-container h1 {
            text-align: center;
            color: #d32f2f; /* Rojo corporativo igual al Aviso Legal */
            margin-bottom: 30px;
        }

        .legal-container h2 {
            color: #333;
            border-bottom: 2px solid #eee;
            padding-bottom: 5px;
            margin-top: 25px;
            font-size: 20px;
        }

        .legal-container p {
            margin-bottom: 15px;
            text-align: justify;
        }

        .legal-container ul {
            margin-bottom: 15px;
            padding-left: 20px;
        }

        .legal-container li {
            margin-bottom: 8px;
        }

        .contact-info {
            background: #f9f9f9;
            padding: 20px;
            border-radius: 5px;
            border-left: 4px solid #d32f2f;
        }

        .actualizacion {
            text-align: center;
            font-size: 14px;
            color: #888;
            margin-bottom: 30px;
        }

        .fecha_ac{
            margin-top: 30px; 
            font-size: 14px; 
            color: #888; 
        }
        