/* Configuración global */

* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Orbitron';
    src: url('fonts/Orbitron-VariableFont_wght.ttf') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

body {
    background-color: #000;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    margin: 0 auto;
    padding: 30px;
}

/* Secciones */
.contenedor {
    background-color: #ffffff;
    color: #333;
    padding: 50px;
    margin: 150px auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    text-align: center;
    width: 90%;
    max-width: 1200px;
}

/* Menú de navegación */
#menu {
    background-color: #000;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
}

nav ul li a:hover {
    color: #ff6600;
}

@media (max-width: 768px) {
    nav ul {
        gap: 10px;
    }
    nav ul li a {
        font-size: 1.2rem;
    }
    #menu {
        height: 40px;
    }
}

/* Hero Section */
#contenedor-hero {
    position: relative;
    background: url('img/torres_alta_tension.webp') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 1px 0 150px;
    margin-bottom: 150px;
    text-align: left;
}

#contenedor-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Capa negra con 50% de transparencia */
    z-index: 1; /* Asegura que esté detrás del texto */
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto 0 40px;
}

.hero-content h1 {
    text-align: center;
    font-size: 4rem;
    font-weight: bold;
    color: #ff6600;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 30px;
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.hero-content a.btn {
    display: block;
    margin: 20px auto 0;
    width: fit-content;
    padding: 15px 25px;
    text-align: center;
    background: #ff6600;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

.hero-content a.btn:hover {
    background: #e65c00;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.0);
}

/* Contenedor de reseñas */
.resenas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Se ajusta automáticamente */
    gap: 20px; /* Espaciado entre las cajas */
    margin: 20px 0; /* Espaciado superior e inferior */
    justify-content: center; /* Centra las cajas si hay espacio sobrante */
}

/* Estilo de las cajas de reseñas */
.resena-caja {
    background-color: #f4f4f4; /* Fondo claro */
    padding: 20px; /* Espaciado interno */
    border-radius: 10px; /* Bordes redondeados */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Sombra sutil */
    text-align: left; /* Alinea el contenido a la izquierda */
    display: flex;
    flex-direction: column; /* Apila el contenido verticalmente */
    justify-content: space-between;
    max-width: 300px; /* Ancho máximo */
    height: auto; /* Ajusta la altura automáticamente */
}


/* Servicios */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.servicio-caja {
    background-color: #555;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #fff; /* Cambia el color del texto general a blanco */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.servicio-caja h3 {
    color: #ff6600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 10px;

}

/* Menú personalizado */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px auto;
    padding: 20px;
    width: 80%;
    max-width: 1000px;
    background-color: #ffffff;
    border-radius: 10px;
}

.menu-item {
    text-align: center;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.menu-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.menu-icon {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
}

.menu-item span {
    display: block;
    font-size: 0.9rem;
    color: #333;
    margin-top: 5px;
}

.menu-item a {
    text-decoration: none;
    color: inherit;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

footer p {
    margin: 0;
}

/* Proveedores */
.proveedores-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.proveedor-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 100px;
    overflow: hidden;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.proveedor-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Mapa y formulario */
.contacto-mapa-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
}

.contacto-mapa-grid iframe {
    width: 100%;
    max-width: 350px;
    height: 350px;
    border-radius: 10px;
    margin: 0 auto;
}

.contacto-mapa-grid form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 350px;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.contacto-mapa-grid form .form-group {
    margin-bottom: 15px;
    width: 100%;
}

.contacto-mapa-grid form input,
.contacto-mapa-grid form textarea,
.contacto-mapa-grid form button {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contacto-mapa-grid form button {
    background-color: #ff6600;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.contacto-mapa-grid form button:hover {
    background-color: #e65c00;
}

/* Imagen en testimonios */
.testimonio img {
    max-width: 400px;
    border-radius: 10px;
    margin: 0 auto;
}

/* para los textos legales*/
.legal-container {
    max-width: 800px; /* Ancho máximo para limitar el contenido */
    margin: 40px auto; /* Centra horizontalmente y añade margen vertical */
    padding: 20px; /* Espaciado interno */
    background-color: #fff; /* Fondo blanco */
    color: #333; /* Color del texto */
    border-radius: 10px; /* Bordes redondeados */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra sutil */
    font-family: Arial, sans-serif; /* Fuente estándar */
    line-height: 1.6; /* Mejora la legibilidad */
}

