/* ---------- General ---------- */
body {
    padding-top: 80px;
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('../Servicies/portada_servicios.png');
    background-size: cover;
    background-position: center;
    height: 500px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.header-content {
    max-width: 1200px;
    padding: 0 20px;
}

.header h1 {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.header p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* ===== SECCIÓN TABLEROS ===== */
#tableros {
    padding: 50px 20px;
    text-align: center;
    background-color: #f8f9fa;
}

#tableros h2 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.servicios-title {
    color: #255468;
    font-size: 2rem;
    margin: 30px 0;
}

/* ===== CONTENEDOR DE TARJETAS ===== */
.servicios-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== TARJETAS ===== */
.servicio-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 350px;
    overflow: hidden;
    text-align: center;
    opacity: 0;
    transform: translateX(-100px); /* Empieza desde la izquierda */
    transition: all 0.8s ease;
}

.servicio-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.servicio-card h3 {
    padding: 20px;
    color: #333;
    font-size: 1.3rem;
}

.servicio-card .btn {
    display: inline-block;
    background: #EC9D2E;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: bold;
}

.servicio-card .btn:hover {
    background: #EC9D2E;
}

.servicio-card.show {
    opacity: 1;
    transform: translateX(0); /* Vuelve a su lugar */
}

/* ===== SECCIONES GENERALES ===== */
section {
    padding: 60px 20px;
    text-align: center;
}

section h2 {
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 30px;
    border-bottom: 2px solid #e74c3c;
    display: inline-block;
    padding-bottom: 10px;
}

section p {
    max-width: 800px;
    margin: 0 auto 20px;
    color: #666;
}

#mantenimiento {
  padding: 100px 50px; /* más espacio arriba y abajo */
  text-align: center;
  background-color: #ffffff; /* opcional: darle fondo distinto */
}

#instalaciones {
    padding: 50px 20px;
    text-align: center;
    background-color: #f8f9fa;
}

/* Estilo del cuadro detalle */
.detalle {
  display: none;
  background: #fff;
  padding: 20px;
  margin: 15px;
  border-radius: 6px;
  color: #333;
  font-size: 0.95rem;
  text-align: left;
}

/* Animación para que aparezca suavemente */
.detalle.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ===== RESPONSIVE (pantallas pequeñas) ===== */
@media (max-width: 780px) {
    .header {
        height: 300px; /* Más bajo en pantallas chicas */
        padding: 20px;
    }

    .header h1 {
        font-size: 1.8rem; /* Más pequeño */
    }

    .header p {
        font-size: 1rem; /* Más pequeño */
    }

    .servicio-card {
        width: 100%; /* Ocupa todo el ancho */
        max-width: 320px; /* Para no estirarse demasiado */
    }

    .servicio-card img {
        height: 200px; /* Imagen más chica */
    }
}

